check-local-headers: ignore c++ headers
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2
3         * scripts/check-local-headers.sh: Ignore c++ headers.
4
5 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6
7         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8         __libc_cleanup_region_start argument.
9
10 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
11
12         [BZ #14784]
13         [BZ #14785]
14         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
15         x * y using scaling, not as x * y + z.
16         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18         * math/libm-test.inc (fma_test): Add more tests.
19         (fma_test_towardzero): Likewise.
20         (fma_test_downward): Likewise.
21         (fma_test_upward): Likewise.
22
23 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
24
25         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26
27 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
28
29         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
30         New variable.
31
32 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
33
34         * rt/tst-shm.c (worker): Correct checking for mmap failure.
35
36 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
37
38         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
39         Fix sort order.
40         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
41         Likewise.
42
43 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
44
45         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
46         Fix the order of the list for glibc 2.17.
47         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
48         Likewise.
49
50 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
51
52         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53
54 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55
56         [BZ #14610]
57         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
58         for low part of x being zero before using __atanl (y).
59         * math/libm-test.inc (atan2_test): Add another test.
60
61         * manual/install.texi (Configuring and compiling): Document
62         general use of test-wrapper and test-wrapper-env.
63         * INSTALL: Regenerated.
64
65         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
66         (__fma): Do not extract and scale down low bits on after-rounding
67         systems when result rounded to normal precision would have normal
68         exponent.
69         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
70         (__fmal): Do not extract and scale down low bits on after-rounding
71         systems when result rounded to normal precision would have normal
72         exponent.
73         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
74         (__fmal): Do not extract and scale down low bits on after-rounding
75         systems when result rounded to normal precision would have normal
76         exponent.
77         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
78         macro.
79         (fma_test): Add more tests.
80         (fma_test_towardzero): Likewise.
81         (fma_test_downward): Likewise.
82         (fma_test_upward): Likewise.
83
84 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
85
86         * sysdeps/i386/tininess.h: Renamed to ...
87         * sysdeps/x86/tininess.h: This.
88         * sysdeps/x86_64/tininess.h: Removed.
89
90 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
91
92         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
93         input.  Use $(build-program-cmd).
94         ($(objpfx)tst-array1-static.out): Likewise.
95         ($(objpfx)tst-array2.out): Likewise.
96         ($(objpfx)tst-array3.out): Likewise.
97         ($(objpfx)tst-array4.out): Likewise.
98         ($(objpfx)tst-array5.out): Likewise.
99         ($(objpfx)tst-array5-static.out): Likewise.
100
101 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
102
103         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
104         if defined.
105
106         * nss/nsswitch.h (nss_interface_function): Provide new
107         macro for use with NSS functions.
108         * grp/initgroups.c: Use new macro.
109         * nss/getXXbyYY.c: Likewise.
110         * nss/getXXbyYY_r.c: Likewise.
111         * nss/getXXent.c: Likewise.
112         * nss/getXXent_r.c: Likewise.
113         * sysdeps/posix/getaddrinfo.c: Likewise.
114
115 2012-10-30  Andreas Jaeger  <aj@suse.de>
116
117         * po/ru.po: Update Russion translation from translation project.
118
119 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
120
121         [BZ #14152]
122         [BZ #14783]
123         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
124         result and shift together with sticky bit instead of replicating
125         round-to-nearest rounding.
126         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
127         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
128         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
129         missing underflow exceptions.
130         (fma_test_towardzero): Add more tests.
131         (fma_test_downward): Likewise.
132         (fma_test_upward): Likewise.
133
134         [BZ #14047]
135         * sysdeps/generic/tininess.h: New file.
136         * sysdeps/i386/tininess.h: Likewise.
137         * sysdeps/sh/tininess.h: Likewise.
138         * sysdeps/x86_64/tininess.h: Likewise.
139         * stdlib/tst-strtod-underflow.c: Likewise.
140         * stdlib/tst-tininess.c: Likewise.
141         * stdlib/strtod_l.c: Include <tininess.h>.
142         (round_and_return): Do not set errno for exact underflow cases.
143         Force an underflow exception when setting errno for underflow.
144         Determine underflow based on rounding to normal precision if
145         TININESS_AFTER_ROUNDING.
146         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
147         ERANGE for exact underflow cases.
148         * stdlib/Makefile (tests): Add tst-tininess and
149         tst-strtod-underflow.
150         ($(objpfx)tst-tininess): Use $(link-libm).
151         ($(objpfx)tst-strtod-underflow): Likewise.
152
153 2012-10-30  Andreas Jaeger  <aj@suse.de>
154
155         [BZ#14767]
156         * elf/Makefile (tests): Remove conditional for have-initfini-array
157         since this is now always required and the variable does not exist
158         anymore.
159         (tests-static): Likewise.
160         (modules-names): Likewise.
161
162         * po/eo.po: Add Esperanto translation from translation project.
163
164         * elf/tst-array1.c (fini_array): Make writeable so that it can be
165         merged with constructor/destructor.
166         (init_array): Likewise.
167         * elf/tst-array2dep.c (fini_array): Likewise.
168         (init_array): Likewise.
169
170 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
171
172         * manual/message.texi: Delete @cartouche tags.
173
174 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
175
176         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
177         EOPNOTSUPP.
178         * sysdeps/mach/hurd/fsync.c: Likewise.
179
180         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
181         [_POSIX_REALTIME_SIGNALS]: Change condition to
182         [_POSIX_REALTIME_SIGNALS > 0].
183
184 2012-10-27  Andreas Jaeger  <aj@suse.de>
185
186         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
187         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
188         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
189         [__WORDSIZE != 64]: Likewise.
190
191 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
192
193         *  iconvdata/tst-table.sh: Remove ${SHELL}.
194         *  iconvdata/tst-tables.sh: Likewise.
195
196 2012-10-25  David S. Miller  <davem@davemloft.net>
197
198         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
199         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
200         of strtoull.
201
202         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
203         ifunc-impl-list.c
204         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
205         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
206         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
207         file.
208
209 2012-10-25  Roland McGrath  <roland@hack.frob.com>
210
211         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
212         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
213         __getdirentries.
214
215 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
216             Jim Blandy  <jimb@codesourcery.com>
217
218         * scripts/cross-test-ssh.sh: New file.
219         * manual/install.texi (Configuring and compiling): Document use of
220         cross-test-ssh.sh.
221         * INSTALL: Regenerated.
222
223 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
224
225         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
226         EOPNOTSUPP.
227
228 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
229
230         * Makeconfig (run-program-prefix): Fix comment.
231
232 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
233             Jim Blandy  <jimb@codesourcery.com>
234
235         * Makeconfig (test-wrapper): New variable,
236         (test-wrapper-env): Likewise.
237         [$(cross-compiling) = yes && $(test-wrapper) != ""]
238         (run-built-tests): Define to yes.
239         (run-program-prefix): Use $(test-wrapper).
240         (built-program-cmd): Likewise.
241         * Rules (make-test-out): Use $(test-wrapper-env) and
242         $(host-built-program-cmd).
243         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
244         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
245         tst-pathopt.sh.
246         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
247         $(test-wrapper-env) to tst-rtld-load-self.sh.
248         ($(objpfx)order2.out): Use $(test-wrapper).
249         ($(objpfx)tst-initorder.out): Likewise.
250         ($(objpfx)tst-initorder2.out): Likewise.
251         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
252         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
253         (test_wrapper_env): New variable.  Use it to run ld.so.
254         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
255         Use it to run ld.so.
256         (test_wrapper_env): Likewise.
257         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
258         $(test-wrapper) to run-iconv-test.sh.
259         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
260         (ICONV): Use $test_wrapper.
261         * posix/Makefile ($(objpfx)globtest.out): Pass
262         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
263         globtest.sh, not $(run-program-prefix).
264         * posix/globtest.sh (run_via_rtld_prefix): New variable.
265         (test_wrapper): Likewise.
266         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
267         set together with run_via_rtld_prefix.
268         (run_program_prefix): Define in terms of test_wrapper and
269         run_via_rtld_prefix.
270
271 2012-10-24  Roland McGrath  <roland@hack.frob.com>
272
273         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
274         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
275         Targets removed.
276
277         [BZ #14743]
278         * include/time.h: Remove librt_hidden_proto (clock_gettime).
279         Declare __clock_getres, __clock_gettime, __clock_settime,
280         __clock_nanosleep, and __clock_getcpuclockid.
281         * rt/clock_gettime.c: Define __clock_gettime as an alias.
282         Remove librt_hidden_def (clock_gettime).
283         * sysdeps/unix/clock_gettime.c: Likewise.
284         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
285         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
286         * rt/clock_getres.c: Define __clock_getres as an alias.
287         * sysdeps/posix/clock_getres.c: Likewise.
288         * rt/clock_settime.c: Define __clock_settime as an alias.
289         * sysdeps/unix/clock_settime.c: Likewise.
290         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
291         * sysdeps/unix/clock_nanosleep.c: Likewise.
292         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
293         * rt/clock-compat.c: New file.
294         * rt/Makefile (librt-routines): Add clock-compat and move
295         $(clock-routines) to ...
296         (routines): ... here, new variable.
297         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
298         Don't add get_clockfreq here.
299         * rt/Versions (libc: GLIBC_2.17): New version set.
300         Add clock_* symbols here.
301         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
302         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
303         (GLIBC_2.17): Add clock_* symbols.
304         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
305         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
306         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
308         Likewise.
309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
310         Likewise.
311         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
312         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
314         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
315         * NEWS: Mention the move.
316
317         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
318         Use __open, __read, __close rather than their public counterparts.
319         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
320         (__get_clockfreq_via_cpuinfo): Likewise.
321         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
322         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
323
324         * config.h.in (HAVE_IFUNC): New #undef.
325         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
326         was successful.
327         * configure: Regenerated.
328
329 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
330
331         * configure.in: Move READELF check to start of file.
332         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
333         libc_cv_asm_gnu_indirect_function in the process.
334         * configure: Regenerated.
335
336 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
337
338         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
339         send the output to /dev/null.
340         (libc_cv_cc_with_libunwind): Likewise.
341         (libc_cv_as_noexecstack): Likewise.
342         * configure: Regenerate.
343
344 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
345
346         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
347
348         * posix/globtest.sh (TMPDIR): Do not set.
349         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
350         (testout): Likewise.
351
352 2012-10-24  Andreas Jaeger  <aj@suse.de>
353
354         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
355         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
356         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
357         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
358         posix_fadvise64, posix_fallocate64.
359
360         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
361         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
362         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
363         Likewise.
364         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
365         Likewise.
366         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
367
368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
369         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
370         <bits/fcntl-linux.h>.
371         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
372
373         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
374         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
375         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
376         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
377         [__WORDSIZE != 64]: Likewise.
378
379 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
380
381         * Makeconfig (run-built-tests): New variable.
382         * Rules [$(cross-compiling) = yes]: Change condition to
383         [$(run-built-tests) = no].
384         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
385         to [$(run-built-tests) = yes].
386         * elf/Makefile [$(cross-compiling) = no]: Likewise
387         * grp/Makefile [$(cross-compiling) = no]: Likewise.
388         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
389         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
390         * intl/Makefile [$(cross-compiling) = no]: Likewise.
391         * io/Makefile [$(cross-compiling) = no]: Likewise.
392         * libio/Makefile [$(cross-compiling) = no]: Likewise.
393         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
394         * misc/Makefile [$(cross-compiling) = no]: Likewise.
395         * posix/Makefile [$(cross-compiling) = no]: Likewise.
396         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
397         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
398         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
399         * string/Makefile [$(cross-compiling) = no]: Likewise.
400
401         * posix/Makefile ($(objpfx)globtest.out): Pass
402         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
403         $(rtld-installed-name).
404         * posix/globtest.sh (elf_objpfx): Remove variable.
405         (rtld_installed_name): Likewise.
406         (library_path): Likewise.
407         (run_program_prefix): New variable.  Use for running globtest
408         binary.
409
410 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
411             Joseph Myers  <joseph@codesourcery.com>
412
413         * Makeconfig (host-built-program-cmd): New variable.
414         * elf/Makefile (tst-stackguard1-ARGS): Use
415         $(host-built-program-cmd).
416         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
417         (tst-spawn-ARGS): Likewise.
418         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
419
420 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
421             Jim Blandy  <jimb@codesourcery.com>
422
423         * Makeconfig (run-via-rtld-prefix): New variable.
424         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
425         (built-program-cmd): Likewise.
426
427 2012-10-22  Andreas Jaeger  <aj@suse.de>
428
429         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
430         __O_RSYNC if it exists, otherwise to O_SYNC.
431
432 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
433             Joseph Myers  <joseph@codesourcery.com>
434
435         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
436         /dev/null.
437         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
438         from /dev/null
439         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
440         /dev/null.
441
442 2012-10-22  Andreas Jaeger  <aj@suse.de>
443
444         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
445         Define always.
446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
447
448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
449         bits/fcntl-linux.h.
450
451         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
452         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
453
454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
455         to __O_LARGEFILE.
456         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
457         to __O_LARGEFILE.
458
459 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
460             Joseph Myers  <joseph@codesourcery.com>
461
462         * config.make.in (NM): New variable.
463
464 2012-10-21  Andreas Jaeger  <aj@suse.de>
465
466         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
467         definitions and declarations that are provided by
468         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
469
470 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
471
472         [BZ #14683]
473         * elf/Makefile (tests-static): Add tst-leaks1-static.
474         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
475         ($(objpfx)tst-leaks1-static): New rule.
476         ($(objpfx)tst-leaks1-static-mem): Likewise.
477         (tst-leaks1-static-ENV): New macro.
478         * elf/dl-open.c (dl_open_worker): Check the main application
479         only if SHARED is defined.
480         * elf/tst-leaks1-static.c: New file.
481
482 2012-10-20  Andreas Jaeger  <aj@suse.de>
483
484         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
485         generic values for Linux.
486         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
487         and declarations that are provided by <bits/fcntl-linux.h> and
488         include <bits/fcntl-linux.h>.
489         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
490         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
491
492 2012-10-20  Roland McGrath  <roland@hack.frob.com>
493
494         * io/fcntl.h: Move include of <bits/types.h> to the top and
495         include it unconditionally.
496
497 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
498
499         * wcsmbs/Makefile (tests-ifunc): New variable.
500         (tests): Add $(tests-ifunc).
501         * wcsmbs/test-wcschr-ifunc.c: New file.
502         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
503         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
504         * wcsmbs/test-wcslen-ifunc.c: Likewise.
505         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
506         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
507
508         * string/Makefile (tests-ifunc): New variable.
509         (tests): Add $(tests-ifunc).
510         * string/test-memccpy.c (TEST_NAME): New macro.
511         * string/test-memchr.c (TEST_NAME): Likewise.
512         * string/test-memcmp.c (TEST_NAME): Likewise.
513         * string/test-memcpy.c (TEST_NAME): Likewise.
514         * string/test-memmem.c (TEST_NAME): Likewise.
515         * string/test-memmove.c (TEST_NAME): Likewise.
516         * string/test-memset.c (TEST_NAME): Likewise.
517         * string/test-rawmemchr.c (TEST_NAME): Likewise.
518         * string/test-stpcpy.c (TEST_NAME): Likewise.
519         * string/test-stpncpy.c (TEST_NAME): Likewise.
520         * string/test-strcasecmp.c (TEST_NAME): Likewise.
521         * string/test-strcasestr.c (TEST_NAME): Likewise.
522         * string/test-strcat.c (TEST_NAME): Likewise.
523         * string/test-strchr.c (TEST_NAME): Likewise.
524         * string/test-strcmp.c(TEST_NAME): Likewise.
525         * string/test-strcpy.c (TEST_NAME): Likewise.
526         * string/test-strcspn.c (TEST_NAME): Likewise.
527         * string/test-strlen.c (TEST_NAME): Likewise.
528         * string/test-strncasecmp.c (TEST_NAME): Likewise.
529         * string/test-strncmp.c (TEST_NAME): Likewise.
530         * string/test-strncpy.c (TEST_NAME): Likewise.
531         * string/test-strnlen.c (TEST_NAME): Likewise.
532         * string/test-strpbrk.c (TEST_NAME): Likewise.
533         * string/test-strrchr.c (TEST_NAME): Likewise.
534         * string/test-strspn.c (TEST_NAME): Likewise.
535         * string/test-strstr.c (TEST_NAME): Likewise.
536         * string/test-bcopy-ifunc.c: New file.
537         * string/test-bzero-ifunc.c: Likewise.
538         * string/test-memccpy-ifunc.c: Likewise.
539         * string/test-memchr-ifunc.c: Likewise.
540         * string/test-memcmp-ifunc.c: Likewise.
541         * string/test-memcpy-ifunc.c: Likewise.
542         * string/test-memmem-ifunc.c: Likewise.
543         * string/test-memmove-ifunc.c: Likewise.
544         * string/test-mempcpy-ifunc.c: Likewise.
545         * string/test-memset-ifunc.c: Likewise.
546         * string/test-rawmemchr-ifunc.c: Likewise.
547         * string/test-stpcpy-ifunc.c: Likewise.
548         * string/test-stpncpy-ifunc.c: Likewise.
549         * string/test-strcasecmp-ifunc.c: Likewise.
550         * string/test-strcasestr-ifunc.c: Likewise.
551         * string/test-strcat-ifunc.c: Likewise.
552         * string/test-strchr-ifunc.c: Likewise.
553         * string/test-strchrnul-ifunc.c: Likewise.
554         * string/test-strcmp-ifunc.c: Likewise.
555         * string/test-strcpy-ifunc.c: Likewise.
556         * string/test-strcspn-ifunc.c: Likewise.
557         * string/test-strlen-ifunc.c: Likewise.
558         * string/test-strncasecmp-ifunc.c: Likewise.
559         * string/test-strncat-ifunc.c: Likewise.
560         * string/test-strncmp-ifunc.c: Likewise.
561         * string/test-strncpy-ifunc.c: Likewise.
562         * string/test-strnlen-ifunc.c: Likewise.
563         * string/test-strpbrk-ifunc.c: Likewise.
564         * string/test-strrchr-ifunc.c: Likewise.
565         * string/test-strspn-ifunc.c: Likewise.
566         * string/test-strstr-ifunc.c: Likewise.
567
568         * debug/Makefile (tests-ifunc): New variable.
569         (tests): Add $(tests-ifunc).
570         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
571         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
572         * debug/test-stpcpy_chk-ifunc.c: New file.
573         * debug/test-strcpy_chk-ifunc.c: Likewise.
574
575 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
576
577         [BZ #13601]
578         * elf/dl-load.c (open_verify): Retry read if the entire ELF
579         header is not read in.
580
581 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
582
583         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
584         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
585         directly.  Pass built executable to script as
586         $(built-program-cmd).
587         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
588         $testprogram without using LD_LIBRARY_PATH and $ldso.
589
590         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
591         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
592         $(rtld-installed-name).
593         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
594         (rtld_installed_name): Likewise.
595         (library_path): Likewise.
596         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
597         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
598         $(run-program-prefix) to tst-tables.sh.
599         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
600         it to run tst-table-from and tst-table-to.
601         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
602         Pass it to tst-table.sh.
603         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
604         $(run-program-prefix) to tst-gettext.sh.
605         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
606         tst-translit.sh.
607         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
608         tst-gettext2.sh.
609         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
610         to run tst-gettext.
611         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
612         to run tst-gettext2.
613         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
614         to run tst-translit.
615         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
616         $(run-program-prefix) to tst-mtrace.sh.
617         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
618         to run tst-mtrace.
619         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
620         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
621         $(rtld-installed-name).
622         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
623         (rtld_installed_name): Likewise.
624         (run_program_prefix): New variable.  Use it to run wordexp-test.
625
626         * Makeconfig (ARCH): Remove all definitions.
627         (machine): Likewise.
628         [ARCH]: Remove conditional code.
629         [!objdir]: Give error.
630         [!objdir] (objpfx): Remove.
631         [!objdir] (common-objpfx): Likewise.
632         [!objdir] (common-objdir): Likewise.
633         * configure.in (config_makefile): Remove.  Hardcode Makefile in
634         AC_CONFIG_FILES call.
635         * configure: Regenerated.
636
637         [BZ #13888]
638         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
639         or TMPDIR.
640         (testout): Likewise.
641
642         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
643         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
644         $(rtld-installed-name).
645         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
646         (rtld_installed_name): Likwise.
647         (runit): Remove function.
648         (run_getconf): New variable,  Use it for running getconf binary.
649
650 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
651
652         [BZ #14716]
653         * string/test-memmem.c (check_result): New function.
654         (do_one_test): Use it.
655         (check1): New function.
656         (test_main): Use it.
657
658 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
659
660         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
661
662 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
663
664         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
665         (_G_LSEEK64): Likewise.
666         (_G_MMAP64): Likewise.
667         (_G_FSTAT64): Likewise.
668         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
669         (_G_LSEEK64): Likewise.
670         (_G_MMAP64): Likewise.
671         (_G_FSTAT64): Likewise.
672         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
673         unconditional.  Call __mmap64 directly.
674         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
675         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
676         __lseek64 directly.
677         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
678         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
679         __mmap64 directly.
680         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
681         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
682         __lseek64 directly.
683         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
684         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
685         __lseek64 directly.
686         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
687         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
688         __lseek64 directly.
689         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
690         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
691         __fxstat64 directly.
692         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
693         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
694         unconditional.
695         (freopen64) [!_G_OPEN64]: Remove conditional code.
696         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
697         unconditional.
698         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
699         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
700         unconditional.
701         (ftello64) [!_G_LSEEK64]: Remove conditional code.
702         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
703         unconditional.
704         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
705         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
706         unconditional.
707         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
708         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
709         unconditional.
710         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
711         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
712         unconditional.
713         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
714         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
715         unconditional.
716         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
717
718 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
719
720         [BZ #12140]
721         * manual/memory.texi (Malloc Tunable Parameters): Add note
722         about free list pointers overwriting some perturb bytes.
723         Wording suggested by Roland McGrath.
724
725 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
726
727         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
728         (lgamma_test): Likewise.
729         (tgamma_test): Likewise.
730
731 2012-10-16  Florian Weimer  <fweimer@redhat.com>
732
733         [BZ #14700]
734         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
735         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
736
737 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
738
739         * NEWS: Mention BZ #14716.
740         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
741         when removing AVAILABLE1_USES_J macro.
742
743 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
744
745         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
746         (__bswap_64): __uint64_t for unsigned 64-bit int.
747
748 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
749
750         * include/string.h (memmem): Declare libc hidden alias.
751         * string/memmem.c (memmem): Define libc hidden alias.
752         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
753         __read, __close instead of open, read, close.
754
755 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
756
757         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
758         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
759         global and hidden.
760         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
761         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
762         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
763         Likewise.
764         (__rawmemchr_sse2): Likewise.
765         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
766         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
767         (__strchr_sse2): Likewise.
768         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
769         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
770         (__strcasecmp_sse2): Likewise.
771         (__strncasecmp_sse2): Likewise.
772         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
773         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
774         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
775         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
776         (__strrchr_sse2): Likewise.
777         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
778         ifunc-impl-list.c.
779         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
780         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
781         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
782         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
783         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
784         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
785         * sysdeps/x86_64/multiarch/memset.S: Likewise.
786         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
787         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
788         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
789         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
790         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
791         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
792         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
793         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
794         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
795         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
796         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
797         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
798         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
799         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
800         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
801         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
802         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
803         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
804         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
805         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
806         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
807         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
808         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
809
810         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
811         global and hidden.
812         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
813         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
814         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
815         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
816         Likewise.
817         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
818         Likewise.
819         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
820         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
821         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
822         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
823         ifunc-impl-list.c.
824         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
825         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
826         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
827         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
828         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
829         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
830         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
831         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
832         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
833         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
834         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
835         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
836         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
837         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
838         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
839         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
840         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
841         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
842         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
843         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
844         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
845         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
846         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
847         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
848         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
849         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
850         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
851         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
852         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
853         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
854         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
855         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
856         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
857         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
858         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
859         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
860         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
861         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
862         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
863         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
864         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
865
866         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
867         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
868         * include/ifunc-impl-list.h: New file.
869         * misc/ifunc-impl-list.c: Likewise.
870         * misc/Makefile (routines): Add ifunc-impl-list.
871         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
872         * string/test-string.h: Include <ifunc-impl-list.h>.
873         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
874         impl_array): New variables.
875         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
876         are defined.
877         (test_init): Call __libc_ifunc_impl_list to initialize
878         func_list if TEST_IFUNC and TEST_NAME are defined.
879
880         * string/Makefile (strop-tests): Add bcopy and bzero.
881         * string/test-bcopy.c: New file.
882         * string/test-bzero.c: Likewise.
883         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
884         defined.
885         * string/test-memset.c: Support bzero test if TEST_BZERO is
886         defined.
887         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
888         __libc_memmove.
889         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
890         __libc_memset.
891         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
892         of memset.
893
894 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
895
896         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
897         * configure: Regenerated.
898
899         * Makeconfig (+link-static-before-libc): Don't include
900         $(link-static-libc).
901
902         * libio/libio.h (_IO_pos_t): Remove.
903
904 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
905
906         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
907         McGrath.
908
909 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
910
911         * crypt/crypt-entry.c: Include fips-private.h.
912         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
913         * crypt/md5c-test.c (main): Tolerate disabled MD5.
914         * sysdeps/unix/sysv/linux/fips-private.h: New file.
915         * sysdeps/generic/fips-private.h: New file, dummy fallback.
916
917 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
918
919         * crypt/crypt-private.h: Include stdbool.h.
920         (_ufc_setup_salt_r): Return bool.
921         * crypt/crypt-entry.c: Include errno.h.
922         (__crypt_r): Return NULL with EINVAL for bad salt.
923         * crypt/crypt_util.c (bad_for_salt): New.
924         (_ufc_setup_salt_r): Check that salt is long enough and within
925         the specified alphabet.
926         * crypt/badsalttest.c: New file.
927         * crypt/Makefile (tests): Add it.
928         ($(objpfx)badsalttest): New.
929
930 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
931
932         * NEWS: Add entry for BZ #14602.
933
934 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
935
936         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
937         type-generic.
938         * math/libm-test.inc: Update comment listing what functions and
939         macros are tested.
940         (isgreater_test): New function.
941         (isgreaterequal_test): Likewise.
942         (isless_test): Likewise.
943         (islessequal_test): Likewise.
944         (islessgreater_test): Likewise.
945         (isunordered_test): Likewise.
946         (main): Call the new functions.
947
948 2012-10-09  Roland McGrath  <roland@hack.frob.com>
949
950         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
951         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
952         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
953         * sysdeps/i386/configure: Regenerated.
954         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
955         * sysdeps/mach/configure: Regenerated.
956         * sysdeps/mach/hurd/configure: Regenerated.
957         * sysdeps/powerpc/configure: Regenerated.
958         * sysdeps/powerpc/powerpc32/configure: Regenerated.
959         * sysdeps/powerpc/powerpc64/configure: Regenerated.
960         * sysdeps/s390/s390-32/configure: Regenerated.
961         * sysdeps/s390/s390-64/configure: Regenerated.
962         * sysdeps/sh/configure: Regenerated.
963         * sysdeps/sparc/configure: Regenerated.
964         * sysdeps/unix/sysv/linux/configure: Regenerated.
965         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
966         * sysdeps/x86_64/configure: Regenerated.
967
968         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
969         defined.  Don't check if MAP is NULL.
970
971 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
972
973         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
974         (_G_stat64): Likewise.
975         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
976         (_G_stat64): Likewise.
977         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
978         instead of struct _G_stat64.
979         * libio/fileops.c (mmap_remap_check): Likewise.
980         (decide_maybe_mmap): Likewise.
981         (_IO_new_file_seekoff): Likewise.
982         (_IO_file_stat): Likewise.
983         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
984         _G_off64_t.
985         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
986         instead of struct _G_stat64.
987         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
988
989 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
990
991         [BZ #14602]
992         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
993         Replace with ...
994         (CHECK_EOL): New macro.
995         (two_way_short_needle): Check beginning of haystack for EOL.  Use
996         CHECK_EOL.
997         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
998         Replace with CHECK_EOL.
999         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1000         Replace with CHECK_EOL.
1001
1002 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1003
1004         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1005         type-generic.
1006         * math/libm-test.inc: Update comment listing what functions and
1007         macros are tested.
1008         (finite_test): New function.
1009         (isinf_test): Likewise.
1010         (isnan_test): Likewise.
1011         (fpclassify_test): Test subnormal input.
1012         (isfinite_test): Likewise.
1013         (isnormal_test): Likewise.
1014         (main): Call the new functions.
1015
1016 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1017
1018         [BZ #14660]
1019         * Makerules (%.dynsym): Force C locale when running
1020         $(OBJDUMP) --dynamic-syms.
1021
1022 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1023
1024         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1025         <stdint.h>.
1026
1027 2012-10-06  David S. Miller  <davem@davemloft.net>
1028
1029         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1030         upper 32-bits of the length value in %o2 since we use branch-on-register
1031         tests which consider the entire 64-bit register.
1032
1033 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1034
1035         * string/test-strstr.c (check2): Add a test for page boundary.
1036
1037 2012-10-05  David S. Miller  <davem@davemloft.net>
1038
1039         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1040         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1041         file.
1042         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1043         sysdep_routines.
1044         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1045         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1046         and bzero when HWCAP_SPARC_CRYPTO is present.
1047
1048 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1049
1050         [BZ #14602]
1051         * string/test-strstr.c (check2): New function.
1052         (test_main): Call check2.
1053
1054         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1055         and bug-strchr1.
1056         * string/bug-strcasestr1.c (do_test): Moved to ...
1057         * string/test-strcasestr.c (check1): Here.  New function.
1058         (do_one_test): Break out result checking code into ...
1059         (check_result): This.  New function.
1060         (do_one_test): Call check_result.
1061         (test_main): Call check1.
1062         * string/bug-strchr1.c (do_test): Moved to ...
1063         * string/test-strchr.c (check1): Here.  New function.
1064         (do_one_test): Break out result checking code into ...
1065         (check_result): This.  New function.
1066         (do_one_test): Call check_result.
1067         (test_main): Call check1.
1068         * string/bug-strstr1.c (main): Moved to ...
1069         * string/test-strchr.c (check1): Here.  New function.
1070         (do_one_test): Break out result checking code into ...
1071         (check_result): This.  New function.
1072         (do_one_test): Call check_result.
1073         (test_main): Call check1.
1074         * string/bug-strcasestr1.c: Removed.
1075         * string/bug-strchr1.c: Likewise.
1076         * string/bug-strstr1.c: Likewise.
1077
1078         * elf/Makefile (dl-routines): Add hwcaps.
1079         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1080         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1081         (_dl_important_hwcaps): Moved to ...
1082         * elf/dl-hwcaps.c: Here.  New file.
1083         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1084
1085         [BZ #14557]
1086         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1087         if IS_IN_rtld isn't defined.
1088
1089         * elf/dl-support.c (_dl_sysinfo_map): New.
1090         Include "get-dynamic-info.h" and "setup-vdso.h".
1091         (_dl_non_dynamic_init): Call setup_vdso.
1092         * elf/dynamic-link.h: Don't include <assert.h>.
1093         (elf_get_dynamic_info): Moved to ...
1094         * elf/get-dynamic-info.h: Here.  New file.
1095         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1096         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1097         * elf/setup-vdso.h: Here.  New file.
1098         * elf/rtld.c: Include "setup-vdso.h".
1099         (dl_main): Call setup_vdso.
1100
1101 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1102
1103         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1104         creal in comment listing functions tested.  List finite, isinf,
1105         isnan, isless, islessequal, isgreater, isgreaterequal,
1106         islessgreater, isunordered, lgamma_r and pow10 as functions and
1107         macros not tested.  Mention which functions not tested are aliases
1108         for other functions.  Fix typo.  Note that signs of NaNs are not
1109         tested.
1110
1111         * scripts/config.guess: Update from config.git.
1112         * scripts/config.sub: Likewise.
1113
1114 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1115
1116         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1117         * misc/madvise.c (madvise): Renamed to __madvise.
1118         Make madvise a weak alias.
1119         * include/sys/mman.h: Declare __madvise.
1120         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1121         * sysdeps/unix/syscalls.list
1122         (madvise): Make __madvise the strong name, and madvise a weak alias.
1123         * sysdeps/unix/sysv/linux/syscalls.list
1124         (madvise, mmap): Remove redundant entries.
1125         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1126         * malloc/malloc.c (mtrim): Likewise.
1127         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1128
1129 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1130
1131         * sysdeps/mach/hurd/dl-cache.c: File removed.
1132         * config.h.in (USE_LDCONFIG): New #undef.
1133         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1134         * configure: Regenerated.
1135         * elf/Makefile (dl-routines): Add dl-cache only under
1136         [$(use-ldconfig) = yes].
1137         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1138         cache on [USE_LDCONFIG].
1139         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1140         [USE_LDCONFIG].
1141         * elf/rtld.c (dl_main): Likewise.
1142
1143 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1144
1145         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1146         _SC_LEVEL4_CACHE_LINESIZE.
1147
1148 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1149
1150         * sysdeps/unix/bsd/confstr.h: File removed.
1151
1152 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1153
1154         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1155         sys/sdt-config.h.
1156
1157 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1158
1159         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1160         Make 'mapoff' field ElfW(Off) rather than off_t.
1161
1162 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1163
1164         * nscd/Makefile: Remove nscd-cflags and all its users.
1165         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1166         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1167
1168         [BZ #10631]
1169         * malloc.c (malloc_printerr): Clarify error message.
1170
1171 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1172
1173         [BZ #14648]
1174         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1175         Set bit_FMA_Usable if FMA is supported.
1176         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1177         macro.
1178         (bit_FMA4_Usable): Updated.
1179         (index_FMA_Usable): New macro.
1180         (CPUID_FMA): Likewise
1181         (HAS_FMA): Defined with bit_FMA_Usable.
1182
1183 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1184
1185         * bits/types.h (__swblk_t): Type removed.
1186         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1187         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1188         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1189         (__SWBLK_T_TYPE): Likewise.
1190         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1191         (__SWBLK_T_TYPE): Likewise.
1192         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1193         (__SWBLK_T_TYPE): Likewise.
1194         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1195         (__SWBLK_T_TYPE): Likewise.
1196
1197 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1198             Honza Horak <hhorak@redhat.com>
1199
1200         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1201         (xdr_mapname): Use YPMAXMAP as maxsize.
1202         (xdr_peername): Use YPMAXPEER as maxsize.
1203         (xdr_keydat): Use YPAXRECORD as maxsize.
1204         (xdr_valdat): Use YPMAXRECORD as maxsize.
1205
1206 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1207
1208         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1209
1210         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1211         * csu/init-first.c: ... here.
1212         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1213         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1214         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1215         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1216         * sysdeps/i386/init-first.c: File removed.
1217         * sysdeps/sh/init-first.c: File removed.
1218
1219 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1220
1221         [BZ #14645]
1222         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1223         if x * y might underflow to zero and z is zero.
1224         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1225         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1226         * math/libm-test.inc (min_subnorm_value): New variable.
1227         (fma_test): Add more tests.
1228         (fma_test_towardzero): Likewise.
1229         (fma_test_downward): Likewise
1230         (fma_test_upward): Likewise.
1231         (initialize): Set min_subnorm_value.
1232
1233 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1234
1235         [BZ #14638]
1236         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1237         0 + 0.
1238         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1239         mode for addition resulting in exact zero.
1240         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1241         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1242         exact 0 + 0.
1243         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1244         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1245         * math/libm-test.inc (fma_test): Add more tests.
1246         (fma_test_towardzero): New function.
1247         (fma_test_downward): Likewise.
1248         (fma_test_upward): Likewise.
1249         (main): Call the new functions.
1250
1251 2012-09-28  David S. Miller  <davem@davemloft.net>
1252
1253         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1254
1255 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1256
1257         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1258         instead of SIGALRM.
1259
1260         * sysdeps/gnu/_G_config.h: Moved to ...
1261         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1262         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1263         * sysdeps/generic/_G_config.h: ... here.
1264
1265         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1266
1267         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1268
1269         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1270         Conditionalize target on [libnss_test1.so-version].
1271
1272         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1273
1274         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1275         (elfobjdir): Move out of conditionals.
1276
1277         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1278         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1279         (__nss_lookup_function): Conditionalize label remove_from_tree on
1280         [!DO_STATIC_NSS || SHARED], matching its only use.
1281
1282 2012-09-28  David S. Miller  <davem@davemloft.net>
1283
1284         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1285         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1286         file.
1287         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1288         sysdep_routines.
1289         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1290         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1291         when HWCAP_SPARC_CRYPTO is present.
1292
1293 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1294
1295         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1296
1297 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1298
1299         [BZ #6530]
1300         * stdio-common/vfprintf.c (process_string_arg): Revert
1301         2000-07-22 change.
1302
1303 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1304
1305         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1306         for testcase.
1307         * stdio-common/tst-sprintf.c: Include <locale.h>
1308         (main): Test sprintf's handling of incomplete multibyte
1309         characters.
1310
1311 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1312
1313         * elf/dl-runtime.c (VERSYMIDX): Removed.
1314         * elf/dl-version.c (VERSYMIDX): Likewise.
1315         * elf/do-rel.h (VERSYMIDX): Likewise.
1316         (VALIDX): Likewise.
1317         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1318         * elf/rtld.c (VALIDX): Likewise.
1319         (ADDRIDX): Likewise.
1320         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1321         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1322         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1323         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1324         (VALIDX): Likewise.
1325         (ADDRIDX): Likewise.
1326
1327 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1328
1329         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1330
1331 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1332
1333         [BZ #11438]
1334         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1335         to global scope.
1336         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1337         addresses are in the same scope as 192.0.2/24.
1338         * posix/gai.conf: Document new scope table defaults.
1339
1340 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1341
1342         [BZ #5298]
1343         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1344         for ftell.  Compute offsets from write pointers instead.
1345         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1346
1347 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1348
1349         [BZ #14543]
1350         * libio/Makefile (tests): New test case tst-fseek.
1351         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1352         combination works in wide mode.
1353         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1354         state when the external buffer state changes.
1355
1356 2012-09-27  David S. Miller  <davem@davemloft.net>
1357
1358         [BZ #14376]
1359         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1360         pass reloc->r_addend in as the 'high' argument to
1361         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1362
1363         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1364
1365 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1366
1367         * rt/tst-aio2.c: Include <pthread.h>.
1368         * rt/tst-aio3.c: Likewise.
1369
1370 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1371
1372         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1373
1374 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1375
1376         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1377         contents on [SHARED].
1378
1379 2012-09-26  Marek Polacek  <polacek@redhat.com>
1380
1381         [BZ #14530]
1382         [BZ #13741]
1383         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1384         for C++ and GCC <4.3 as well as for non GCC compilers.
1385
1386 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1387
1388         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1389
1390 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1391
1392         * Makefile.in (all, install): Declare with .PHONY.
1393         Reported by Michael Hope <michael.hope@linaro.org>.
1394
1395 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1396
1397         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1398         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1399         system header.
1400         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1401         Likewise.
1402         (sydep_routines): Add the new and the internal functions.
1403         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1404         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1406         (GLIBC_2.17): Add the new function.
1407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1408         (GLIBC_2.17): Likewise.
1409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1410         (GLIBC_2.17): Likewise.
1411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1412         (GLIBC_2.17): Likewise.
1413         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1414
1415 2012-09-25  Alan Modra  <amodra@gmail.com>
1416
1417         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1418         Add release barrier before setting once_control to say
1419         initialisation is done.  Add hints on lwarx.  Use macro in
1420         place of isync.
1421         (clear_once_control): Add release barrier.
1422
1423 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1424
1425         [BZ #13629]
1426         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1427         specially.
1428         * math/s_clog10.c (__clog10): Likewise.
1429         * math/s_clog10f.c (__clog10f): Likewise.
1430         * math/s_clog10l.c (__clog10l): Likewise.
1431         * math/s_clogf.c (__clogf): Likewise.
1432         * math/s_clogl.c (__clogl): Likewise.
1433         * math/Makefile (libm-calls): Add x2y2m1.
1434         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1435         (__x2y2m1): Likewise.
1436         (__x2y2m1l): Likewise.
1437         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1438         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1439         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1440         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1441         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1442         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1443         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1444         * sysdeps/i386/fpu/libm-test-ulps: Update.
1445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1446
1447         [BZ #14621]
1448         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1449         int as type of variable DEPTH.
1450         (glob): Use size_t instead of int as type of variables NEWCOUNT
1451         and OLD_PATHC.
1452
1453 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1454
1455         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1456         Add s_sincosf-sse2.
1457         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1458         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1459         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1460         macros for using routine as __sincosf_ia32.
1461         Use macro for function declaration and weak_alias.
1462         * sysdeps/i386/fpu/libm-test-ulps: Update.
1463
1464         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1465         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1466
1467         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1468         subnormal argument.
1469         * math/s_cexpf.c (__cexpf): Likewise.
1470         * math/s_csinf.c (__csinf): Likewise.
1471         * math/s_csinhf.c (__csinhf): Likewise.
1472         * math/s_ctanf.c (__ctanf): Likewise.
1473         * math/s_ctanhf.c (__ctanhf): Likewise.
1474         * math/s_ccosh.c (__ccoshf): Likewise.
1475         * math/s_cexp.c (__cexpl): Likewise.
1476         * math/s_csin.c (__csin): Likewise.
1477         * math/s_csinh.c (__csinh): Likewise.
1478         * math/s_ctan.c (__ctan): Likewise.
1479         * math/s_ctanh.c (ctanh): Likewise.
1480         * math/s_ccoshl.c (__ccoshl): Likewise.
1481         * math/s_cexpl.c (__cexpl): Likewise.
1482         * math/s_csinl.c (__csinl): Likewise.
1483         * math/s_csinhl.c (__csinhl): Likewise.
1484         * math/s_ctanl.c (__ctanl): Likewise.
1485         * math/s_ctanhl.c (__ctanhl): Likewise.
1486
1487 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1488
1489         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1490         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1491         (_IO_off_t): Define to __off_t, not _G_off_t.
1492         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1493         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1494         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1495         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1496         type of __dummy and __dummy2 fields.
1497         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1498         (_G_ssize_t): Likewise.
1499         (_G_off_t): Likewise.
1500         (_G_pid_t): Likewise.
1501         (_G_uid_t): Likewise.
1502         (_G_wchar_t): Likewise.
1503         (_G_wint_t): Likewise.
1504         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1505         (_G_ssize_t): Likewise.
1506         (_G_off_t): Likewise.
1507         (_G_pid_t): Likewise.
1508         (_G_uid_t): Likewise.
1509         (_G_wchar_t): Likewise.
1510         (_G_wint_t): Likewise.
1511         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1512         (_G_ssize_t): Likewise.
1513         (_G_off_t): Likewise.
1514         (_G_pid_t): Likewise.
1515         (_G_uid_t): Likewise.
1516         (_G_wchar_t): Likewise.
1517         (_G_wint_t): Likewise.
1518
1519 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1520
1521         * malloc/arena.c: Include malloc-sysdep.h.
1522         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1523         is sufficient to shrink the heap or an unmap is needed.
1524         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1525         new function check_may_shrink_heap.
1526         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1527         new function check_may_shrink_heap.
1528
1529 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1530
1531         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1532         comments.
1533
1534 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1535
1536         * catgets/test-gencat.sh: Add "set -e".
1537         * elf/tst-pathopt.sh: Likewise.
1538         * grp/tst_fgetgrent.sh: Likewise.
1539         * iconvdata/run-iconv-test.sh: Likewise.
1540         * intl/tst-gettext.sh: Likewise.
1541         * intl/tst-gettext2.sh: Likewise.
1542         * intl/tst-gettext4.sh: Likewise.
1543         * intl/tst-gettext6.sh: Likewise.
1544         * intl/tst-translit.sh: Likewise.
1545         * io/ftwtest-sh: Likewise.
1546         * libio/test-freopen.sh: Likewise.
1547         * malloc/tst-mtrace.sh: Likewise.
1548         * posix/globtest.sh: Likewise.
1549         * posix/tst-getconf.sh: Likewise.
1550         * posix/wordexp-tst.sh: Likewise.
1551         * stdio-common/tst-printf.sh: Likewise.
1552         * stdio-common/tst-unbputc.sh: Likewise.
1553         * stdlib/tst-fmtmsg.sh: Likewise.
1554         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1555         * catgets/Makefile: Do not specify -e option when running
1556         testsuite shell scripts.
1557         * elf/Makefile: Likewise.
1558         * grp/Makefile: Likewise.
1559         * iconvdata/Makefile: Likewise.
1560         * intl/Makefile: Likewise.
1561         * io/Makefile: Likewise.
1562         * libio/Makefile: Likewise.
1563         * malloc/Makefile: Likewise.
1564         * posix/Makefile: Likewise.
1565         * stdio-common/Makefile: Likewise.
1566         * stdlib/Makefile: Likewise.
1567         * sysdeps/x86_64/Makefile: Likewise.
1568
1569         * io/ftwtest-sh: Add copyright header.
1570         * posix/globtest.sh: Likewise.
1571         * posix/tst-getconf.sh: Likewise.
1572         * posix/wordexp-tst.sh: Likewise.
1573         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1574
1575 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1576
1577         [BZ #13679]
1578         * Makeconfig (+link): Defined as $(+link-static) if
1579         $(build-shared) isn't yes.
1580         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1581         isn't yes.
1582         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1583
1584         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1585
1586         [BZ #14562]
1587         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1588         new chunk size with MALLOC_ALIGN_MASK.
1589
1590 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1591
1592         [BZ #5044]
1593         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1594         <rounding-mode.h>.
1595         (__printf_fphex): Determine rounding using get_rounding_mode and
1596         round_away.
1597         * stdio-common/tst-printf-round.c (struct hex_test): New
1598         structure.
1599         (hex_tests): New variable.
1600         (test_hex_in_one_mode): New function.
1601         (do_test): Also run tests for hex float output.
1602
1603 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1604
1605         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1606         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1607         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1608         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1609         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1610         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1611         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1612         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1613
1614 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1615
1616         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1617         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1618         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1619         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1620
1621 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1622
1623         [BZ #14579]
1624         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1625         mode only.
1626         * elf/tst-rtld-load-self.sh: New test.
1627         * elf/Makefile: Run it.
1628
1629 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1632         (tst-writev-ENV): Remove.
1633         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1634
1635 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1636
1637         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1638
1639 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1640
1641         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1642         unconditional.
1643         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1644         Likewise.
1645         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1646         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1647         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1648         Likewise.
1649
1650 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1651
1652         [BZ #14587]
1653         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1654         * config.make.in (have-cpp-asm-debuginfo): Removed.
1655         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1656         * configure: Regenerated.
1657
1658 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1659
1660         [BZ #5044]
1661         * stdio-common/printf_fp.c: Include <stdbool.h> and
1662         <rounding-mode.h>.
1663         (___printf_fp): Determine rounding using get_rounding_mode and
1664         round_away.
1665         * stdio-common/tst-printf-round.c: New file.
1666         * stdio-common/Makefile (tests): Add tst-printf-round.
1667         (link-libm): New variable.
1668         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1669
1670 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1671
1672         [BZ #14576]
1673         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1674         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1675         Likewise.
1676         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1677         Likewise.
1678
1679 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1680
1681         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1682         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1683         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1684         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1685
1686 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1687
1688         [BZ #14518]
1689         * include/rounding-mode.h: New file.
1690         * sysdeps/generic/get-rounding-mode.h: Likewise.
1691         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1692         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1693         (MAX_VALUE): New macro.
1694         (MIN_VALUE): Likewise.
1695         (overflow_value): New function.
1696         (underflow_value): Likewise.
1697         (round_and_return): Use overflow_value and underflow_value to
1698         determine return values in overflow and underflow cases.  Use
1699         round_away to determine rounding depending on rounding mode.
1700         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1701         determine return values in overflow and underflow cases.
1702         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1703         (struct test_results): New structure.
1704         (struct test): Use struct test_results to store expected results
1705         for all rounding modes.
1706         (TEST): Include expected results for all rounding modes.
1707         (test_in_one_mode): New function.
1708         (do_test): Use test_in_one_mode to compute and check results.
1709         Check results for all rounding modes.
1710         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1711         $(link-libm).
1712
1713 2012-12-09  Allan McRae  <allan@archlinux.org>
1714
1715         * sysdeps/i386/fpu/libm-test-ulps: Update
1716
1717 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1720         (_G_int32_t): Likewise.
1721         (_G_uint16_t): Likewise.
1722         (_G_uint32_t): Likewise.
1723         (_G_HAVE_BOOL): Likewise.
1724         (_G_HAVE_ATEXIT): Likewise.
1725         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1726         (_G_HAVE_IO_FILE_OPEN): Likewise.
1727         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1728         (_G_int32_t): Likewise.
1729         (_G_uint16_t): Likewise.
1730         (_G_uint32_t): Likewise.
1731         (_G_HAVE_BOOL): Likewise.
1732         (_G_HAVE_ATEXIT): Likewise.
1733         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1734         (_G_HAVE_IO_FILE_OPEN): Likewise.
1735         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1736         (_G_int32_t): Likewise.
1737         (_G_uint16_t): Likewise.
1738         (_G_uint32_t): Likewise.
1739         (_G_HAVE_BOOL): Likewise.
1740         (_G_HAVE_ATEXIT): Likewise.
1741         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1742         (_G_HAVE_IO_FILE_OPEN): Likewise.
1743
1744 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1745
1746         * csu/libc-tls.c: Update copyright years.
1747
1748 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1749
1750         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1751         [!_G_USING_THUNKS]: Remove conditional code.
1752         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1753         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1754
1755         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1756         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1757         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1758         (_G_VTABLE_LABEL_PREFIX): Likewise.
1759         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1760         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1761         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1762         (_G_VTABLE_LABEL_PREFIX): Likewise.
1763         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1764         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1765         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1766         (_G_VTABLE_LABEL_PREFIX): Likewise.
1767         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1768
1769 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1770
1771         * libio/Makefile: Include ../Makeconfig before tests.
1772         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1773         only if $(build-shared) is yes.
1774
1775         * iconv/gconv_db.c: Update copyright years.
1776
1777 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1778
1779         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1780         unwind info if defined PIC. Fix special cases description.
1781         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1782
1783         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1784         DP_HI_MASK entry.
1785         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1786
1787 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1788
1789         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1790
1791         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1792         is NULL.
1793
1794         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1795         (LDLIBS-tst-chk4): This.
1796         (LDFLAGS-tst-chk5): Renamed to ...
1797         (LDLIBS-tst-chk5): This.
1798         (LDFLAGS-tst-chk6): Renamed to ...
1799         (LDLIBS-tst-chk6): This.
1800         (LDFLAGS-tst-lfschk4): Renamed to ...
1801         (LDLIBS-tst-lfschk4): This.
1802         (LDFLAGS-tst-lfschk5): Renamed to ...
1803         (LDLIBS-tst-lfschk5): This.
1804         (LDFLAGS-tst-lfschk6): Renamed to ...
1805         (LDLIBS-tst-lfschk6): This.
1806
1807         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1808         on $(common-objpfx)soversions.mk.
1809
1810 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1811
1812         [BZ #10014]
1813         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1814         example host name.
1815
1816 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1817
1818         * malloc/arena.c (arena_get_retry): New function that gets
1819         another arena for the caller to try its request on.
1820         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1821         current arena cannot fulfill the request.
1822         (__libc_memalign): Likewise.
1823         (__libc_memalign): Likewise.
1824         (__libc_pvalloc): Likewise.
1825         (__libc_calloc): Likewise.
1826
1827 2012-09-05  John Tobey  <john.tobey@gmail.com>
1828
1829         [BZ #13542]
1830         * manual/arith.texi (Operations on Complex): Fix description
1831         of carg branch cut.
1832
1833 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1834
1835         [BZ #10014]
1836         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1837         host name.
1838
1839         [BZ #10038]
1840         * manual/memory.texi (Memory): Make order of menu items match
1841         order of sections.
1842
1843 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1844
1845         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1846         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1847         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1848
1849 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1850
1851         * csu/libc-tls.c (static_dtv): Renamed to ...
1852         (_dl_static_dtv): This.  Make it global.
1853         (_dl_initial_dtv): Removed.
1854         (__libc_setup_tls): Updated.
1855         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1856         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1857         DL_INITIAL_DTV.
1858
1859 2012-09-06  Petr Machata  <pmachata@redhat.com>
1860
1861         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1862         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1863         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1864         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1865
1866 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1867
1868         [BZ #14545]
1869         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1870         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1871         freeing dtv[-1].
1872
1873 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1874
1875         [BZ #14544]
1876         * Makeconfig (link-static-before-libc): Replace $(+prector)
1877         with $(+prectorT).
1878         (link-static-after-libc): Replace $(+postctor) with
1879         $(+postctorT).
1880         (link-bounded): Replace $(+prector)/$(+postctor) with
1881         $(+prectorT)/$(+postctorT).
1882         (+prectorT): New macro.
1883         (+postctorT): Likewise.
1884
1885 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1886
1887         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1888         (round_str): Handle values above the maximum for IBM long double
1889         as inexact.
1890         * stdlib/tst-strtod-round.c (tests): Regenerated.
1891
1892 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1893
1894         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1895         assembler flag.
1896         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1897         zarch_nohighgprs around the zarch optimized routines.
1898         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1899         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1900         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1901         for zarch.
1902
1903 2012-09-05  David S. Miller  <davem@davemloft.net>
1904
1905         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1906
1907         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1908         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1909         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1910         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1911         entries.
1912
1913 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1914
1915         * malloc/arena.c: Fold copyright years.
1916         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1917
1918 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1919
1920         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1921
1922 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1923
1924         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1925
1926 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1927
1928         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1929         change internal state upon failure.
1930
1931 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1932
1933         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1934         * malloc/memusage.c (mmap): Likewise.
1935         (mmap64, mremap): Likewise.  Adjust name in comment.
1936
1937 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1938
1939         * libio/fileops.c: Fix typos in comments.
1940         * libio/oldfileops.c: Likewise.
1941         * libio/wfileops.c: Likewise.
1942
1943 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1944
1945         [BZ #1349]
1946         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1947         (tst-malloc-usable-ENV): Set environment for test case.
1948         * malloc/hooks.c (malloc_check_get_size): New function to get
1949         requested size.
1950         * malloc/malloc.c (musable): Use malloc_check_get_size.
1951         * malloc/tst-malloc-usable.c: New test case.
1952
1953 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1954
1955         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1956
1957 2012-09-05  Allan McRae  <allan@archlinux.org>
1958
1959         [BZ #13966]
1960         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1961         determine header location.
1962         * configure: Regenerated.
1963
1964 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1965
1966         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1967         float format.
1968         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1969         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1970         format.
1971         (test): Regenerate.
1972
1973 2012-09-04  David S. Miller  <davem@davemloft.net>
1974
1975         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1976         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1977         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1978
1979 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1980
1981         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1982         failures.
1983
1984         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1985
1986 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1987
1988         [BZ #9914]
1989         * libio/iogetdelim.c: Include <limits.h>.
1990         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1991         + len + 1 would overflow.
1992
1993 2012-09-03  Andreas Jaeger  <aj@suse.de>
1994
1995         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1996         * sysdeps/i386/fpu/libm-test-ulps: Update.
1997
1998 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1999
2000         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2001         Add s_sinf-sse2, s_conf-sse2.
2002
2003         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2004         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2005         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2006         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2007
2008         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2009         for using routine as __sinf_ia32.
2010         Use macro for function declaration and weak_alias.
2011         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2012         for using routine as __cosf_ia32.
2013         Use macro for function declaration and weak_alias.
2014
2015         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2016         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2017
2018         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2019         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2021
2022         * math/libm-test.inc (cos_test): Add more test cases.
2023         (sin_test): Likewise.
2024         (sincos_test): Likewise.
2025
2026 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2027
2028         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2029         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2030         hidden.
2031         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2032
2033 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2034
2035         [BZ #14538]
2036         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2037         first element of the GOT.
2038         (elf_machine_load_address): Return the difference between
2039         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2040
2041 2012-09-01  Allan McRae  <allan@archlinux.org>
2042
2043         [BZ #13412]
2044         * configure.in (AWK): Require gawk version 3.0 or later.
2045         * configure: Regenerated.
2046
2047 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2048
2049         * sysdeps/unix/sysv/linux/kernel-features.h
2050         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2051         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2052         [__NR_clock_getres]: Make code unconditional.
2053         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2054         (clock_getcpuclockid): Remove code left unreachable by removal of
2055         conditionals.
2056         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2057         code unconditional.
2058         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2059         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2060         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2061         Make code unconditional.
2062         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2063         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2064         * sysdeps/unix/sysv/linux/clock_settime.c
2065         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2066         conditional code.
2067         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2068         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2069
2070 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2071
2072         [BZ #14476]
2073         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2074         scripts/test-installation.pl.
2075
2076         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2077         and $ld_so_version if it is set.
2078
2079 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2080
2081         [BZ #14516]
2082         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2083         failure if reading from procfs failed.
2084         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2085
2086 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2087
2088         * sysdeps/unix/sysv/linux/kernel-features.h
2089         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2090         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2091         Remove conditional code.
2092         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2093         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2094         Remove conditional code.
2095         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2096         * sysdeps/unix/sysv/linux/i386/fxstat.c
2097         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2098         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2099         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2100         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2101         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2102         * sysdeps/unix/sysv/linux/i386/lxstat.c
2103         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2104         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2105         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2106         Remove conditional code.
2107         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2108         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2109         Remove conditional code.
2110         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2111         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2112         <kernel-features.h>.
2113         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2114         Remove.
2115         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2116         Remove conditional code.
2117         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2118         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2119         Remove conditional.
2120
2121 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2122
2123         [BZ #5400]
2124         * NEWS: Add fixed bug number.
2125
2126 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2127
2128         [BZ #14519]
2129         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2130         underflowing exponent in case of negative sign.
2131         * stdlib/tst-strtod-round-data: Add more tests.
2132         * stdlib/tst-strtod-round.c (tests): Regenerated.
2133
2134         [BZ #3479]
2135         * stdlib/strtod_l.c (NDIG): Remove.
2136         (HEXNDIG): Likewise.
2137         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2138         smallest representable value.
2139         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2140         lie within an exact representation of 1/2 ulp of the result.
2141         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2142         unconditionally.
2143         (TENS_P9_IDX): Define unconditionally.
2144         (TENS_P9_SIZE): Likewise.
2145         (TENS_P10_IDX): Likewise.
2146         (TENS_P10_SIZE): Likewise.
2147         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2148         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2149         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2150         entries for 10^2^13 and 10^2^14.
2151         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2152         (TENS_P13_IDX): Define.
2153         (TENS_P13_SIZE): Likewise.
2154         (TENS_P14_IDX): Likewise.
2155         (TENS_P14_SIZE): Likewise.
2156         (_fpioconst_pow10): Change array size to
2157         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2158         unconditional.
2159         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2160         1024]: Add entries for 10^2^13 and 10^2^14.
2161         [LAST_POW10 > _LAST_POW10]: Remove #error.
2162         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2163         (_fpioconst_pow10): Change array size to
2164         FPIOCONST_POW10_ARRAY_SIZE.
2165         * stdlib/gen-fpioconst.c: New file.
2166         * stdlib/gen-tst-strtod-round.c: Likewise.
2167         * stdlib/tst-strtod-round-data: Likewise.
2168         * stdlib/tst-strtod-round.c: Likewise.
2169         * stdlib/Makefile (tests): Add tst-strtod-round.
2170
2171         [BZ #14459]
2172         * stdlib/strtod_l.c: Include <stdint.h>.
2173         (NDEBUG): Do not define.
2174         (round_and_return): Change EXPONENT parameter to type intmax_t.
2175         Rearrange calculations to avoid internal overflow possibilities.
2176         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2177         Rearrange calculations to avoid internal overflow possibilities.
2178         Assert that number fits inside MPNSIZE limbs.
2179         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2180         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2181         calculations and add assertions to avoid internal overflow
2182         possibilities.  Add casts to avoid signed/unsigned operations.
2183         * stdlib/tst-strtod-overflow.c: New file.
2184         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2185
2186 2012-08-25  Marek Polacek  <polacek@redhat.com>
2187
2188         * time/time.h: Fix some typos in comments.
2189
2190 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2191
2192         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2193         * posix/tst-rfc3484-2.c: Likewise.
2194         * posix/tst-rfc3484-3.c: Likewise.
2195
2196 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2197
2198         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2199         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2200
2201 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2202
2203         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2204         #include of fxstatat64.c.
2205
2206 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2207
2208         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2209         * shadow/getspent_r.c: Likewise.
2210         * shadow/getspnam.c: Likewise.
2211         * shadow/getspnam_r.c: Likewise.
2212         * gshadow/getsgent.c: Likewise.
2213         * gshadow/getsgent_r.c: Likewise.
2214         * gshadow/getsgnam.c: Likewise.
2215         * gshadow/getsgnam_r.c: Likewise.
2216         * inet/getnetbyad.c: Likewise.
2217         * inet/getnetbyad_r.c: Likewise.
2218         * inet/getnetbynm.c: Likewise.
2219         * inet/getnetbynm_r.c: Likewise.
2220         * inet/getnetent.c: Likewise.
2221         * inet/getnetent_r.c: Likewise.
2222         * inet/getproto.c: Likewise.
2223         * inet/getproto_r.c: Likewise.
2224         * inet/getprtent.c: Likewise.
2225         * inet/getprtent_r.c: Likewise.
2226         * inet/getprtname.c: Likewise.
2227         * inet/getprtname_r.c: Likewise.
2228         * inet/getrpcbyname.c: Likewise.
2229         * inet/getrpcbyname_r.c: Likewise.
2230         * inet/getrpcbynumber.c: Likewise.
2231         * inet/getrpcbynumber_r.c: Likewise.
2232         * inet/getrpcent.c: Likewise.
2233         * inet/getrpcent_r.c: Likewise.
2234         * inet/getaliasent.c: Likewise.
2235         * inet/getaliasent_r.c: Likewise.
2236         * inet/getaliasname.c: Likewise.
2237         * inet/getaliasname_r.c: Likewise.
2238         * nscd/getgrgid_r.c: Likewise.
2239         * nscd/getgrnam_r.c: Likewise.
2240         * nscd/gethstbyad_r.c: Likewise.
2241         * nscd/gethstbynm3_r.c: Likewise.
2242         * nscd/getpwnam_r.c: Likewise.
2243         * nscd/getpwuid_r.c: Likewise.
2244         * nscd/getsrvbynm_r.c: Likewise.
2245         * nscd/getsrvbypt_r.c: Likewise.
2246         * nscd/gai.c: Likewise.
2247
2248         * configure.in (build_nscd): New substituted variable, set
2249         by --disable-build-nscd and defaults to $use_nscd.
2250         * configure: Regenerated.
2251         * config.make.in (build-nscd): New substituted variable.
2252         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2253         Change conditional to require [$(build-nscd) = yes] as well.
2254         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2255
2256         [BZ# 13696]
2257         * configure.in (use_nscd): New substituted variable, set by
2258         --disable-nscd.  If enabled, define USE_NSCD.
2259         * configure: Regenerated.
2260         * config.h.in: Add USE_NSCD.
2261         * config.make.in (use-nscd): New substituted variable.
2262         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2263         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2264         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2265         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2266         (CFLAGS-getgrnam_r.c): Likewise.
2267         (CFLAGS-initgroups.c): Likewise.
2268         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2269         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2270         Variables removed.
2271         * inet/getnetgrent_r.c
2272         (nscd_setnetgrent): New function, broken out of ...
2273         (setnetgrent): ... here.  Call it.
2274         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2275         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2276         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2277         * nscd/Makefile (routines, aux): Move definitions after include of
2278         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2279         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2280         Conditionalize on [USE_NSCD].
2281         (is_nscd, nscd_init_cb): Likewise.
2282         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2283         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2284         * nss/nss_db/db-init.c: Likewise.
2285         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2286         [USE_NSCD].
2287         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2288         (make_request): Use it.
2289         (cache_valid_p): New function.
2290         (__check_pf): Use it.
2291         * NEWS: Add item for --disable-nscd.
2292
2293 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2294
2295         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2296         to support sed >= 4.2.1-20-ga9bf076.
2297         * configure: Regenerated.
2298
2299 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2300
2301         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2302         Conditionalize whole body on [IREL].
2303
2304 2012-08-22  Jeff Law <law@redhat.com>
2305
2306         [BZ #14505]
2307         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2308         if the family is PF_UNSPEC.
2309
2310 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2311
2312         * Makerules (lib-version): Rename from V.
2313         (install-lib-nosubdir): Change V to lib-version.
2314
2315 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2316
2317         [BZ #14252]
2318         * powerpc32/power6/wcschr.c: New file.
2319         * powerpc32/power6/wcscpy.c: New file.
2320         * powerpc32/power6/wcsrchr.c: New file.
2321         * powerpc64/power6/wcschr.c: New file.
2322         * powerpc64/power6/wcscpy.c: New file.
2323         * powerpc64/power6/wcsrchr.c: New file.
2324
2325 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2326
2327         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2328         (two_way_short_needle): Use it.
2329         * string/strstr.c (AVAILABLE1_USES_J): Define.
2330         * string/strcasestr.c: Likewise.
2331
2332         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2333         array references.
2334         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2335
2336         [BZ #11607]
2337         * NEWS: Add an entry.
2338         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2339         define their defaults.
2340         (two_way_short_needle): Detect end-of-string on-the-fly.
2341         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2342         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2343         * string/bug-strcasestr1.c: New test.
2344         * string/Makefile: Run it.
2345
2346 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2347
2348         [BZ #11607]
2349         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2350         the first character.
2351
2352 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2353
2354         * csu/elf-init.c (__libc_csu_irel): Function removed.
2355         * csu/libc-start.c (apply_irel): New function.
2356         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2357
2358 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2359
2360         * sysdeps/unix/sysv/linux/kernel-features.h
2361         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2362         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2363         <kernel-features.h>.
2364         [__NR_fadvise64_64]: Make code unconditional.
2365         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2366         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2367         !__NR_fadvise64_64)]: Likewise.
2368         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2369         !__NR_fadvise64_64))]: Likewise.
2370         [__NR_fadvise64]: Make code unconditional.
2371         [!__NR_fadvise64]: Remove conditional code.
2372         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2373         <kernel-features.h>.
2374         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2375         unconditional.
2376         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2377         conditional code.
2378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2379         not include <kernel-features.h>.
2380         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2381         unconditional.
2382         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2383         conditional code.
2384         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2385         include <kernel-features.h>.
2386         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2387         unconditional.
2388         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2389         conditional code.
2390
2391 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2392
2393         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2394         slight instruction rearrangements per scrollpipe analysis.
2395         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2396
2397 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2398
2399         * manual/syslog.texi (syslog; vsyslog, closelog):
2400         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2401         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2402
2403         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2404         DSOCAPS to match condition on defining it.
2405
2406 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2407
2408         * sysdeps/unix/sysv/linux/kernel-features.h
2409         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2411         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2412         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2414         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2415         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2417         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2418         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2419
2420         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2421         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2422
2423         * sysdeps/unix/sysv/linux/kernel-features.h
2424         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2425         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2426         unconditional.
2427         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2428         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2429         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2430         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2431         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2432         Make code unconditional.
2433         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2434         (__mmap64) [!__NR_mmap2]: Likewise.
2435         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2436         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2437         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2438         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2439         [__NR_mmap2]: Make code unconditional.
2440         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2441         (__mmap64) [!__NR_mmap2]: Likewise.
2442
2443 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2444
2445         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2446
2447 2012-08-18  Andreas Jaeger  <aj@suse.de>
2448
2449         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2450
2451 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2452
2453         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2454         * include/unistd.h (__have_sock_cloexec): Likewise.
2455         (__have_pipe2): Likewise.
2456         (__have_dup3): Likewise.
2457
2458 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2459
2460         [BZ #9685]
2461         * include/unistd.h (__have_pipe2): Change define into an extern int.
2462         (__have_dup3): Likewise.
2463         * socket/have_sock_cloexec.c: Include fcntl.h.
2464         (__have_pipe2): New variable.
2465         (__have_dup3): Likewise.
2466
2467 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2468
2469         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2470
2471 2012-08-17  Marek Polacek  <polacek@redhat.com>
2472
2473         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2474         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2475
2476 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2477
2478         * configure.in: Add AC_SUBST for sysheaders.
2479         * configure: Regenerated.
2480         * config.make.in (sysheaders): New substituted variable.
2481
2482         * sysdeps/unix/mkfifo.c: Moved ...
2483         * sysdeps/posix/mkfifo.c: ... here.
2484         * sysdeps/unix/mkfifoat.c: Moved ...
2485         * sysdeps/posix/mkfifoat.c: ... here.
2486
2487         * sysdeps/unix/utime.c: Moved ...
2488         * sysdeps/posix/utime.c: ... here.
2489
2490         * sysdeps/unix/time.c: Moved ...
2491         * sysdeps/posix/time.c: ... here.
2492         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2493         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2494
2495         * sysdeps/unix/nice.c: Moved ...
2496         * sysdeps/posix/nice.c: ... here.
2497
2498         * sysdeps/unix/alarm.c: Moved ...
2499         * sysdeps/posix/alarm.c: ... here.
2500
2501         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2502
2503 2012-08-17  Jeff Law <law@redhat.com>
2504
2505         * intl/Makefile (codeset_mo): New variable.
2506         ($(codeset_mo)): New target.
2507         (tst-codeset.out): Depend on that.  Remove explicit rule.
2508         (tst-gettext3.out, tst-gettext5.out): Likewise.
2509         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2510         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2511         * intl/tst-codeset.sh: Remove.
2512         * intl/tst-gettext3.sh: Likewise.
2513         * intl/tst-gettext5.sh: Likewise.
2514
2515 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2516
2517         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2518         * sysdeps/unix/syscalls.list: ... here.
2519
2520         * sysdeps/posix/getaddrinfo.c
2521         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2522         (gaiconf_init, gaiconf_reload): Use them.
2523         [!_STATBUF_ST_NSEC]
2524         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2525         Define using time_t rather than struct timespec.
2526
2527         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2528         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2529         Macros removed.
2530         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2531         [!NO_THREADS].
2532         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2533         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2534         Likewise.
2535
2536         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2537         __libc_cleanup_push argument.
2538
2539         * bits/param.h: New file.
2540         * misc/sys/param.h: New file.
2541         * include/sys/param.h: New file.
2542         * misc/Makefile (headers): Add bits/param.h.
2543         * sysdeps/generic/sys/param.h: File removed.
2544         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2545         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2546         * sysdeps/mach/hurd/bits/param.h: New file.
2547         * sysdeps/mach/hurd/sys/param.h: File removed.
2548
2549         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2550         last change.
2551
2552         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2553         [_IO_MTSAFE_IO].
2554         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2555         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2556         New macros.
2557
2558         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2559         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2560         rather than -D_IO_MTSAFE_IO conditionally.
2561         * stdio-common/Makefile (CPPFLAGS): Likewise.
2562         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2563         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2564         Use $(libio-mtsafe).
2565         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2566         of -D_IO_MTSAFE_IO.
2567         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2568         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2569         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2570         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2571         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2572         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2573         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2574         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2575         (CFLAGS-fread_u_chk.c): Likewise.
2576         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2577         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2578         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2579         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2580         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2581         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2582         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2583         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2584         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2585
2586         * libio/Makefile: Test [$(libc-reentrant) = yes]
2587         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2588
2589         * Makeconfig
2590         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2591         * sysdeps/pthread/configure: File removed.
2592         * sysdeps/pthread/Makeconfig: New file.
2593         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2594         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2595
2596 2012-08-16  Gary Benson  <gbenson@redhat.com>
2597
2598         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2599         unmapping the first object in a namespace.
2600
2601 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2602
2603         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2604         (__internal_setnetgrent): ... this.  Add internal_function to
2605         definition.  Add libc_hidden_def.
2606         (setnetgrent): Update caller.
2607         (internal_endnetgrent): Renamed to ...
2608         (__internal_endnetgrent): ... this.  Add internal_function to
2609         definition.  Add libc_hidden_def.
2610         (endnetgrent): Update caller.
2611         (internal_getnetgrent_r): Renamed to ...
2612         (__internal_getnetgrent_r): ... this.  Add internal_function to
2613         definition.  Add libc_hidden_def.
2614         (__getnetgrent_r): Update caller.
2615         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2616
2617 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2618
2619         * stdlib/longlong.h: Update from GCC.
2620
2621 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2622
2623         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2624         on _QL, which is set by umul_ppmm but never used.
2625         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2626         variables, which are set by GMP macros but never used.
2627         * stdio-common/_itowa.c (_itowa): Likewise.
2628         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2629         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2630
2631 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2632
2633         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2634         struct La_sh_regs is not constant.
2635         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2636         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2637         and struct La_sparc64_regs are not constant.
2638
2639 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2640
2641         * sysdeps/unix/sysv/linux/kernel-features.h
2642         (__ASSUME_POSIX_TIMERS): Remove.
2643         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2644         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2645         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2646         Make code unconditional.
2647         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2648         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2649         Make code unconditional.
2650         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2651         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2652         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2653         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2654         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2655         Make code unconditional.
2656         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2657         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2658         (__libc_missing_posix_timers): Remove.
2659
2660 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2661
2662         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2663         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2664
2665         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2666
2667         * elf/dl-sym.c: Include <stdlib.h>.
2668
2669         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2670         constants, which avoids warnings in 32-bit builds.
2671
2672         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2673         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2674
2675         * misc/lseek.c: File moved to ...
2676         * io/lseek.c: ... here.
2677
2678         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2679
2680         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2681         shifting LEN more than 31 bits at once.
2682
2683 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2684
2685         [BZ #14195]
2686         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2687         segmentation fault for a case of two empty input strings.
2688         * string/test-strncasecmp.c (check1): Renamed to...
2689         (bz12205): ...this.
2690         (bz14195): Add new testcase for two empty input strings and N > 0.
2691         (test_main): Call new testcase, adapt for renamed function.
2692
2693 2012-08-15  Andreas Jaeger  <aj@suse.de>
2694
2695         [BZ #14090]
2696         * crypt/md5test2.c: New test, based on test supplied by Serge
2697         Belyshev <belyshev@depni.sinp.msu.ru>.
2698         * crypt/Makefile (xtests): Add md5test-giant..
2699         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2700
2701 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2702
2703         [BZ #14090]
2704         * crypt/md5.c (md5_process_block): Don't assume the buffer
2705         length is less than 2**32.
2706         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2707         length is less than 2**64.
2708
2709 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2710
2711         * string/str-two-way.h: Include <sys/param.h>.
2712         (MAX): Macro removed.
2713
2714         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2715         Move #define and #undef of memmove to just before and after
2716         including <string.h>.
2717
2718         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2719         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2720         and after including <string.h>.  Move declarations of
2721         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2722         to before #include "string/memmove.c".
2723
2724         * include/dirent.h: Declare __getdirentries.
2725
2726         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2727         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2728
2729 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2730
2731         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2732         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2733         * sysdeps/i386/configure: Regenerated.
2734         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2735         STABS_CURRENT_FILE, and STABS_FUN.
2736         (END): Remove call to STABS_FUN_END.
2737         (STABS_CURRENT_FILE1): Delete.
2738         (STABS_CURRENT_FILE): Likewise.
2739         (STABS_FUN): Likewise.
2740         (STABS_FUN_END): Likewise.
2741         (STABS_FUN2): Likewise.
2742         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2743         * sysdeps/x86_64/configure: Regenerated.
2744
2745 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2746
2747         * elf/dl-open.c: Include <atomic.h>.
2748         * elf/dl-lookup.c: Likewise.
2749
2750 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2751
2752         * sysdeps/unix/sysv/linux/kernel-features.h
2753         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2754         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2755         unconditionally.
2756         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2757         unconditionally.
2758         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2759         condition on __ASSUME_CLONE_THREAD_FLAGS.
2760
2761 2012-08-14  Andreas Jaeger  <aj@suse.de>
2762
2763         * sysdeps/i386/fpu/libm-test-ulps: Update.
2764
2765 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2766
2767         * include/atomic.h (atomic_exchange_and_add): Split into ...
2768         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2769         New atomic macros.
2770
2771 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2772
2773         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2774
2775 2012-08-13  Jeff Law <law@redhat.com>
2776
2777         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2778         null byte in the output string.
2779
2780 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2781
2782         * sysdeps/unix/sysv/linux/kernel-features.h
2783         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2784         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2785         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2786         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2787         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2788         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2789         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2790
2791 2012-08-09  Jeff Law <law@redhat.com>
2792
2793         [BZ #13939]
2794         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2795         When avoid_arena is set, don't retry in the that arena.  Pick the
2796         next one, whatever it might be.
2797         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2798         (arena_lock): Pass in new parameter to arena_get2.
2799         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2800         arena_get2.
2801         (__libc_malloc): Unify retrying after main arena failure with
2802         __libc_memalign version.
2803         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2804
2805 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2806
2807         [BZ #14166]
2808         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2809         to __redirect_strstr.
2810         (__strstr_sse42): Use typeof __redirect_strstr.
2811         (__strstr_ia32): Likewise.
2812         (__libc_strstr): New prototype.
2813         (strstr): Renamed to ...
2814         (__libc_strstr): This.
2815         (strstr): New strong alias of __libc_strstr.
2816         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2817         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2818         __redirect_time.
2819         Include <time.h>.
2820         (__libc_time): New prototype.
2821         (time_ifunc): Replace time with __libc_time.
2822         (time): New strong alias and hidden definition of __libc_time.
2823         (__GI_time): Remove strong alias.
2824         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2825         Include <stddef.h>.
2826         (memmove): Redefined to __redirect_memmove.
2827         (__memmove_sse2): Use typeof __redirect_memmove.
2828         (__memmove_ssse3): Likewise.
2829         (__memmove_ssse3_back): Likewise.
2830         (__libc_memmove): New prototype.
2831         (memmove): Renamed to ...
2832         (__libc_memmove): This.
2833         (memmove): New strong alias of __libc_memmove.
2834
2835 2012-08-08  Mark Salter  <msalter@redhat.com>
2836
2837         * elf/elf.h
2838         (R_MN10300_TLS_GD): Define.
2839         (R_MN10300_TLS_LD): Likewise.
2840         (R_MN10300_TLS_LDO): Likewise.
2841         (R_MN10300_TLS_GOTIE): Likewise.
2842         (R_MN10300_TLS_IE): Likewise.
2843         (R_MN10300_TLS_LE): Likewise.
2844         (R_MN10300_TLS_DTPMOD): Likewise.
2845         (R_MN10300_TLS_DTPOFF): Likewise.
2846         (R_MN10300_TLS_TPOFF): Likewise.
2847         (R_MN10300_SYM_DIFF): Likewise.
2848         (R_MN10300_ALIGN): Likewise.
2849         (R_MN10300_NUM): Update.
2850
2851 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2852
2853         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2854         Remove.
2855
2856 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2857
2858         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2859
2860         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2861         sysdeps/unix -> sysdeps/posix move.
2862         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2863
2864 2012-08-07      Allan McRae     <allan@archlinux.org>
2865
2866         [BZ #14303]
2867         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2868         (SUNOS_CPP): Likewise.
2869         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2870         not found.
2871         (open_input): Call CPP using execvp.
2872
2873 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2874
2875         * sysdeps/unix/sysv/linux/kernel-features.h
2876         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2877         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2878         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2879         (__ASSUME_WAITID_SYSCALL): Likewise.
2880         * sysdeps/unix/sysv/linux/dl-execstack.c
2881         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2882         code unconditional.
2883         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2884         conditional code.
2885         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2886         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2887         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2888         code.
2889         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2890         unconditional.
2891         [__ASSUME_WAITID_SYSCALL]: Likewise.
2892         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2893
2894 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2895
2896         * sysdeps/unix/closedir.c: Renamed to ...
2897         * sysdeps/posix/closedir.c: ... here.
2898         * sysdeps/unix/dirfd.c: Renamed to ...
2899         * sysdeps/posix/dirfd.c: ... here.
2900         * sysdeps/unix/dirstream.h: Renamed to ...
2901         * sysdeps/posix/dirstream.h: ... here.
2902         * sysdeps/unix/fdopendir.c: Renamed to ...
2903         * sysdeps/posix/fdopendir.c: ... here.
2904         * sysdeps/unix/opendir.c: Renamed to ...
2905         * sysdeps/posix/opendir.c: ... here.
2906         * sysdeps/unix/readdir.c: Renamed to ...
2907         * sysdeps/posix/readdir.c: ... here.
2908         * sysdeps/unix/readdir_r.c: Renamed to ...
2909         * sysdeps/posix/readdir_r.c: ... here.
2910         * sysdeps/unix/rewinddir.c: Renamed to ...
2911         * sysdeps/posix/rewinddir.c: ... here.
2912         * sysdeps/unix/seekdir.c: Renamed to ...
2913         * sysdeps/posix/seekdir.c: ... here.
2914         * sysdeps/unix/telldir.c: Renamed to ...
2915         * sysdeps/posix/telldir.c: ... here.
2916         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2917         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2918         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2919         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2920
2921         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2922         * bits/fcntl.h: ... here.
2923
2924         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2925         not 0.
2926         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2927         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2928         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2929         (struct flock): Move l_start, l_len to the beginning.
2930         Use __pid_t for l_pid.
2931         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2932         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2933         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2934         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2935         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2936         [__USE_LARGEFILE64] (struct flock64): New type.
2937         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2938
2939         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2940         * bits/dirent.h: ... here.
2941
2942         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2943         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2944
2945 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2946
2947         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2948         Change from 2.6.0 to 2.6.16.
2949         * sysdeps/unix/sysv/linux/configure: Regenerated.
2950         * sysdeps/unix/sysv/linux/kernel-features.h
2951         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2952         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2953         version.
2954         (__ASSUME_UTIMES): Likewise.
2955         (__ASSUME_CLONE_STOPPED): Remove.
2956         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2957         architectures, not kernel version.
2958         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2959         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2960         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2961         (__ASSUME_WAITID_SYSCALL): Likewise.
2962         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2963         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2964         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2965         refer to older versions.
2966
2967 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2968
2969         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2970         Define alphasort64 as an alias.
2971         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2972         Define versionsort64 as an alias.
2973         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2974         Define scandir64 as an alias.
2975         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2976         Define scandirat64 as an alias.
2977         * dirent/alphasort64.c (alphasort64):
2978         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2979         * dirent/versionsort64.c: Likewise.
2980         * dirent/scandir64.c: Likewise.
2981         * dirent/scandirat64.c: Likewise.
2982         * sysdeps/wordsize-64/alphasort.c: File removed.
2983         * sysdeps/wordsize-64/alphasort64.c: File removed.
2984         * sysdeps/wordsize-64/scandir.c: File removed.
2985         * sysdeps/wordsize-64/scandir64.c: File removed.
2986         * sysdeps/wordsize-64/scandirat.c: File removed.
2987         * sysdeps/wordsize-64/scandirat64.c: File removed.
2988         * sysdeps/wordsize-64/versionsort.c: File removed.
2989         * sysdeps/wordsize-64/versionsort64.c: File removed.
2990         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2991         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2992         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2993         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2994         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2995         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2996         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2998
2999         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3000         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3001         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3002         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3003         [defined __arch64__ || defined __sparcv9]
3004         (__INO_T_MATCHES_INO64_T): New macro.
3005         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3006         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3007         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3008         * sysdeps/unix/sysv/linux/bits/dirent.h
3009         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3010         (_DIRENT_MATCHES_DIRENT64): New macro.
3011
3012         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3013         Define lockf64 as an alias.
3014         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3015         Define fseeko64 as an alias.
3016         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3017         Define ftello64 as an alias.
3018         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3019         Define _IO_fgetpos64 and fgetpos64 as aliases.
3020         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3021         Define _IO_fsetpos64 and fsetpos64 as aliases.
3022         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3023         Conditionalize body on this.
3024         * libio/fseeko64.c: Likewise.
3025         * libio/ftello64.c: Likewise.
3026         * libio/iofgetpos64.c: Likewise.
3027         * libio/iofsetpos64.c: Likewise.
3028         * sysdeps/wordsize-64/lockf.c: File removed.
3029         * sysdeps/wordsize-64/lockf64.c: File removed.
3030         * sysdeps/wordsize-64/fseeko.c: File removed.
3031         * sysdeps/wordsize-64/fseeko64.c: File removed.
3032         * sysdeps/wordsize-64/ftello.c: File removed.
3033         * sysdeps/wordsize-64/ftello64.c: File removed.
3034         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3035         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3036         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3037         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3038         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3039         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3040         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3041         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3042         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3043         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3044         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3045         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3046         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3047         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3048
3049         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3050         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3051         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3052         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3053         [defined __arch64__ || defined __sparcv9]
3054         (__OFF_T_MATCHES_OFF64_T): New macro.
3055         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3056         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3057         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3058         (__OFF_T_MATCHES_OFF64_T): New macro.
3059
3060 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         * stdlib/secure-getenv.c (__secure_getenv): Replace
3063         GLIBC_2_16 with GLIBC_2_17.
3064
3065 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3068         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3069
3070 2012-08-03  David S. Miller  <davem@davemloft.net>
3071
3072         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3073
3074 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3075
3076         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3077         Remove.
3078         (__ASSUME_CORRECT_SI_PID): Likewise.
3079         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3080         (__ASSUME_TMPFS_NAME): Likewise.
3081         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3082         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3083         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3084         (HAVE_AUX_SECURE): Make definition unconditional.
3085         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3086         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3087
3088 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3089
3090         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3091         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3092         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3093         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3094         __eloop_threshold instead of SYMLOOP_MAX.
3095
3096         * sysdeps/generic/eloop-threshold.h: New file.
3097         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3098         of MAXSYMLINKS.
3099         * elf/chroot_canon.c (chroot_canon): Likewise.
3100
3101 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3102
3103         [BZ #13717]
3104         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3105         Change to 2.6.0 everywhere.
3106         * sysdeps/unix/sysv/linux/configure: Regenerated.
3107         * sysdeps/unix/sysv/linux/kernel-features.h
3108         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3109         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3110         kernel versions.
3111         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3112         (__ASSUME_FUTEX_REQUEUE): Remove.
3113         (__ASSUME_STATFS64): Define unconditionally.
3114         (__ASSUME_AT_SECURE): Likewise.
3115         (__ASSUME_CORRECT_SI_PID): Likewise.
3116         (__ASSUME_TGKILL): Define without depending on kernel version for
3117         i386.
3118         (__ASSUME_UTIMES): Likewise.
3119         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3120         kernel version.
3121         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3122         (__ASSUME_TMPFS_NAME): Likewise.
3123         * README: Update reference to Linux kernel versions.
3124
3125 2012-08-02  Marek Polacek  <polacek@redhat.com>
3126
3127         [BZ# 14150]
3128         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3129         libc_cv_asm_type_prefix with %.
3130         * configure: Regenerated.
3131         * include/libc-symbols.h: Remove comment about
3132         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3133         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3134         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3135         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3136         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3137         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3138         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3139         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3140         * elf/tst-unique2mod1.c: Likewise.
3141         * elf/tst-unique1mod2.c: Likewise.
3142         * elf/tst-unique1mod1.c: Likewise.
3143         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3144         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3145         Replace ASM_TYPE_DIRECTIVE with .type.
3146         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3147         * sysdeps/i386/sysdep.h: Likewise.
3148         * sysdeps/x86_64/sysdep.h: Likewise.
3149         * sysdeps/sh/sysdep.h: Likewise.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3151         Do not define ASM_TYPE_DIRECTIVE.
3152         * sysdeps/powerpc/sysdep.h: Likewise.
3153         * sysdeps/powerpc/powerpc32/sysdep.h:
3154         Replace ASM_TYPE_DIRECTIVE with .type.
3155         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3156         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3157         * sysdeps/i386/fpu/e_powf.S: Likewise.
3158         * sysdeps/i386/fpu/e_expl.S: Likewise.
3159         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3160         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3161         * sysdeps/i386/fpu/e_pow.S: Likewise.
3162         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3163         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3164         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3165         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3166         * sysdeps/i386/fpu/e_log2.S: Likewise.
3167         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3168         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3169         * sysdeps/i386/fpu/e_powl.S: Likewise.
3170         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3171         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3172         * sysdeps/i386/fpu/e_logl.S: Likewise.
3173         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3174         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3175         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3176         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3177         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3178         * sysdeps/i386/fpu/e_log.S: Likewise.
3179         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3180         * sysdeps/i386/fpu/e_logf.S: Likewise.
3181         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3182         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3183         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3184         * sysdeps/i386/fpu/e_log10.S: Likewise.
3185         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3186         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3187         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3188         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3189         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3190         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3191         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3192         * sysdeps/i386/i686/strtok.S: Likewise.
3193         * sysdeps/i386/i386-mcount.S: Likewise.
3194         * sysdeps/i386/strtok.S: Likewise.
3195         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3196         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3197         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3198         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3199         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3200         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3201         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3202         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3203         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3204         * sysdeps/x86_64/_mcount.S: Likewise.
3205         * sysdeps/x86_64/strtok.S: Likewise.
3206         * sysdeps/sh/_mcount.S: Likewise.
3207
3208 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3209
3210         * libio/iofopen.c: Include <fcntl.h>.
3211         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3212         (_IO_fopen64, fopen64): Define as aliases.
3213         * libio/iofopen64.c: Include <fcntl.h>.
3214         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3215         Conditionalize body on this.
3216         * sysdeps/wordsize-64/iofopen.c: File removed.
3217         * sysdeps/wordsize-64/iofopen64.c: File removed.
3218
3219 2012-08-01  Marek Polacek  <polacek@redhat.com>
3220
3221         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3222         Use dlfcn directly instead of a variable.
3223         (binfmt-subdir): Do not define.
3224         (dlfcn): Likewise.
3225
3226 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3227
3228         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3229         Remove all definitions.
3230         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3231         <kernel-features.h>.
3232         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3233         (miss_F_GETOWN_EX): Remove all definitions.
3234         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3235         macro definition.
3236         [!__ASSUME_FCNTL64]: Remove conditional code.
3237         [__ASSUME_FCNTL64]: Make code unconditional.
3238         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3239         <kernel-features.h>.
3240         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3241         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3242         (lockf64) [__NR_fcntl64]: Make code unconditional.
3243         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3244
3245         * sysdeps/unix/sysv/linux/kernel-features.h
3246         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3247         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3248         Make code unconditional.
3249         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3250         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3252         [__NR_vfork]: Make code unconditional.
3253         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3254         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3256         [__NR_vfork]: Make code unconditional.
3257         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3258         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3259
3260 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3261
3262         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3263         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3264
3265         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3266         Define mkstemp64 as an alias.
3267         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3268         Define mkstemps64 as an alias.
3269         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3270         Define mkostemp64 as an alias.
3271         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3272         Define mkostemps64 as an alias.
3273         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3274         Conditionalize body on this.
3275         * misc/mkostemp64.c: Likewise.
3276         * misc/mkostemps64.c: Likewise.
3277         * misc/mkstemps64.c: Likewise.
3278         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3279         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3280         * sysdeps/wordsize-64/mkostemp.c: File removed.
3281         * sysdeps/wordsize-64/mkstemp.c: File removed.
3282         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3283         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3284         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3285         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3286
3287         [BZ #14138]
3288         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3289         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3290         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3291         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3292
3293         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3294         compat_symbol macros from <shlib-compat.h> rather than the underlying
3295         default_symbol_version and symbol_version macros, so that DEFAULT
3296         lines in shlib-versions are respected.
3297         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3298
3299 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3300
3301         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3302         Declare with warn_unused_result.
3303         (setgid, setregid, setegid, setresgid): Likewise.
3304         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3305         Likewise.
3306         * WUR-REPORT: Remove set*id functions.
3307
3308 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3309
3310         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3311
3312 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3313
3314         * include/sys/socket.h (__libc_accept, __libc_accept4):
3315         Add attribute_hidden.
3316         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3317
3318         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3319         use of PTR_MANGLE.
3320         * inet/getnetgrent_r.c (setup): Likewise.
3321
3322         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3323
3324 2012-07-31  David S. Miller  <davem@davemloft.net>
3325
3326         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3327
3328 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3329
3330         [BZ #13629]
3331         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3332         value between 1.0 and 2.0 and smaller part has absolute value less
3333         than 1.0.
3334         * math/s_clog10.c (__clog10): Likewise.
3335         * math/s_clog10f.c (__clog10f): Likewise.
3336         * math/s_clog10l.c (__clog10l): Likewise.
3337         * math/s_clogf.c (__clogf): Likewise.
3338         * math/s_clogl.c (__clogl): Likewise.
3339         * math/libm-test.inc (clog_test): Add more tests.
3340         (clog10_test): Likewise.
3341         * sysdeps/i386/fpu/libm-test-ulps: Update.
3342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3343
3344 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3345
3346         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3347         Exit with zero in case no suitable GID is found, and write a
3348         message to standard error.
3349
3350 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3351
3352         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3353         rather than to 1.
3354         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3355         (MAXPATHLEN): Removed.
3356         (NOGROUP, NODEV): New macros.
3357         (setbit, clrbit, isset, isclr): New macros.
3358         (howmany, roundup, powerof2): New macros.
3359         (DEV_BSIZE): New macro.
3360
3361         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3362         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3363
3364         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3365         definition on [!__NO_LONG_DOUBLE_MATH].
3366
3367         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3368         PTR_MANGLE and PTR_DEMANGLE.
3369
3370         * socket/accept4.c (accept4): Rename to __libc_accept4.
3371         Define accept4 as a weak alias.
3372
3373         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3374         on [_DIRENT_HAVE_D_TYPE].
3375         * io/ftw.c (ftw_dir): Likewise.
3376
3377         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3378
3379         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3380
3381         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3382         Use the BSD numbers rather than the arbitrary ones we had.
3383         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3384         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3385         (SIGXCPU, SIGXFSZ): New macros.
3386         (_NSIG): Now 32.
3387
3388         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3389         initializer on [_LIBC_REENTRANT].
3390
3391         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3392         definitions inside [_POSIX_MAPPED_FILES].
3393
3394         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3395
3396         * dirent/opendir.c: Include <fcntl.h>.
3397
3398         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3399         (__libc_getspecific): Likewise.
3400         (__libc_key_create): Likewise.
3401
3402         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3403         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3404         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3405         (tmpfile64): Define as alias.
3406         * sysdeps/wordsize-64/tmpfile.c: File removed.
3407         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3408         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3409         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3410
3411         * stdio-common/vfscanf.c: Include <stdbool.h>.
3412         * nss/makedb.c: Likewise.
3413         * stdio-common/_i18n_number.h: Likewise.
3414         * argp/argp-help.c: Likewise.
3415         * posix/wordexp.c: Likewise.
3416         * sysdeps/posix/spawni.c: Likewise.
3417         * nss/nss_files/files-initgroups.c: Likewise.
3418         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3419         * nss/nss_files/files-initgroups.c: Likewise.
3420         * nss/nss_db/db-netgrp.c: Likewise.
3421         * nss/nss_db/db-initgroups.c: Likewise.
3422         * io/fchmodat.c: Include <sys/stat.h>.
3423
3424         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3425         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3426
3427         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3428         [HAVE_MMAP].
3429
3430         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3431         Add multiple inclusion protection.
3432
3433 2012-07-27  David S. Miller  <davem@davemloft.net>
3434
3435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3436
3437 2012-07-27  Gary Benson  <gbenson@redhat.com>
3438
3439         [BZ #14298]
3440         * elf/rtld.c: Include <stap-probe.h>.
3441         (dl_main): Added static probes "init_start" and "init_complete".
3442         * elf/dl-load.c: Include <stap-probe.h>.
3443         (lose): Take new parameter "nsid".
3444         Added static probe "map_failed".
3445         (_dl_map_object_from_fd): Pass namespace id to lose.
3446         Added static probe "map_start".
3447         (open_verify): Pass namespace id to lose.
3448         * elf/dl-open.c: Include <stap-probe.h>.
3449         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3450         and "reloc_complete".
3451         * elf/dl-close.c: Include <stap-probe.h>.
3452         (_dl_close_worker): Added static probes "unmap_start" and
3453         "unmap_complete".
3454         * elf/rtld-debugger-interface.txt: New file documenting the above.
3455
3456 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3457
3458         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3459         rather than a string variable.
3460         * sunrpc/rpc_main.c (h_output): Likewise.
3461         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3462
3463 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3464
3465         * inet/check_native.c: New file.
3466
3467 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3468
3469         [BZ #13629]
3470         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3471         if larger part has absolute value 1.0.
3472         * math/s_clog10.c (__clog10): Likewise.
3473         * math/s_clog10f.c (__clog10f): Likewise.
3474         * math/s_clog10l.c (__clog10l): Likewise.
3475         * math/s_clogf.c (__clogf): Likewise.
3476         * math/s_clogl.c (__clogl): Likewise.
3477         * math/libm-test.inc (clog_test): Add more tests.
3478         (clog10_test): Likewise.
3479         * sysdeps/i386/fpu/libm-test-ulps: Update.
3480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3481
3482         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3483         (pltexit): Likewise.
3484         (La_regs): Likewise.
3485         (La_retval): Likewise.
3486         (int_retval): Likewise.
3487         Update #error for removed macros to refer only to definitions in
3488         tst-audit.h.
3489         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3490         macro.
3491         (pltexit): Likewise.
3492         (La_regs): Likewise.
3493         (La_retval): Likewise.
3494         (int_retval): Likewise.
3495         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3496         macro.
3497         (pltexit): Likewise.
3498         (La_regs): Likewise.
3499         (La_retval): Likewise.
3500         (int_retval): Likewise.
3501         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3502         macro.
3503         (pltexit): Likewise.
3504         (La_regs): Likewise.
3505         (La_retval): Likewise.
3506         (int_retval): Likewise.
3507         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3508         macro.
3509         (pltexit): Likewise.
3510         (La_regs): Likewise.
3511         (La_retval): Likewise.
3512         (int_retval): Likewise.
3513         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3514         macro.
3515         (pltexit): Likewise.
3516         (La_regs): Likewise.
3517         (La_retval): Likewise.
3518         (int_retval): Likewise.
3519         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3520         macro.
3521         (pltexit): Likewise.
3522         (La_regs): Likewise.
3523         (La_retval): Likewise.
3524         (int_retval): Likewise.
3525         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3526         macro definitions in tst-audit.h.
3527         * sysdeps/i386/tst-audit.h: New file.
3528         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3529         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3530         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3531         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3532         * sysdeps/sh/tst-audit.h: Likewise.
3533         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3534         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3535         * sysdeps/x86_64/tst-audit.h: Likewise.
3536
3537 2012-07-26  Andreas Jaeger  <aj@suse.de>
3538
3539         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3540         ptrace.
3541
3542         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3543         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3544         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3545         PTRACE_O_MASK.
3546         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3547         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3548         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3549
3550         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3551         value.
3552
3553         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3554         _sigsys.
3555         (si_call_addr, si_syscall, si_arch): Define new macro.
3556         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3557         _sigsys.
3558         (si_call_addr, si_syscall, si_arch): Define new marcro.
3559         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3560         _sigsys.
3561         (si_call_addr, si_syscall, si_arch): Define new macro.
3562         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3563         _sigsys.
3564         (si_call_addr, si_syscall, si_arch): Define new macro.
3565
3566 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3567
3568         [BZ #13717]
3569         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3570         Change to 2.4.21 where previously 2.4.1.
3571         * sysdeps/unix/sysv/linux/configure: Regenerated.
3572         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3573         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3574         Linux kernel version.
3575         (__ASSUME_STD_AUXV): Remove.
3576         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3577         kernel version.
3578         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3579         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3580         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3581         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3582         (__ASSUME_NETLINK_SUPPORT): Likewise.
3583         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3584         (__no_netlink_support): Remove conditional definition.
3585         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3586         Remove.
3587         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3588         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3589         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3590         (if_nameindex_ioctl): Remove.
3591         (if_nameindex_netlink): Do not handle __no_netlink_support.
3592         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3593         code.
3594         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3595         Remove conditional code.
3596         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3597         code.
3598         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3599         unconditional.
3600         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3601         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3602         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3603         Remove.
3604         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3605         [!__ASSUME_STD_AUXV]: Remove conditional code.
3606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3607         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3608         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3610         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3611         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3612         code.
3613         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3615         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3616         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3617         conditional code.
3618         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3620         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3621         code.
3622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3623         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3624         conditional code.
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3626         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3627         code unconditional.
3628         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3629         conditional code.
3630         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3631         unconditional.
3632         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3633         conditional code.
3634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3635         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3636         unconditional.
3637         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3638         conditional code.
3639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3640         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3641         code unconditional.
3642         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3643         conditional code.
3644         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3645         unconditional.
3646         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3647         conditional code.
3648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3649         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3650         code unconditional.
3651         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3652         conditional code.
3653         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3654         unconditional.
3655         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3656         conditional code.
3657
3658 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3659
3660         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3661         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3662         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3663         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3664         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3665         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3666         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3667         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3668         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3669         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3670         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3671         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3672         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3673         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3674         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3675         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3676         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3677         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3678         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3679         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3680         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3681         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3682         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3683
3684 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3685
3686         * Versions.def: Add GLIBC_2.17.
3687         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3688         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3689         Introduce __libc_secure_getenv.
3690         * stdlib/Versions (2.17): Add secure_getenv
3691         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3692         * stdlib/secure-getenv.c: Rename __secure_getenv to
3693         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3694         symbol __secure_getenv for GLIBC_2.0.
3695         * stdlib/tst-secure-getenv.c: New.
3696         * stdlib/Makefile (tests): Add testcase.
3697         * manual/startup.texi (Environment Access): Document
3698         secure_getenv.
3699         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3700         __libc_secure_getenv.
3701         * inet/ruserpass.c (ruserpass): Likewise.
3702         * malloc/mtrace.c (mtrace): Likewise.
3703         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3704         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3705         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3706         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3707         HAVE_SECURE_GETENV.
3708         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3709         __secure_getenv to __libc_secure_getenv.
3710         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3712         Likewise.
3713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3714         Likewise.
3715         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3717         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3719         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3720         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3721         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3722
3723 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3724
3725         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3726         (struct La_i86_retval): Likewise.
3727         (struct La_x86_64_regs): Likewise.
3728         (struct La_x86_64_retval): Likewise.
3729         (struct La_x32_regs): Likewise.
3730         (struct La_x32_retval): Likewise.
3731         (struct La_ppc32_regs): Likewise.
3732         (struct La_ppc32_retval): Likewise.
3733         (struct La_ppc64_regs): Likewise.
3734         (struct La_ppc64_retval): Likewise.
3735         (struct La_sh_regs): Likewise.
3736         (struct La_sh_retval): Likewise.
3737         (struct La_s390_32_regs): Likewise.
3738         (struct La_s390_32_retval): Likewise.
3739         (struct La_s390_64_regs): Likewise.
3740         (struct La_s390_64_retval): Likewise.
3741         (struct La_sparc32_regs): Likewise.
3742         (struct La_sparc32_retval): Likewise.
3743         (struct La_sparc64_regs): Likewise.
3744         (struct La_sparc64_retval): Likewise.
3745         (struct audit_ifaces): Remove architecture-specific pltenter and
3746         pltexit members.
3747         * sysdeps/i386/ldsodefs.h: New file.
3748         * sysdeps/powerpc/ldsodefs.h: Likewise.
3749         * sysdeps/s390/ldsodefs.h: Likewise.
3750         * sysdeps/sh/ldsodefs.h: Likewise.
3751         * sysdeps/sparc/ldsodefs.h: Likewise.
3752         * sysdeps/x86_64/ldsodefs.h: Likewise.
3753
3754 2012-07-25  Marek Polacek  <polacek@redhat.com>
3755
3756         [BZ #6808]
3757         * math/libm-test.inc (yn_test): Add another test.
3758         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3759         to ERANGE when the result is +-Inf.
3760         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3761         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3762         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3763         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3764
3765 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3766
3767         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3768         equal to 0.
3769         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3770         clock_t.
3771         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3772
3773 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3774
3775         * configure.in <sysdeps resolving>: Correct printing
3776         Implies_before.
3777         * configure: Regenerate.
3778
3779 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3780
3781         * math/w_ilogb.c: Include <limits.h>.
3782         * math/w_ilogbl.c: Likewise.
3783
3784 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3785
3786         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3787         va_copy.  Document allowing for unavailable va_copy only as
3788         pre-C99 compatibility.
3789         * manual/string.texi (Copying and Concatenation): Use va_copy
3790         instead of __va_copy in concat example.
3791
3792 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3793
3794         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3795         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3796         it if not null.
3797
3798         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3799         with O_NOLINK passed to __file_name_lookup.
3800
3801         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3802         with O_NOLINK passed to __file_name_lookup.
3803
3804         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3805         negative N or less than NGIDS.
3806
3807         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3808         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3809         enough.  Use memcpy instead of strncpy.
3810
3811 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * elf/Makefile (check-data): Remove.
3814         (localplt.data): New vpath directive.
3815         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3816         instead of $(check-data).
3817         * scripts/data/localplt-generic.data: Move to ...
3818         * sysdeps/generic/localplt.data: ... here.
3819         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3820         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3821         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3823         ... here.
3824         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3826         ... here.
3827         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3828         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3829         ... here.
3830         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3831         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3832         ... here.
3833         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3835         ... here.
3836         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3837         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3838         ... here.
3839
3840 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3841
3842         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3843         PPC32 and PPC64 files.
3844         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3845         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3846
3847 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3848
3849         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3850         __makecontext_ret to ...
3851         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3852         ... here and call exit if uc_link is NULL.  New file.
3853         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3854         __makecontext_ret.S.
3855         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3856         __makecontext_ret to ...
3857         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3858         ... here and call exit if uc_link is NULL.  New file.
3859         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3860         __makecontext_ret.S.
3861
3862 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3863
3864         * elf/elf.h (R_390_IRELATIVE): New definition.
3865         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3866         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3867         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3868         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3869         (elf_machine_lazy_rel): Likewise.
3870         * sysdeps/s390/dl-irel.h: New file.
3871         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3872         * sysdeps/s390/s390-64/memset.S: New asm code.
3873         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3874         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3875         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3876         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3877         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3878         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3879         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3880         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3881         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3882         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3883         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3884         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3885         * sysdeps/s390/s390-32/memset.S: New asm code.
3886         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3887
3888 2012-07-17  Marek Polacek  <polacek@redhat.com>
3889
3890         [BZ #14349]
3891         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3892         * sysdeps/s390/s390-64/configure.in: Likewise.
3893         * sysdeps/sparc/configure.in: Likewise.
3894         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3895         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3896         * sysdeps/i386/configure.in: Likewise.
3897         * sysdeps/x86_64/configure.in: Likewise.
3898         * sysdeps/sh/configure.in: Likewise.
3899         * sysdeps/s390/s390-32/configure: Regenerated.
3900         * sysdeps/s390/s390-64/configure: Likewise.
3901         * sysdeps/x86_64/configure: Likewise.
3902         * sysdeps/sh/configure: Likewise.
3903         * sysdeps/powerpc/powerpc64/configure: Likewise.
3904         * sysdeps/powerpc/powerpc32/configure: Likewise.
3905         * sysdeps/sparc/configure: Likwise.
3906         * sysdeps/i386/configure: Likewise.
3907
3908         * elf/dl-open.c: Comment fixes.
3909
3910 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3911
3912         * Makefile [CXX] (check-data): Remove.
3913         [CXX] (c++-types.data): New vpath directive.
3914         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3915         vpath.  Do not allow for C++ type data being missing.
3916         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3917         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3918         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3919         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3920         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3921         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3922         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3924         ... here.
3925         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3927         ... here.
3928         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3930         ... here.
3931         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3933         ... here.
3934         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3936         ... here.
3937         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3938         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3939         ... here.
3940         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3942         ... here.
3943         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3945
3946         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3947         definitions to architecture-specific files.
3948         (TLS_IE): Likewise.
3949         (TLS_LD): Likewise.
3950         (TLS_GD): Likewise.
3951         * sysdeps/i386/tls-macros.h: New file.
3952         * sysdeps/powerpc/tls-macros.h: Likewise.
3953         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3954         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3955         * sysdeps/sh/tls-macros.h: Likewise.
3956         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3957         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3958         * sysdeps/x86_64/tls-macros.h: Likewise.
3959
3960 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3961
3962         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3963         zero value for regular exit case.
3964
3965         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3966         (__start_context): Preserve zero value for regular exit case.
3967
3968 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3969             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3970
3971         * manual/setjmp.texi (setcontext): Clarify normal process
3972         termination when uc_link is the null pointer.
3973         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3974         exit call.
3975
3976 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3977
3978         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3979         preprocessor.  Test for each exception mask separately.
3980
3981 2012-07-16  Andreas Jaeger  <aj@suse.de>
3982
3983         * po/ru.po: Update from translation team.
3984
3985 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3986
3987         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3988         equal to 0.
3989         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3990         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3991         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3992         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3993         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3994
3995 2012-07-13  Andreas Jaeger  <aj@suse.de>
3996
3997         * po/fr.po: Update from translation team.
3998
3999 2012-07-12  Marek Polacek  <polacek@redhat.com>
4000
4001         [BZ #14173]
4002         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4003         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4004         loop condition.
4005
4006 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4007
4008         [BZ #13717]
4009         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4010         Change to 2.4.1 where previously 2.4.0.
4011         * sysdeps/unix/sysv/linux/configure: Regenerated.
4012         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4013         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4014         version.
4015         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4016         (__ASSUME_AT_CLKTCK): Remove.
4017         (__ASSUME_AT_PAGESIZE): Likewise.
4018         (__ASSUME_AT_XID): Likewise.
4019         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4020         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4021         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4022         unconditionally.
4023         (HAVE_AUX_PAGESIZE): Likewise.
4024         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4025         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4026         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4027
4028 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4029
4030         [BZ #14307]
4031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4032         the temporary buffer used to invoke __gethostbyname2_r,
4033         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4034         host_data / struct gaih_addrtuple.
4035         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4036         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4037         header file nss/nsswitch.h.
4038         * nss/nsswitch.h (global scope): Add definition of implementation
4039         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4040         resolv/nss_dns/dns-host.c).
4041
4042 2012-07-11  Andreas Jaeger  <aj@suse.de>
4043
4044         * po/fr.po: Update from translation team.
4045
4046         * po/sv.po: Update from translation team
4047         * po/fr.po: Another update from translation team.
4048
4049 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4050
4051         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4052         for subnormals or multiply small sinh result by itself.
4053         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4055
4056 2012-07-11  David S. Miller  <davem@davemloft.net>
4057
4058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4059
4060 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4061
4062         [BZ #14347]
4063         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4064         (INTERNAL_MARK): Shift it here.
4065
4066 2012-07-10  Marek Polacek  <polacek@redhat.com>
4067
4068         [BZ #14151]
4069         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4070         libc_cv_asm_global_directive with .globl.
4071         * configure: Regenerated.
4072         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4073         with .globl.
4074         * sysdeps/i386/configure: Regenerated.
4075         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4076         with .globl.
4077         * sysdeps/x86_64/configure: Regenerated.
4078         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4079         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4080         * elf/tst-unique2mod2.c: Likewise.
4081         * elf/tst-unique2mod1.c: Likewise.
4082         * elf/tst-unique1mod2.c: Likewise.
4083         * elf/tst-unique1mod1.c: Likewise.
4084         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4085         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4086         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4087         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4088         * sysdeps/mach/sysdep.h: Likewise.
4089         * sysdeps/i386/sysdep.h: Likewise.
4090         * sysdeps/i386/i386-mcount.S: Likewise.
4091         * sysdeps/x86_64/_mcount.S: Likewise.
4092         * sysdeps/x86_64/sysdep.h: Likewise.
4093         * sysdeps/sh/_mcount.S: Likewise.
4094         * sysdeps/sh/sysdep.h: Likewise.
4095         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4096         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4097         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4098         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4099         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4100         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4101         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4102         * locale/localeinfo.h: Likewise.
4103         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4104         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4105
4106 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4107
4108         [BZ #14336]
4109         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4110         system".
4111         * manual/message.texi (The Uniforum approach): Likewise.
4112         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4113         (glibc iconv Implementation): Likewise.
4114
4115 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4116
4117         [BZ #14337]
4118         * math/s_clog.c (__clog): Avoid scaling a value down where that
4119         could result in underflow.
4120         * math/s_clog10.c (__clog10): Likewise.
4121         * math/s_clog10f.c (__clog10f): Likewise.
4122         * math/s_clog10l.c (__clog10l): Likewise.
4123         * math/s_clogf.c (__clogf): Likewise.
4124         * math/s_clogl.c (__clogl): Likewise.
4125         * math/libm-test.inc (clog_test): Add more tests.
4126         (clog10_test): Likewise.
4127         * sysdeps/i386/fpu/libm-test-ulps: Update.
4128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4129
4130 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4131
4132         [BZ #14283]
4133         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4134         by 7 not 8 to examine high bit of fractional part.
4135
4136         [BZ #14042]
4137         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4138         for call to __mcount_internal.
4139         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4140         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4141         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4142
4143 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4144
4145         [BZ #14154]
4146         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4147         approximation for values within 0x1p-13f of an odd multiple of
4148         pi/4.
4149         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4150         exception.  Add more tests.
4151         * sysdeps/i386/fpu/libm-test-ulps: Update.
4152
4153         [BZ #6778]
4154         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4155         inputs and return -1 for them.  Do not check for +Inf in case not
4156         reachable for +Inf.
4157         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4158         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4159         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4160         and return -1 for them.  Do not check for +Inf in case not
4161         reachable for +Inf.
4162         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4163         define.
4164         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4165         and return -1 for them.  Do not check for +Inf in case not
4166         reachable for +Inf.
4167         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4168         spurious underflow.
4169         * sysdeps/i386/fpu/libm-test-ulps: Update.
4170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4171
4172 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4173
4174         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4175
4176 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4177
4178         [BZ #14157]
4179         [BZ #14331]
4180         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4181         could result in spurious underflow.  Scale down values above
4182         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4183         * math/s_csqrtf.c (__csqrtf): Likewise.
4184         * math/s_csqrtl.c (__csqrtl): Likewise.
4185         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4186         spurious underflow.
4187         * sysdeps/i386/fpu/libm-test-ulps: Update.
4188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4189
4190 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4191
4192         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4193         xopen-msg.sed.
4194         * catgets/xopen-msg.awk: New file.
4195         * catgets/xopen-msg.sed: Removed.
4196
4197         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4198         po2text.sed.
4199         * intl/po2test.awk: New file.
4200         * intl/po2test.sed: Removed.
4201
4202 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4203
4204         [BZ #14328]
4205         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4206         or multiply small sinh result by itself.
4207         * math/s_ctanf.c (__ctanf): Likewise.
4208         * math/s_ctanh.c (__ctanh): Likewise.
4209         * math/s_ctanhf.c (__ctanhf): Likewise.
4210         * math/s_ctanhl.c (__ctanhl): Likewise.
4211         * math/s_ctanl.c (__ctanl): Likewise.
4212         * math/libm-test.inc (ctan_test_tonearest): New function.
4213         (ctan_test_towardzero): Likewise.
4214         (ctan_test_downward): Likewise.
4215         (ctan_test_upward): Likewise.
4216         (ctanh_test_tonearest): Likewise.
4217         (ctanh_test_towardzero): Likewise.
4218         (ctanh_test_downward): Likewise.
4219         (ctanh_test_upward): Likewise.
4220         (main): Call these new functions.
4221         * sysdeps/i386/fpu/libm-test-ulps: Update.
4222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4223
4224 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4225
4226         * .gitignore: Delete /ports entry.
4227
4228 2012-07-03  Andreas Jaeger  <aj@suse.de>
4229
4230         * po/bg.po: Update from translation team.
4231         * po/cs.po: Likewise.
4232         * po/de.po: Likewise.
4233         * po/hr.po: Likewise.
4234         * po/nl.pl: Likewise.
4235         * po/pl.po: Likewise.
4236         * po/vi.po: Likewise.
4237
4238 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4239
4240         * Makeconfig [!+link] (+link-before-libc): New variable.
4241         [!+link] (+link-after-libc): Likewise.
4242         [!+link] (+link-tests): Likewise.
4243         [!+link] (+link): Define in terms of $(+link-before-libc) and
4244         $(+link-after-libc).
4245         [!+link-static] (+link-static-before-libc): New variable.
4246         [!+link-static] (+link-static-after-libc): Likewise.
4247         [!+link-static] (+link-static-tests): Likewise.
4248         [!+link-static] (+link-static): Define in terms of
4249         $(+link-static-before-libc) and $(+link-static-after-libc).
4250         [build-shared] (link-libc-before-gnulib): New variable.
4251         [build-shared] (link-libc-tests): Likewise.
4252         [build-shared] (link-libc): Define in terms of
4253         $(link-libc-before-gnulib).
4254         [!build-shared] (link-libc-tests): New variable.
4255         (link-libc-static-tests): New variable.
4256         [!gnulib] (gnulib-arch): New variable.
4257         [!gnulib] (gnulib-tests): Likewise.
4258         [!gnulib] (static-gnulib-arch): Likewise.
4259         [!gnulib] (static-gnulib-tests): Likewise.
4260         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4261         Define with "=" instead of ":=".
4262         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4263         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4264         * Rules (binaries-all-notests): New variable.
4265         (binaries-all-tests): Likewise.
4266         (binaries-static-notests): Likewise.
4267         (binaries-static-tests): Likewise.
4268         (binaries-all): Define using $(binaries-all-notests) and
4269         $(binaries-all-tests).
4270         (binaries-static): Define using $(binaries-static-notests) and
4271         $(binaries-static-tests).
4272         (binaries-shared-tests): New variable.
4273         (binaries-shared-notests): Likewise.
4274         (binaries-shared): Remove variable.
4275         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4276         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4277         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4278         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4279         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4280         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4281         * elf/Makefile (sln-modules): New variable.
4282         (extra-objs): Add $(sln-modules:=.o).
4283         (ldconfig-modules): Add static-stubs.
4284         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4285         * elf/static-stubs.c: New file.
4286
4287         [BZ #14283]
4288         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4289         by 7 not 8 to examine high bit of fractional part.  Use volatile
4290         variables when splitting into final array of floats if
4291         __FLT_EVAL_METHOD__ != 0.
4292         * math/libm-test.inc (cos_test): Add another test.
4293         (sin_test): Likewise.
4294         * sysdeps/i386/fpu/libm-test-ulps: Update.
4295
4296         [BZ #14273]
4297         * math/libm-test.inc (cosh_test): Add more tests.
4298
4299         * version.h (RELEASE): Set to "development".
4300         (VERSION): Set to "2.16.90".
4301
4302 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4303
4304         * NEWS: Update copyright. Remove last-updated date.
4305         Mention math library bug fixes and timezone data changes.
4306         * README: Mention GNU/Hurd, x32, and HPPA support status.
4307
4308 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4309
4310         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4311
4312 2012-06-27  Andreas Jaeger  <aj@suse.de>
4313
4314         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4315
4316 2012-06-25  Andreas Jaeger  <aj@suse.de>
4317
4318         * sysdeps/s390/fpu/libm-test-ulps: Update.
4319
4320 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4321             Thomas Schwinge  <thomas@codesourcery.com>
4322
4323         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4324         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4325         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4326         fanotify_mark.
4327
4328 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4329
4330         * sysdeps/mach/start.c: Remove file.
4331         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4332         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4333         * sysdeps/sh/init-first.c: Likewise.
4334
4335         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4336         registers for frame unwinding purposes, add CFI directives.
4337         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4338         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4339         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4340         Likewise.
4341
4342         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4343         __fortify_fail returning.
4344         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4345
4346         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4347         sysdeps/sh/____longjmp_chk.S.
4348         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4349         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4350         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4351         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4352
4353         * sysdeps/sh/abort-instr.h: New file.
4354         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4355         process in case exit returns.
4356
4357         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4358         initialize the GOT register before use.
4359
4360         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4361         calculation of ARGC > 4.
4362
4363         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4364         meaningful names to some local labels.
4365
4366 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4367             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4368
4369         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4370         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4371         (__arch_compare_and_exchange_val_16_acq): Likewise.
4372         (__arch_compare_and_exchange_val_32_acq): Likewise.
4373         (atomic_exchange_and_add): Fix gUSA sequence.
4374         (atomic_add): Likewise.
4375         (atomic_add_negative): Likewise.
4376         (atomic_add_zero): Likewise.
4377         (atomic_bit_test_set): Likewise.
4378
4379 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4380
4381         [BZ #13579]
4382         * include/link.h (struct link_map): Add l_free_initfini.
4383         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4384         l_initfini.
4385         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4386         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4387         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4388         set.
4389
4390 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4391
4392         * configure.in: Use AC_LANG_SOURCE.
4393         * configure: Regenerate.
4394
4395 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4396
4397         * configure.in (libc_cv_localstatedir): New substituted variable.
4398         * configure: Regenerated.
4399         * config.make.in (localstatedir): New variable, substituted from
4400         libc_cv_localstatedir.
4401         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4402         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4403         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4404         * sysdeps/gnu/configure: Regenerated.
4405
4406 2012-06-21  Jeff Law  <law@redhat.com>
4407
4408         [BZ #14277]
4409         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4410         free.  Simplify list management for _LIBC case.
4411
4412 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4413
4414         [BZ #14273]
4415         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4416         Clear sign bit of 64-bit integer value before comparing against
4417         overflow value.
4418
4419         * sysdeps/mach/configure: Regenerated.
4420
4421 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4422
4423         [BZ #14278]
4424         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4425
4426 2012-06-21  Jeff Law  <law@redhat.com>
4427
4428         [BZ #13882]
4429         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4430         uint16_t for elements in the "seen" array to avoid char overflows.
4431         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4432         * elf/dl-open.c (dl_open_worker): Likewise.
4433
4434 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4435
4436         * scripts/list-sources.sh: Scan PORTS for translations.
4437         * po/libc.pot: Regenerated.
4438
4439 2012-06-21  Andreas Jaeger  <aj@suse.de>
4440
4441         [BZ #12194]
4442         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4443         warning.
4444         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4445         * bits/byteswap-16.h (__bswap_16): Likewise.
4446         * bits/byteswap.h (__bswap_constant_16): Likewise.
4447
4448 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4449
4450         [BZ #14117]
4451         * sysdeps/i386/fpu_control.h: Removed.
4452         * sysdeps/x86_64/fpu_control.h: Moved to ...
4453         * sysdeps/x86/fpu_control.h: Here.
4454
4455         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4456         (_FPU_SETCW): Likewise.
4457
4458 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         [BZ #14117]
4461         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4462         * sysdeps/x86/fpu/bits/mathinline.h: This.
4463         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4464
4465         [BZ #14050]
4466         [BZ #14117]
4467         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4468         functions if __x86_64__ is defined.
4469
4470 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4471
4472         * string/endian.h: Add !__ASSEMBLER__ condition for including
4473         conversion interfaces.
4474
4475 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4476
4477         [BZ #14241]
4478         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4479         of ABS(x) in calculating zero to negative powers other than odd
4480         integers.
4481         * math/libm-test.inc (pow_test): Add more tests.
4482
4483 2012-06-15  Andreas Jaeger  <aj@suse.de>
4484
4485         * manual/contrib.texi (Contributors): Update entry of Liubov
4486         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4487         Machado Filho.
4488
4489 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4490
4491         * string/string.h: Add __wur to GNU version of strerror_r.
4492
4493 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4494
4495         [BZ #14229]
4496         * string/Makefile (tests): Add tst-strtok_r.
4497         * string/tst-strtok_r.c: New file.
4498         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4499         RAX_LP/RDX_LP on SAVE_PTR.
4500
4501 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4502
4503         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4504
4505 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4506
4507         * libm_test.inc (csqrt_test): Allow more spurious underflow
4508         exceptions.
4509         (j0_test): Likewise.
4510         (j1_test): Likewise.
4511         (y0_test): Likewise.
4512         (y1_test): Likewise.
4513
4514 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4515
4516         * po/Makefile (libc.pot): Use UTF-8 charset.
4517
4518 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4519
4520         [BZ #14210]
4521         Suppress sign-conversion warning from FD_SET.
4522         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4523         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4524         not unsigned long int.
4525         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4526
4527 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         [BZ #14050]
4530         [BZ #14117]
4531         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4532         __extern_always_inline instead of __extern_inline.
4533         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4534         (__signbit): Likewise.
4535         (__signbitl): Support C++ namespace.
4536         (lrintf): New inline function.
4537         (lrint): Likewise.
4538         (llrintf): Likewise.
4539         (llrint): Likewise.
4540         (fmaxf): Likewise.
4541         (fmax): Likewise.
4542         (fminf): Likewise.
4543         (fmin): Likewise.
4544         (rint): Likewise.
4545         (rintf): Likewise.
4546         (ceil): Likewise.
4547         (ceilf): Likewise.
4548         (floor): Likewise.
4549         (floorf): Likewise.
4550         (nearbyint): Likewise.
4551         (nearbyintf): Likewise.
4552
4553 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4554
4555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4556         non-default versions.
4557
4558 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4559
4560         [BZ #14218]
4561         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4562
4563 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4564
4565         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4566         (FE_UPWARD, FE_DOWNWARD): Don't define.
4567         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4568         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4569
4570         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4571         reading it.
4572         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4573         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4574
4575 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4576
4577         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4578         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4579         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4580         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4581
4582 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         [BZ #14117]
4585         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4586         * sysdeps/i386/fpu/Implies: New file.
4587         * sysdeps/x86_64/fpu/Implies: Likewise.
4588         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4589         * sysdeps/x86/fpu/bits/fenv.h: This.
4590
4591         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4592         __SSE_MATH__.
4593
4594 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4595
4596         [BZ #14134]
4597         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4598         character 0xffff that matches the last element of the
4599         conversion table.
4600
4601 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4602
4603         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4604         fmodl commit.
4605
4606 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4607
4608         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4609         values higher than 25.6283.
4610
4611 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4612
4613         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4614         subnormal exponent extraction and add some __builtin_expect.
4615         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4616         Fix for subnormal mantissa calculation.
4617
4618 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4619
4620         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4621         cpu2 is -1 and errno is not ENOSYS.
4622
4623 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4624
4625         [BZ #14117]
4626         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4627         * sysdeps/x86/bits/string.h: This.
4628         * sysdeps/x86_64/bits/string.h: Removed.
4629
4630         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4631         if not compiling for x86-64, but compiling for >= i486.
4632
4633         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4634         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4635
4636         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4637         New macro from Linux kernel 3.4.0.
4638         (FP_XSTATE_MAGIC2): Likewise.
4639         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4640         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4641         (struct _fpx_sw_bytes): New struct.
4642         (struct _xsave_hdr): Likewise.
4643         (struct _ymmh_state): Likewise.
4644         (struct _xstate): Likewise.
4645
4646         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4647         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4648         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4649         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4650         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4651         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4652
4653         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4654         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4655         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4656         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4657         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4658         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4659
4660 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4661
4662         [BZ #13743]
4663         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4664         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4665         (sysdep_headers): Include sys/platform/ppc.h.
4666         * sysdeps/powerpc/test-gettimebase.c: Test for
4667         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4668         * manual/Makefile (appendices): Include platform.texi.
4669         * manual/contrib.texi (Contributors): Update @node pointers.
4670         * manual/maint.texi (Maintenance): Likewise.
4671         (Platform): New node.
4672         * manual/platform.texi: New file.  Document the new features.
4673
4674 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4675             Jakub Jelinek  <jakub@redhat.com>
4676
4677         [BZ #14188]
4678         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4679         where __builtin_expect is unavailable.
4680
4681 2012-06-03  David S. Miller  <davem@davemloft.net>
4682
4683         * stdlib/longlong.h: Updated from GCC.
4684
4685 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4686
4687         [BZ #14042]
4688         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4689         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4690         __mcount_internal.
4691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4692         (GLIBC_2.16): Likewise.
4693
4694 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4695
4696         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4697
4698 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4699
4700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4701         (default-abi): New variable.
4702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4703         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4704         variable.
4705         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4706         Likewise.
4707         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4708         Likewise.
4709         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4710         Likewise.
4711
4712         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4713         definition.  Document in comment.
4714
4715 2012-06-01  David S. Miller  <davem@davemloft.net>
4716
4717         * stdlib/longlong.h: Updated from GCC.
4718
4719 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4720
4721         [BZ #14117]
4722         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4723         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4724         sys/debugreg.h sys/io.h here.
4725         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4726         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4727         sys/io.h.
4728         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4729         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4730         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4731         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4732         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4733         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4734
4735         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4736         Define only if __x86_64__ is defined.
4737
4738 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4739
4740         [BZ #14048]
4741         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4742         Use int64_t for variable i.
4743         * math/libm-test.inc (fmod_test): Add more tests.
4744
4745         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4746         z computation is not scheduled after fetestexcept.
4747         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4748         Use math_force_eval instead of asm to ensure calculation scheduled
4749         before exception test.
4750         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4751         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4752
4753 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4754
4755         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4756         computation is not scheduled after fetestexcept.
4757
4758 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4759
4760         [BZ #14117]
4761         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4762         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4763
4764 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4765
4766         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4767         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4768
4769 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4770
4771         [BZ #14117]
4772         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4773         <bits/wordsize.h>.
4774         (__WCHAR_MIN): Support __WORDSIZE == 64.
4775         (__WCHAR_MAX): Likewise.
4776
4777         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4778         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4779
4780         [BZ #14183]
4781         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4782         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4783
4784         [BZ #14117]
4785         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4786         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4787
4788         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4789         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4790
4791         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4792         Defined to 1 if __x86_64__ isn't defined.
4793         (_STAT_VER_LINUX_OLD): New.
4794         (st_atime): Remove duplicate.
4795         (st_mtime): Likewise.
4796         (st_ctime): Likewise.
4797
4798 2012-05-31  David S. Miller  <davem@davemloft.net>
4799
4800         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4801         entries.
4802
4803 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4804
4805         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4806         gen-libm-test.pl.
4807
4808         [BZ #14132]
4809         * elf/dl-reloc.c: Include <_itoa.h>.
4810         (_dl_reloc_bad_type): Remove use of INTUSE.
4811         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4812         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4813         * stdio-common/psiginfo.c (psiginfo): Likewise.
4814         * stdio-common/psignal.c (psignal): Likewise.
4815         * string/strsignal.c (strsignal): Likewise.
4816         * include/signal.h (_sys_siglist): Declare hidden proto.
4817         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4818         INTVARDEF with libc_hidden_data_def.
4819         * stdio-common/itoa-udigits.c: Likewise.
4820         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4821         (_itoa_lower_digits_internal): Remove declaration.
4822         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4823         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4824         (_sys_sigabbrev_internal): Remove aliases.
4825         (_sys_siglist): Define hidden alias.
4826
4827 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4828
4829         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4830         bits/sysctl.h.
4831
4832 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4833
4834         [BZ #14117]
4835         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4836         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4837
4838         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4839         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4840         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4841         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4842         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4843         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4844
4845         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4846         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4847         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4848
4849         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4850         with __addr.
4851         (insw): Likewise.
4852         (insl): Likewise.
4853         (outsb): Likewise.
4854         (outsw): Likewise.
4855         (outsl): Likewise.
4856
4857         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4858         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4859         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4860
4861         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4862         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4863         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4864         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4865         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4866         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4867
4868         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4869         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4870
4871         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4872         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4873
4874         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4875         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4876         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4877
4878         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4879         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4880         to ...
4881         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4882
4883         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4884         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4885         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4886
4887         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4888         for x86-64.
4889         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4890
4891 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4892
4893         * math/math.h (M_El): Use two more decimal places.
4894         (M_LOG2El): Likewise.
4895         (M_LOG10El): Likewise.
4896         (M_LN2l): Likewise.
4897         (M_LN10l): Likewise.
4898         (M_PIl): Likewise.
4899         (M_PI_2l): Likewise.
4900         (M_PI_4l): Likewise.
4901         (M_1_PIl): Likewise.
4902         (M_2_PIl): Likewise.
4903         (M_2_SQRTPIl): Likewise.
4904         (M_SQRT2l): Likewise.
4905         (M_SQRT1_2l): Likewise.
4906
4907 2012-05-31  David S. Miller  <davem@davemloft.net>
4908
4909         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4910         values between float registers.
4911         * sysdeps/sparc/sparc64/memset.S: Likewise.
4912         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4913
4914 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4915
4916         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4917         -D_FORTIFY_SOURCE=1.
4918         (CPPFLAGS-tst-longjmp_chk.c): Define.
4919         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4920         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4921         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4922         CFLAGS-tst-wchar-h.c.
4923
4924 2012-05-31  Marek Polacek  <polacek@redhat.com>
4925
4926         [BZ #14132]
4927         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4928         __endmntent_internal): Remove declaration.
4929         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4930         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4931         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4932
4933 2012-05-30  David S. Miller  <davem@davemloft.net>
4934
4935         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4936         (___Q_simulate_exceptions): Use real FP ops rather than writing
4937         into the %fsr.
4938         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4939         Likewise.
4940
4941 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4942
4943         [BZ #14117]
4944         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4945         * sysdeps/x86/bits/xtitypes.h: This.
4946
4947         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4948         * sysdeps/x86/bits/wordsize.h: This.
4949
4950         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4951         * sysdeps/x86/bits/huge_vall.h: This.
4952
4953         * sysdeps/i386/bits/select.h: Removed.
4954         * sysdeps/x86_64/bits/select.h: Renamed to ...
4955         * sysdeps/x86/bits/select.h: This.
4956
4957         * sysdeps/i386/bits/setjmp.h: Removed.
4958         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4959         * sysdeps/x86/bits/setjmp.h: This.
4960
4961         * sysdeps/i386/bits/mathdef.h: Removed.
4962         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4963         * sysdeps/x86/bits/mathdef.h: This.
4964
4965 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4966
4967         [BZ #14132]
4968         * include/sys/socket.h (__connect_internal)
4969         (__libc_sa_len_internal): Remove declaration.
4970         (__connect, __libc_sa_len): Declare hidden_proto.
4971         (SA_LEN): Remove use of INTUSE.
4972         * socket/connect.c: Add libc_hidden_def.
4973         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4974         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4975         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4976         alias.
4977         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4978         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4979         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4980         of adding _internal alias.
4981
4982 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4983
4984         [BZ #14117]
4985         * sysdeps/i386/bits/link.h: Removed.
4986         * sysdeps/i386/bits/linkmap.h: Likewise.
4987         * sysdeps/x86_64/bits/link.h: Renamed to ...
4988         * sysdeps/x86/bits/link.h: This.
4989         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4990         * sysdeps/x86/bits/linkmap.h: This.
4991
4992         * sysdeps/i386/bits/endian.h: Removed.
4993         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4994         * sysdeps/x86/bits/endian.h: This.
4995
4996         * sysdeps/i386/bits/byteswap.h: Removed.
4997         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4998         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4999         * sysdeps/x86/bits/byteswap.h: This.
5000         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5001         * sysdeps/x86/bits/byteswap-16.h: This.
5002         * sysdeps/i386/Implies: Add x86.
5003         * sysdeps/x86_64/Implies: Likewise.
5004
5005 2012-05-30  David S. Miller  <davem@davemloft.net>
5006
5007         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5008         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5009         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5010         (FP_TRAPPING_EXCEPTIONS): Define.
5011         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5012         (FP_TRAPPING_EXCEPTIONS): Define.
5013         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5014         subnormals only when inexact has been signalled or underflow
5015         exceptions are enabled.
5016         (_FP_PACK_CANONICAL): Likewise.
5017
5018 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5019
5020         [BZ #14183]
5021         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5022         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5023
5024 2012-05-30  Richard Henderson  <rth@twiddle.net>
5025
5026         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5027         with #ifndef NOT_IN_libc.
5028
5029         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5030         marked to avoid plt entry.
5031
5032 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5033
5034         [BZ #14112]
5035         * Makeconfig (default-abi): New macro.
5036         (abi-includes): Likewise.
5037         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5038         $(abi-$(default-abi)-lib-soname) for soname if defined.
5039         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5040         abi-variants.
5041         * Makefile (installed-stubs): Likewise.
5042         * include/stubs-biarch.h: Removed.
5043         * scripts/lib-names.awk: Only handle one library at a time.
5044         * scripts/soversions.awk: Remove WORDSIZE support.
5045         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5046         entries.
5047         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5048         Removed.
5049         (syscall-list-default-condition): Likewise.
5050         (syscall-list-default-condition): Likewise.
5051         (syscall-list-includes): Likewise.
5052         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5053         syscall-list-* with abi-*.  Handle undefined abi-variants.
5054         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5055         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5056         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5057         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5059         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5060         Removed.
5061         (syscall-list-32-options): Likewise.
5062         (syscall-list-32-condition): Likewise.
5063         (syscall-list-64-options): Likewise.
5064         (syscall-list-64-condition): Likewise.
5065         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5066         macro.
5067         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5068         Renamed to ...
5069         (abi-*): This.
5070         (abi-64-ld-soname): New macro.
5071         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5072         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5073         Renamed to ...
5074         (abi-*): This.
5075         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5076         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5077
5078 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5079
5080         * sysdeps/unix/sysv/linux/kernel-features.h
5081         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5082         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5083         include <kernel-features.h>.
5084         [!__NR_ftruncate64]: Remove conditional code.
5085         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5086         [__NR_ftruncate64]: Make code unconditional.
5087         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5088         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5089         include <kernel-features.h>.
5090         [!__NR_ftruncate64]: Remove conditional code.
5091         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5092         [__NR_ftruncate64]: Make code unconditional.
5093         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5095         include <kernel-features.h>.
5096         [!__NR_ftruncate64]: Remove conditional code.
5097         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5098         [__NR_ftruncate64]: Make code unconditional.
5099         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5101         include <kernel-features.h>.
5102         [!__NR_ftruncate64]: Remove conditional code.
5103         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5104         [__NR_ftruncate64]: Make code unconditional.
5105         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5106
5107         * configure.in (libc_cv_fpie): Weaken to a compile test using
5108         LIBC_TRY_CC_OPTION.
5109         * configure: Regenerated.
5110
5111 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5112
5113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5117         Refreshed.
5118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5124         Refreshed.
5125
5126 2012-05-27  David S. Miller  <davem@davemloft.net>
5127
5128         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5129         (___Q_zero): New.
5130         (__Q_simulate_exceptions): Return void.  Change to simulate
5131         exceptions by writing into the %fsr.
5132         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5133         (__Qp_handle_exceptions): Likewise.
5134         (numbers): Delete.
5135         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5136         __Qp_handle_exceptions.
5137         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5138         __Qp_handle_exceptions.
5139         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5140         as unused and give dummy FP_RND_NEAREST initializer.
5141         (FP_INHIBIT_RESULTS): Define.
5142         (___Q_simulate_exceptions): Update declaration.
5143         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5144         formatting.
5145         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5146         as unused and give dummy FP_RND_NEAREST initializer.
5147         (__Qp_handle_exceptions): Update declaration.
5148         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5149         formatting.
5150
5151 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5152
5153         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5154         the temporary FPU control word.
5155         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5156         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5157         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5158         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5159         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5160         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5161         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5162         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5163         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5164         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5165         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5166
5167 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5168
5169         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5170         fields.
5171
5172 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5173
5174         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5175         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5176         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5177         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5178         Likewise.
5179         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5180         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5181         Likewise.
5182
5183 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5184
5185         * po/h.po: Update from translation team.
5186
5187 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5188
5189         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5190
5191         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5192         handling of denormals.
5193         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5194         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5195         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5196         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5197         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5198         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5199         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5200         Likewise.
5201
5202 2012-05-26  Marek Polacek  <polacek@redhat.com>
5203
5204         [BZ #14152]
5205         * math/libm-test.inc (fma_test): Don't always expect underflow
5206         exception.
5207
5208 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5209
5210         [BZ #12416]
5211         * elf/tst-execstack.c: Include stackinfo.h.
5212         (do_test): Adjust test case to ensure that pthread_getattr_np
5213         behaviour remains the same after marking stack executable.
5214
5215 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5216
5217         * sysdeps/unix/sysv/linux/kernel-features.h
5218         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5219         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5220         kernel-features.h.
5221         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5222         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5223         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5224         kernel-features.h.
5225         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5226         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5227
5228 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5229
5230         * configure.in: Define the default includes to being none.
5231         * configure: Regenerated.
5232
5233 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5234
5235         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5236         * sysdeps/x86_64/setjmp.S: Likewise.
5237         * sysdeps/i386/bsd-setjmp.S: Likewise.
5238         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5239         * sysdeps/i386/setjmp.S: Likewise.
5240         * sysdeps/i386/__longjmp.S: Likewise.
5241         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5242         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5243
5244         * include/stap-probe.h: New file.
5245         * configure.in: Handle --enable-systemtap.
5246         * configure: Regenerated.
5247         * config.h.in (USE_STAP_PROBE): New #undef.
5248         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5249         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5250         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5251
5252 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5253
5254         [BZ #13717]
5255         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5256         to 2.4.0 where earlier.
5257         * sysdeps/unix/sysv/linux/configure: Regenerated.
5258         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5259         <kernel-features.h>.
5260         [__ASSUME_32BITUIDS]: Make code unconditional.
5261         [!__ASSUME_32BITUIDS]: Remove conditional code.
5262         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5263         <kernel-features.h>.
5264         [__ASSUME_32BITUIDS]: Make code unconditional.
5265         [!__ASSUME_32BITUIDS]: Remove conditional code.
5266         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5267         [__ASSUME_32BITUIDS]: Make code unconditional.
5268         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5269         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5270         <kernel-features.h>.
5271         [__ASSUME_32BITUIDS]: Make code unconditional.
5272         [!__ASSUME_32BITUIDS]: Remove conditional code.
5273         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5274         <kernel-features.h>.
5275         [__ASSUME_32BITUIDS]: Make code unconditional.
5276         [!__ASSUME_32BITUIDS]: Remove conditional code.
5277         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5278         <kernel-features.h>.
5279         [__ASSUME_32BITUIDS]: Make code unconditional.
5280         [!__ASSUME_32BITUIDS]: Remove conditional code.
5281         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5282         <kernel-features.h>.
5283         [__ASSUME_32BITUIDS]: Make code unconditional.
5284         [!__ASSUME_32BITUIDS]: Remove conditional code.
5285         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5286         <kernel-features.h>.
5287         [__ASSUME_32BITUIDS]: Make code unconditional.
5288         [!__ASSUME_32BITUIDS]: Remove conditional code.
5289         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5290         <kernel-features.h>.
5291         [__ASSUME_32BITUIDS]: Make code unconditional.
5292         [!__ASSUME_32BITUIDS]: Remove conditional code.
5293         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5294         <kernel-features.h>.
5295         [__ASSUME_32BITUIDS]: Make code unconditional.
5296         [!__ASSUME_32BITUIDS]: Remove conditional code.
5297         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5298         <kernel-features.h>.
5299         [__ASSUME_32BITUIDS]: Make code unconditional.
5300         [!__ASSUME_32BITUIDS]: Remove conditional code.
5301         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5302         <kernel-features.h>.
5303         [__ASSUME_32BITUIDS]: Make code unconditional.
5304         [!__ASSUME_32BITUIDS]: Remove conditional code.
5305         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5306         <kernel-features.h>.
5307         [__ASSUME_32BITUIDS]: Make code unconditional.
5308         [!__ASSUME_32BITUIDS]: Remove conditional code.
5309         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5310         <kernel-features.h>.
5311         [__NR_setresgid] (__setresgid): Do not declare.
5312         [__ASSUME_32BITUIDS]: Make code unconditional.
5313         [!__ASSUME_32BITUIDS]: Remove conditional code.
5314         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5315         <kernel-features.h>.
5316         [__NR_setresuid] (__setresuid): Do not declare.
5317         [__ASSUME_32BITUIDS]: Make code unconditional.
5318         [!__ASSUME_32BITUIDS]: Remove conditional code.
5319         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5320         <kernel-features.h>.
5321         [__ASSUME_32BITUIDS]: Make code unconditional.
5322         [!__ASSUME_32BITUIDS]: Remove conditional code.
5323         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5324         <kernel-features.h>.
5325         [__ASSUME_32BITUIDS]: Make code unconditional.
5326         [!__ASSUME_32BITUIDS]: Remove conditional code.
5327         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5328         <kernel-features.h>.
5329         [__ASSUME_32BITUIDS]: Make code unconditional.
5330         [!__ASSUME_32BITUIDS]: Remove conditional code.
5331         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5332         <kernel-features.h>.
5333         [__ASSUME_32BITUIDS]: Make code unconditional.
5334         [!__ASSUME_32BITUIDS]: Remove conditional code.
5335         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5336         <kernel-features.h>.
5337         [__ASSUME_32BITUIDS]: Make code unconditional.
5338         [!__ASSUME_32BITUIDS]: Remove conditional code.
5339         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5340         <kernel-features.h>.
5341         [__ASSUME_32BITUIDS]: Make code unconditional.
5342         [!__ASSUME_32BITUIDS]: Remove conditional code.
5343         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5344         <kernel-features.h>.
5345         [__ASSUME_32BITUIDS]: Make code unconditional.
5346         [!__ASSUME_32BITUIDS]: Remove conditional code.
5347         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5348         <kernel-features.h>.
5349         [__ASSUME_32BITUIDS]: Make code unconditional.
5350         [!__ASSUME_32BITUIDS]: Remove conditional code.
5351         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5352         <kernel-features.h>.
5353         [__ASSUME_32BITUIDS]: Make code unconditional.
5354         [!__ASSUME_32BITUIDS]: Remove conditional code.
5355         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5356         <kernel-features.h>.
5357         [__ASSUME_32BITUIDS]: Make code unconditional.
5358         [!__ASSUME_32BITUIDS]: Remove conditional code.
5359         * sysdeps/unix/sysv/linux/kernel-features.h
5360         (__ASSUME_SETRESUID_SYSCALL): Remove.
5361         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5362         (__ASSUME_32BITUIDS): Likewise.
5363         (__ASSUME_LDT_WORKS): Likewise.
5364         (__ASSUME_O_DIRECTORY): Likewise.
5365         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5366         architecture but not kernel version.
5367         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5368         (__ASSUME_MMAP2_SYSCALL): Likewise.
5369         (__ASSUME_STAT64_SYSCALL): Likewise.
5370         (__ASSUME_IPC64): Likewise.
5371         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5372         <kernel-features.h>.
5373         [__ASSUME_32BITUIDS]: Make code unconditional.
5374         [!__ASSUME_32BITUIDS]: Remove conditional code.
5375         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5376         <kernel-features.h>.
5377         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5378         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5379         132096]: Remove conditional code.
5380         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5381         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5382         <kernel-features.h>.
5383         [__ASSUME_32BITUIDS]: Make code unconditional.
5384         [!__ASSUME_32BITUIDS]: Remove conditional code.
5385         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5386         <kernel-features.h>.
5387         [__ASSUME_32BITUIDS]: Make code unconditional.
5388         [!__ASSUME_32BITUIDS]: Remove conditional code.
5389         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5390         <kernel-features.h>.
5391         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5392         unconditional.
5393         (__setresgid): Do not declare.
5394         [__ASSUME_32BITUIDS]: Make code unconditional.
5395         [!__ASSUME_32BITUIDS]: Remove conditional code.
5396         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5397         <kernel-features.h>.
5398         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5399         unconditional.
5400         (__setresuid): Do not declare.
5401         [__ASSUME_32BITUIDS]: Make code unconditional.
5402         [!__ASSUME_32BITUIDS]: Remove conditional code.
5403         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5404         <kernel-features.h>.
5405         [__ASSUME_32BITUIDS]: Make code unconditional.
5406         [!__ASSUME_32BITUIDS]: Remove conditional code.
5407         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5408         <kernel-features.h>.
5409         [__ASSUME_32BITUIDS]: Make code unconditional.
5410         [!__ASSUME_32BITUIDS]: Remove conditional code.
5411
5412 2012-05-25  Richard Henderson  <rth@twiddle.net>
5413
5414         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5415         dl_hwcap to ifunc resolver.
5416         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5417         elf_ifunc_invoke.
5418         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5419         dl_hwcap to ifunc resolver.
5420         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5421
5422 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5423
5424         [BZ #14153]
5425         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5426         for |x| <= 2**-26, not 2**-57.
5427         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5428         exception.
5429
5430 2012-05-24  Jeff Law  <law@redhat.com>
5431
5432         * stdio-common/Makefile (tests): Add bug25.
5433         * stdio-common/bug25.c: New test.
5434
5435 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5436
5437         [BZ #13576]
5438         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5439         multiple of MALLOC_ALIGNMENT in size.
5440         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5441
5442 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5443
5444         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5445         Require >= 256.
5446         (FILENAME_MAX): Use macro-int-constant.
5447         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5448         (_IOFBF): Use macro-int-constant.
5449         (_IOLBF): Likewise.
5450         (_IONBF): Likewise.
5451         (SEEK_CUR): Likewise.
5452         (SEEK_END): Likewise.
5453         (SEEK_SET): Likewise.
5454         (TMP_MAX): Likewise.
5455         (EOF): Use macro-int-constant.  Require < 0.
5456         (NULL): Use macro-constant.  Require == 0.
5457         (stdin): Require type to be FILE *.
5458         (stdout): Likewise.
5459         (stderr): Likewise.
5460         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5461         macro-int-constant.
5462         (EXIT_SUCCESS): Likewise.
5463         (NULL): Use macro-constant.  Require == 0.
5464         (RAND_MAX): Use macro-int-constant.
5465         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5466         [C99-based standards] (strtof): Require function.
5467         [C99-based standards] (strtold): Likewise.
5468         [C99-based standards] (strtoll): Likewise.
5469         [C99-based standards] (strtoull): Likewise.
5470         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5471         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5472         [ISO || ISO99 || ISO11] (math.h): Likewise.
5473         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5474         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5475         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5476
5477 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5478
5479         [BZ #14132]
5480         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5481         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5482         * intl/dgettext.c (DCGETTEXT): Likewise.
5483         * intl/gettext.c (DCGETTEXT): Likewise.
5484         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5485         * posix/regex_internal.h (gettext): Likewise.
5486         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5487         Remove declaration.
5488         * include/argz.h (__argz_count_internal)
5489         (__argz_stringify_internal): Remove declaration.
5490         (__argz_count, __argz_stringify): Declare hidden proto.
5491         * intl/dcgettext.c: Remove use of INTDEF.
5492         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5493         * string/argz-stringify.c: Likewise.
5494         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5495         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5496         Declare hidden proto.
5497         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5498         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5499         Declare hidden proto.
5500         * include/stdio.h (__asprintf_internal): Don't declare.
5501         (__asprintf): Don't define as macro.  Declare hidden proto.
5502         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5503         (__fsetlocking): Declare hidden proto.
5504         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5505         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5506         hidden proto.
5507         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5508         (_IO_setlinebuf): Remove use of INTUSE.
5509         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5510         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5511         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5512         Remove declaration.
5513         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5514         (_IO_do_flush): Remove use of INTUSE.
5515         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5516         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5517         (_IO_adjust_column, _IO_least_wmarker)
5518         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5519         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5520         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5521         (_IO_default_doallocate, _IO_wdefault_doallocate)
5522         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5523         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5524         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5525         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5526         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5527         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5528         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5529         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5530         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5531         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5532         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5533         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5534         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5535         proto.
5536         (_IO_flush_all_internal, _IO_adjust_column_internal)
5537         (_IO_default_uflow_internal, _IO_default_finish_internal)
5538         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5539         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5540         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5541         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5542         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5543         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5544         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5545         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5546         (_IO_file_close_internal, _IO_file_close_it_internal)
5547         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5548         (_IO_file_init_internal, _IO_file_attach_internal)
5549         (_IO_file_fopen_internal, _IO_file_read_internal)
5550         (_IO_file_sync_internal, _IO_file_seek_internal)
5551         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5552         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5553         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5554         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5555         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5556         (_IO_list_all_internal, _IO_link_in_internal)
5557         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5558         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5559         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5560         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5561         (_IO_do_write_internal, _IO_padn_internal)
5562         (_IO_getline_info_internal, _IO_getline_internal)
5563         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5564         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5565         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5566         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5567         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5568         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5569         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5570         with libc_hidden_ver, remove use of INTUSE.
5571         * libio/genops.c: Likewise.
5572         * libio/freopen.c: Likewise.
5573         * libio/freopen64.c: Likewise.
5574         * libio/iofclose.c: Likewise.
5575         * libio/iofdopen.c: Likewise.
5576         * libio/iofflush.c: Likewise.
5577         * libio/iofflush_u.c: Likewise.
5578         * libio/iofgets.c: Likewise.
5579         * libio/iofgets_u.c: Likewise.
5580         * libio/iofopen.c: Likewise.
5581         * libio/iofopncook.c: Likewise.
5582         * libio/iofread.c: Likewise.
5583         * libio/iofread_u.c: Likewise.
5584         * libio/ioftell.c: Likewise.
5585         * libio/iofwrite.c: Likewise.
5586         * libio/iogetline.c: Likewise.
5587         * libio/iogets.c: Likewise.
5588         * libio/iogetwline.c: Likewise.
5589         * libio/iopadn.c: Likewise.
5590         * libio/iopopen.c: Likewise.
5591         * libio/ioseekoff.c: Likewise.
5592         * libio/ioseekpos.c: Likewise.
5593         * libio/iosetbuffer.c: Likewise.
5594         * libio/iosetvbuf.c: Likewise.
5595         * libio/ioungetc.c: Likewise.
5596         * libio/ioungetwc.c: Likewise.
5597         * libio/iovdprintf.c: Likewise.
5598         * libio/iovsprintf.c: Likewise.
5599         * libio/iovsscanf.c: Likewise.
5600         * libio/memstream.c: Likewise.
5601         * libio/obprintf.c: Likewise.
5602         * libio/oldfileops.c: Likewise.
5603         * libio/oldiofclose.c: Likewise.
5604         * libio/oldiofdopen.c: Likewise.
5605         * libio/oldiofopen.c: Likewise.
5606         * libio/oldiopopen.c: Likewise.
5607         * libio/oldstdfiles.c: Likewise.
5608         * libio/putc.c: Likewise.
5609         * libio/setbuf.c: Likewise.
5610         * libio/setlinebuf.c: Likewise.
5611         * libio/stdfiles.c: Likewise.
5612         * libio/strops.c: Likewise.
5613         * libio/vasprintf.c: Likewise.
5614         * libio/vscanf.c: Likewise.
5615         * libio/vsnprintf.c: Likewise.
5616         * libio/vswprintf.c: Likewise.
5617         * libio/wfiledoalloc.c: Likewise.
5618         * libio/wfileops.c: Likewise.
5619         * libio/wgenops.c: Likewise.
5620         * libio/wmemstream.c: Likewise.
5621         * libio/wstrops.c: Likewise.
5622         * libio/__fpurge.c: Likewise.
5623         * libio/__fsetlocking.c: Likewise.
5624         * assert/assert.c: Likewise.
5625         * debug/fgets_chk.c: Likewise.
5626         * debug/fgets_u_chk.c: Likewise.
5627         * debug/fread_chk.c: Likewise.
5628         * debug/fread_u_chk.c: Likewise.
5629         * debug/gets_chk.c: Likewise.
5630         * debug/obprintf_chk.c: Likewise.
5631         * debug/vasprintf_chk.c: Likewise.
5632         * debug/vdprintf_chk.c: Likewise.
5633         * debug/vsnprintf_chk.c: Likewise.
5634         * debug/vsprintf_chk.c: Likewise.
5635         * malloc/mtrace.c: Likewise.
5636         * misc/error.c: Likewise.
5637         * misc/syslog.c: Likewise.
5638         * stdio-common/asprintf.c: Likewise.
5639         * stdio-common/fxprintf.c: Likewise.
5640         * stdio-common/getw.c: Likewise.
5641         * stdio-common/isoc99_fscanf.c: Likewise.
5642         * stdio-common/isoc99_scanf.c: Likewise.
5643         * stdio-common/isoc99_vfscanf.c: Likewise.
5644         * stdio-common/isoc99_vscanf.c: Likewise.
5645         * stdio-common/isoc99_vsscanf.c: Likewise.
5646         * stdio-common/printf-prs.c: Likewise.
5647         * stdio-common/printf_fp.c: Likewise.
5648         * stdio-common/printf_fphex.c: Likewise.
5649         * stdio-common/printf_size.c: Likewise.
5650         * stdio-common/putw.c: Likewise.
5651         * stdio-common/scanf.c: Likewise.
5652         * stdio-common/sprintf.c: Likewise.
5653         * stdio-common/tmpfile.c: Likewise.
5654         * stdio-common/vfprintf.c: Likewise.
5655         * stdio-common/vfscanf.c: Likewise.
5656         * stdlib/strfmon_l.c: Likewise.
5657         * sunrpc/openchild.c: Likewise.
5658         * sunrpc/xdr_stdio.c: Likewise.
5659         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5660         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5661
5662 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5663
5664         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5665
5666         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5667         in the third column, to generate for the shared library an IFUNC
5668         that uses _dl_vdso_vsym.
5669         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5670         * Makeconfig (object-suffixes-noshared): New variable.
5671
5672         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5673         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5674         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5675         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5676
5677         [BZ #14132]
5678         * include/sys/time.h (__gettimeofday): Remove macro.
5679         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5680         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5681         Remove INTDEF.
5682         (__gettimeofday): Add libc_hidden_def.
5683         (gettimeofday): Add libc_hidden_weak.
5684         * sysdeps/mach/gettimeofday.c: Likewise.
5685         * sysdeps/posix/gettimeofday.c: Likewise.
5686         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5687         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5688         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5689         (__gettimeofday_internal): Remove strong_alias.
5690         (__gettimeofday): Add libc_hidden_def.
5691         (gettimeofday): Add libc_hidden_weak.
5692         * sysdeps/unix/syscalls.list (gettimeofday):
5693         Remove __gettimeofday_internal alias.
5694
5695 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5696             H.J. Lu  <hongjiu.lu@intel.com>
5697
5698         [BZ #12495]
5699         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5700         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5701         (largebin_index_32_big): New.
5702         (largebin_index): Use it for 16-byte alignment.
5703         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5704         correction with front_misalign.
5705
5706 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5709         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5710         Likewise.
5711         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5712         Likewise.
5713         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5714         Likewise.
5715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5716         Likewise.
5717         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5718         Likewise.
5719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5720         Likewise.
5721         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5722         Likewise.
5723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5724         Likewise.
5725         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5726         Likewise.
5727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5728         Likewise.
5729         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5730         Likewise.
5731         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5732         Likewise.
5733
5734         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5735         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5736
5737 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5738
5739         [BZ #10846]
5740         [BZ #14036]
5741         * math/libm-test.inc (exp_test): Add test from bug 14036.
5742         (pow_test): Add test from bug 10846.
5743
5744         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5745         and other flags.
5746         (special_function): Do not include flags in test name.
5747         (parse_args): Likewise.
5748         * sysdeps/i386/fpu/libm-test-ulps: Update.
5749         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5750         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5751         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5753
5754         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5755         exceptions.
5756         * math/libm-test.inc ("Philosophy"): Update comment about
5757         exception testing.
5758         (UNDERFLOW_EXCEPTION): New macro.
5759         (UNDERFLOW_EXCEPTION_OK): Likewise.
5760         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5761         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5762         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5763         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5764         (INVALID_EXCEPTION_OK): Update value.
5765         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5766         (OVERFLOW_EXCEPTION_OK): Likewise.
5767         (IGNORE_ZERO_INF_SIGN): Likewise.
5768         (test_exceptions): Handle underflow exceptions.
5769         (acos_test): Update for underflow exception expectations.
5770         (cexp_test): Likewise.
5771         (clog_test): Likewise.
5772         (clog10_test): Likewise.
5773         (csqrt_test): Likewise.
5774         (ctan_test): Likewise.
5775         (ctanh_test): Likewise.
5776         (exp_test): Likewise.
5777         (exp10_test): Likewise.
5778         (exp2_test): Likewise.
5779         (expm1_test): Likewise.
5780         (fma_test): Likewise.
5781         (j0_test): Likewise.
5782         (jn_test): Likewise.
5783         (nexttoward_test): Likewise.
5784         (pow_test): Likewise.
5785         (scalbn_test): Likewise.
5786         (scalbln_test): Likewise.
5787         (tan_test): Likewise.
5788         (y1_test): Likewise.
5789         * sysdeps/i386/fpu/libm-test-ulps: Update.
5790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5791
5792 2012-05-23  David S. Miller  <davem@davemloft.net>
5793
5794         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5795         (__libc_sigaction): Remove unused local variables.
5796
5797 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5798
5799         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5800
5801 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         mktime: avoid signed integer overflow
5804         * time/mktime.c (__mktime_internal): Do not mishandle the case
5805         where diff == INT_MIN.
5806
5807         mktime: simplify computation of average
5808         * time/mktime.c (ranged_convert): Use new time_t_avg function
5809         instead of rolling our own (probably-slower) code.
5810
5811         mktime: do not assume signed right shift propagates sign bit
5812         * time/mktime.c (isdst_differ): New static function.
5813         (__mktime_internal): No need to normalize tm_isdst now.
5814         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5815         tm_isdst values.
5816
5817         mktime: merge another wrapv change from gnulib
5818         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5819         from some compilers.
5820
5821         mktime: remove incorrect attempt at unusual arithmetics
5822         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5823         The code didn't really work on such machines anyway.
5824         (TYPE_MINIMUM): Assume two's complement.
5825         (twos_complement_arithmetic): Verify that long_int and time_t
5826         are two's complement (or unsigned, in the latter case).
5827
5828         mktime: check signed shifts on long_int and time_t, too
5829         * time/mktime.c (SHR): Check that shifts work as desired
5830         on the types long_int and time_t too, as SHR is used on
5831         such types.
5832
5833         mktime: do not assume 'long' is wide enough
5834         * time/mktime.c (verify): Move decl up.
5835         (long_int): New type.
5836         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5837         to remove assumption in the code that 'long' is wide enough to
5838         store year values.  This assumption is not true on x32 and on
5839         some non-glibc platforms.
5840
5841         mktime: merge wrapv change from gnulib
5842         * time/mktime.c (WRAPV): New macro.
5843         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5844         (guess_time_tm, __mktime_internal): Do not assume that signed
5845         integer overflow wraps around; modern compilers generate code
5846         where this assumption is no longer valid.
5847
5848 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5851         Replace "jmp L(pseudo_end)" with "ret".
5852         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5853         Likewise.
5854
5855 2012-05-23  Andreas Jaeger  <aj@suse.de>
5856
5857         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5858         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5859
5860 2012-05-23  Andreas Jaeger  <aj@suse.de>
5861             Maximilian Attems  <max@stro.at>
5862
5863         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5864         New macros.
5865
5866 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5869         code so that pseudo_end is just ret and the stack pointer is
5870         correct also for static library in error case.
5871
5872 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5873
5874         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5875         move to syscalls.list.
5876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5880
5881         * manual/install.texi (Running make install): Do not mention Linux
5882         kernel version for which pt_chown is not needed.
5883         (Linux): Do not mention problems with nscd with 2.0 kernels.
5884         * INSTALL: Regenerated.
5885
5886 2012-05-23  Andreas Jaeger  <aj@suse.de>
5887
5888         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5889         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5890         macro.
5891         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5892         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5893         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5894         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5895         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5896         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5897         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5898         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5899         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5900         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5901         * sysdeps/unix/sysv/linux/bits/in.h
5902         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5903
5904 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5905
5906         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5907         (PREPARE_VERSION): Just use assert instead, it will be elided
5908         under [NDEBUG] anyway.
5909
5910 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5911
5912         * sysdeps/unix/sysv/linux/Makefile: Include
5913         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5914         (sysdep_routines): Remove sysctl.
5915         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5916         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5917         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5918         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5919         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5920
5921 2012-05-22  Andreas Jaeger  <aj@suse.de>
5922
5923         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5924         that pseudo_end is just ret and the stack pointer is correct also
5925         for static library in error case.
5926
5927 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5928
5929         [BZ #14122]
5930         * nss/nsswitch.c (defconfig_entries): New variable.
5931         (__nss_database_lookup): Don't leak defconfig entries.
5932         (nss_parse_service_list): Don't leak on error paths.
5933         (free_database_entries): New function.
5934         (free_defconfig): New function.
5935         (free_mem): Move common code to free_database_entries.
5936
5937 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5938
5939         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5940         Add arch_prctl.
5941         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5942
5943         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5944         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5945         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5946         New macro.
5947         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5948         (INTERNAL_SYSCALL_TYPES): Likewise.
5949         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5950         (LOAD_REGS_TYPES_[1-6]): Likewise.
5951         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5952         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5953
5954 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5955
5956         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5957         copysignl for GLIBC_2_0.
5958         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5959         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5960         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5961         logbl for GLIBC_2_0.
5962         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5963         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5964
5965 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5966
5967         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5968         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5969
5970         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5971         Use "neg %eax".
5972
5973         * time/mktime.c: Update copyright years.
5974
5975 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         mktime: merge comment-quoting-style change from gnulib
5978         * time/mktime.c: Quote 'like this' in comments.
5979         The GNU coding standards suggest that we no longer quote `like this',
5980         as "`" and "'" are typically rendered asymmetrically nowadays.
5981         The typical gnulib style is to quote 'like this' when quoting
5982         code, and "like this" when quoting English.
5983
5984         * time/mktime.c (compile-command): Add "-I.".
5985
5986         mktime: merge mktime-internal.h change from gnulib
5987         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5988
5989         mktime: merge time_r change from gnulib
5990         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5991
5992         mktime: merge DEBUG change from gnulib
5993         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5994         case system <time.h> has a #define.
5995
5996         mktime: merge <sys/types.h> change from gnulib
5997         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5998         since <time.t> is now guaranteed to define time_t.
5999
6000         mktime: merge HAVE_CONFIG_H change from gnulib
6001         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6002
6003 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6004
6005         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6006         Use "neg %eax".
6007
6008         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6009         __rlim_t cast.
6010         (struct rusage): Use anonymous union to pad each field to
6011         __syscall_slong_t.
6012
6013 2012-05-21  David S. Miller  <davem@davemloft.net>
6014
6015         * Makefules (o-iterator): Remove .s cases.
6016         (compile-command.s): Delete.
6017         (COMPILE.s): Delete.
6018         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6019
6020 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6021
6022         * configure.in (libc_cv_predef_stack_protector): Only consider
6023         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6024         * configure: Regenerated.
6025
6026 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6027
6028         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6029         New macro.  Use R*LP on int and pointer.
6030         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6031         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6032         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6033         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6034
6035         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6036         [__WORDSIZE_TIME64_COMPAT32] instead of
6037         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6038         (struct utmp): Likewise.
6039         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6040         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6041         Renamed to ...
6042         (__WORDSIZE_TIME64_COMPAT32): This.
6043         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6044         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6045         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6046         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6047         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6048         (__WORDSIZE_TIME64_COMPAT32): New macro.
6049
6050 2012-05-21  Andreas Jaeger  <aj@suse.de>
6051
6052         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6053         only if [SHARED]. Add prototype for __wcschr_ia32.
6054
6055 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6056
6057         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6058         of %rbp unmolested in the jmp_buf while mangling the low bits.
6059         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6060         unmolested high bits of %rbp while demangling the low bits.
6061         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6062
6063 2012-05-21  Andreas Jaeger  <aj@suse.de>
6064
6065         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6066         * sunrpc/svc_simple.c: Use it for registerrpc.
6067         * sunrpc/xcrypt.c: Use it for passwd2des.
6068
6069         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6070
6071 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6072
6073         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6074         Don't define if [__SYSCALL_WORDSIZE != 32].
6075         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6076         New macro.
6077
6078 2012-05-21  Bruno Haible  <bruno@clisp.org>
6079             Andreas Jaeger  <aj@suse.de>
6080
6081         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6082         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6083         inptr and inend for must_buffer_ch.
6084         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6085         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6086         * stdio-common/Makefile (tests): Remove bug15.
6087         (bug15-ENV): Remove macro.
6088         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6089         anymore.
6090
6091 2012-05-19  Andreas Jaeger  <aj@suse.de>
6092             Roland McGrath  <roland@hack.frob.com>
6093
6094         * manual/contrib.texi: Completely rewritten. It contains now an
6095         alphabetical list of contributors and their contributions.
6096
6097 2012-05-21  Richard Henderson  <rth@twiddle.net>
6098
6099         * misc/getauxval.c (__getauxval): Use unsigned long int.
6100         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6101         (getauxval): Use unsigned long int.
6102
6103 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6104
6105         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6106
6107 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6108
6109         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6110         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6111         __alignof__ (long double).
6112
6113 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6114
6115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6116
6117 2012-05-20  Richard Henderson  <rth@twiddle.net>
6118
6119         * misc/getauxval.c: New file.
6120         * misc/sys/auxv.h: New file.
6121         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6122         (routines): Add getauxval.
6123         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6124         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6125         * elf/dl-sysdep.c (_dl_auxv): Remove.
6126         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6127         * elf/dl-support.c (_dl_auxv): New variable.
6128         (_dl_aux_init): Initialize it.
6129         * manual/startup.texi (Auxiliary Vector): New node.
6130         * sysdeps/generic/bits/hwcap.h: New file.
6131         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6132         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6133         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6134         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6135         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6136         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6138         Update.
6139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6141         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6142         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6145         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6147
6148 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6149
6150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6151
6152 2012-05-19  David S. Miller  <davem@davemloft.net>
6153
6154         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6155
6156 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6157
6158         [BZ #14123]
6159         * math/s_ccosh.c: Include <float.h>
6160         (__ccosh): Avoid internal overflow calculating sinh and cosh
6161         values before multiplying by sin and cos values.
6162         * math/s_ccoshf.c: Likewise.
6163         * math/s_ccoshl.c: Likewise.
6164         * math/s_csin.c: Likewise.
6165         * math/s_csinf.c: Likewise.
6166         * math/s_csinl.c: Likewise.
6167         * math/s_csinh.c: Likewise.
6168         * math/s_csinhf.c: Likewise.
6169         * math/s_csinhl.c: Likewise.
6170         * math/libm-test.inc (ccos_test): Add more tests.
6171         (ccosh_test): Likewise.
6172         (csin_test): Likewise.
6173         (csinh_test): Likewise.
6174         * sysdeps/i386/fpu/libm-test-ulps: Update.
6175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6176
6177 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6180         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6181
6182         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6183
6184 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6185
6186         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6187         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6188         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6189         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6190         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6191         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6192         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6193         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6194         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6195         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6196         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6197         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6198         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6199         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6200         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6201         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6202         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6203         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6204         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6205         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6206         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6207         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6208         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6209         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6210         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6211         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6212         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6213         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6214         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6215         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6216         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6217
6218 2012-05-18  Andreas Jaeger  <aj@suse.de>
6219
6220         * csu/.gitignore: Delete.
6221
6222 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6223
6224         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6225         (timex): Use __syscall_slong_t.
6226
6227 2012-05-18  Andreas Jaeger  <aj@suse.de>
6228             Carlos O'Donell  <carlos_odonell@mentor.com>
6229
6230         * manual/install.texi (Configuring and compiling): Update
6231         description about files modified in the source directory.
6232         * INSTALL: Regenerated.
6233
6234 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6235
6236         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6237         value.  Use "or" to set return value to -1.
6238         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6239         negate return value.
6240
6241 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6242
6243         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6244         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6245         failure if the compiler has Graphite support disabled.
6246         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6247         Likewise.
6248         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6249         CFLAGS-memmove.c): Likewise.
6250         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6251         Likewise.
6252
6253 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6254
6255         * sysdeps/x86_64/x32/_itoa.h: New file.
6256
6257         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6258         getdents system call only if kernel and user dirents have the
6259         same d_ino and d_off.
6260
6261         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6262         LLONG_MAX != LONG_MAX.
6263         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6264         (_fitoa_word): Likewise.
6265
6266         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6267         years.
6268         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6269         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6270         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6271
6272         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6273         include <bits/wordsize.h>.  Check __x86_64__ instead of
6274         __WORDSIZE.
6275         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6276         if __x86_64__ is defined.  Use anonymous union on fpstate.
6277
6278         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6279         anonymous union.
6280
6281 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6282
6283         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6284         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6285         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6286         Refer to _rtld_local_ro instead of _rtld_global_ro.
6287         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6288         Likewise.
6289         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6290         Likewise.
6291         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6292         Likewise.
6293         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6294         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6295         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6296
6297         * sysdeps/powerpc/powerpc32/dl-machine.c
6298         (__elf_machine_runtime_setup) [PROF]: Don't reference
6299         _dl_prof_resolve.
6300
6301 2012-05-18  Andreas Jaeger  <aj@suse.de>
6302
6303         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6304         function only available for GCCs before 3.4 since GCC 3.4
6305         introduced a builtin.
6306         (lrint): Likewise.
6307         (llrintf): Likewise.
6308         (llrint): Likewise.
6309         (fmaxf): Likewise.
6310         (fmax): Likewise.
6311         (fminf): Likewise.
6312         (fmin): Likewise.
6313         (rint): Likewise.
6314         (rintf): Likewise.
6315         (nearbyint): Likewise.
6316         (nearbyintf): Likewise.
6317         (ceil): Likewise.
6318         (ceilf): Likewise.
6319         (floor): Likewise.
6320         (floorf): Likewise.
6321
6322 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6323
6324         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6325         on both fields and cast pointer to __syscall_ulong_t.
6326
6327         * bits/types.h (__fsword_t): New type.
6328         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6329         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6330         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6331         (__FSWORD_T_TYPE): Likewise.
6332         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6333         (__FSWORD_T_TYPE): Likewise.
6334         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6335         (__FSWORD_T_TYPE): Likewise.
6336         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6337         (__FSWORD_T_TYPE): Likewise.
6338         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6339         __SWORD_TYPE with __fsword_t.
6340         (statfs64): Likewise.
6341
6342 2012-05-17  David S. Miller  <davem@davemloft.net>
6343
6344         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6345
6346 2012-05-17  Andreas Jaeger  <aj@suse.de>
6347
6348         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6349         warning.
6350
6351 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6352
6353         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6354
6355 2012-05-17  Andreas Jaeger  <aj@suse.de>
6356
6357         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6358         when it is used.
6359
6360 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6361
6362         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6363
6364 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6365
6366         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6367         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6368
6369 2012-05-17  Andreas Jaeger  <aj@suse.de>
6370             Carlos O'Donell  <carlos_odonell@mentor.com>
6371
6372         [BZ #14059]
6373         * sysdeps/x86_64/multiarch/init-arch.h
6374         (bit_YMM_Usable): Rename to...
6375         (bit_AVX_Usable): ... this.
6376         (bit_FMA4_Usable): New macro.
6377         (bit_XMM_state): New macro.
6378         (bit_YMM_state): New macro.
6379         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6380         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6381         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6382         (CPUID_OSXSAVE): New macro.
6383         (CPUID_AVX): New macro.
6384         (CPUID_FMA4): New macro.
6385         (index_YMM_Usable): Rename to...
6386         (index_AVX_Usable): ... this.
6387         (HAS_AVX): Use HAS_ARCH_FEATURE.
6388         (HAS_FMA4): Likewise.
6389         (HAS_YMM_USABLE): Remove.
6390         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6391         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6392         are present.
6393         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6394         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6395         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6396         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6397         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6398
6399 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6400
6401         * math/libm-test.c: Support platforms without multiple rounding modes.
6402         * math/bug-nextafter.c: Support platforms without FP exceptions.
6403         * math/bug-nexttoward.c: Likewise.
6404         * math/test-fenv.c: Likewise.
6405         * math/test-misc.c: Likewise.
6406         * stdlib/bug-getcontext.c: Likewise.
6407
6408 2012-05-17  Andreas Jaeger  <aj@suse.de>
6409
6410         * manual/examples/search.c (critter_cmp): Change signature to
6411         avoid warnings.
6412         * manual/string.texi (Collation Functions): Likewise.
6413
6414 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         * bits/types.h: Fold copyright years.
6417         * bits/typesizes.h: Likewise.
6418         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6419         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6420         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6421         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6422         * time/time.h: Likewise.
6423
6424 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6425
6426         [BZ #208]
6427         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6428         in instead of returning them.  Return void.
6429         (__libc_mallinfo): Accumulate over all arenas.
6430         (__malloc_stats): Adjust for change in int_mallinfo interface.
6431
6432 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6433
6434         [BZ #10375]
6435         * configure.in (NM): Add AC_CHECK_TOOL for it.
6436         (libc_extra_cflags): New substituted variable.
6437         Check for -fstack-protector being used implicitly.
6438         * configure: Regenerated.
6439         * config.make.in (config-extra-cflags): New variable,
6440         gets @libc_extra_cflags@.
6441         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6442
6443         [BZ #10375]
6444         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6445         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6446         * configure: Regenerated.
6447         * config.make.in (CPPUNDEFS): New substituted variable.
6448         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6449         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6450         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6451
6452 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6453
6454         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6455         (mq_attr): Use __syscall_slong_t.
6456
6457 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6458
6459         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6460         Check __x86_64__ instead of __WORDSIZE.
6461         (_STAT_VER_LINUX): Likewise.
6462         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6463         __syscall_ulong_t and __syscall_slong_t.
6464         (stat64): Likewise.
6465
6466 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6467
6468         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6469
6470 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6471
6472         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6473
6474 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6475
6476         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6477         __syscall_ulong_t.
6478
6479         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6480         include <bits/wordsize.h>.  Check __x86_64__ instead of
6481         __WORDSIZE.
6482         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6483         defined.
6484         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6485
6486         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6487         include <bits/wordsize.h>.  Check __x86_64__ instead of
6488         __WORDSIZE.
6489         (user_regs_struct): Use "__extension__ unsigned long long"
6490         instead of "unsigned long" if __x86_64__ is defined.
6491         (user): Likewise.  Pad after pointer field if __ILP32__ is
6492         defined.
6493
6494 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6495
6496         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6497         versions 5 to 9.
6498         * configure: Regenerated.
6499         * manual/install.texi (texinfo): Increase version requirement to
6500         4.5 or later.
6501         * INSTALL: Regenerated.
6502
6503         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6504
6505 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6506
6507         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6508
6509         * sysdeps/x86_64/x32/ffs.c: New file.
6510
6511         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6512         __syscall_ulong_t.
6513         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6514         defined.  Use __syscall_ulong_t.
6515         (shminfo): Use __syscall_ulong_t.
6516         (shm_info): Likewise.
6517
6518         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6519         __syscall_ulong_t.
6520
6521         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6522         <bits/wordsize.h>.
6523         (msgqnum_t): Use __syscall_ulong_t.
6524         (msglen_t): Likewise.
6525         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6526         __syscall_ulong_t.
6527
6528         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6529         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6530
6531         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6532
6533         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6534         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6535
6536         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6537         __syscall_slong_t.
6538
6539         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6540         include <bits/wordsize.h>.  Check __x86_64__ instead of
6541         __WORDSIZE.
6542
6543         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6544         "unsigned long long int" if __x86_64__ is defined.
6545         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6546
6547         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6548         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6549         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6550
6551         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6552         <stdint.h>.
6553         (GET_PC): Cast to uintptr_t first.
6554         (GET_FRAME): Likewise.
6555         (GET_STACK): Likewise.
6556
6557         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6558         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6559         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6560         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6561         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6562         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6563         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6564         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6565         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6566         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6567         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6568         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6569         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6570         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6571         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6572         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6573         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6574         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6575         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6576         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6577         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6578         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6579         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6580         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6581         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6582         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6583         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6584         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6585         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6586
6587 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6588
6589         * Makerules (+depfiles): Also collect depfiles from .oS in
6590         $(extra-objs).
6591         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6592         .oS, $(libnldbl-routines)).
6593
6594         * Makerules (native-compile-mkdep-flags): Define.
6595         * sunrpc/Makefile (extra-objs): Add $(addprefix
6596         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6597         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6598         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6599         calling $(make-target-directory).
6600
6601 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6602
6603         * bits/types.h (__snseconds_t): Removed.
6604         * time/time.h (struct timespec): Replace __snseconds_t with
6605         __syscall_slong_t.
6606         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6607         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6608         Likewise.
6609         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6610         (__SNSECONDS_T_TYPE): Likewise.
6611         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6612         (__SNSECONDS_T_TYPE): Likewise.
6613         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6614         (__SNSECONDS_T_TYPE): Likewise.
6615
6616 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6617
6618         * sysdeps/mach/hurd/bits/typesizes.h
6619         (__SYSCALL_SLONG_TYPE): New macro.
6620         (__SYSCALL_ULONG_TYPE): Likewise.
6621
6622 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6623
6624         * bits/types.h (__syscall_slong_t): New type.
6625         (__syscall_ulong_t): Likewise.
6626
6627         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6628         (__SYSCALL_ULONG_TYPE): Likewise.
6629         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6630         (__SYSCALL_SLONG_TYPE): Likewise.
6631         (__SYSCALL_ULONG_TYPE): Likewise.
6632         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6633         (__SYSCALL_SLONG_TYPE): Likewise.
6634         (__SYSCALL_ULONG_TYPE): Likewise.
6635         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6636         (__SYSCALL_SLONG_TYPE): Likewise.
6637         (__SYSCALL_ULONG_TYPE): Likewise.
6638
6639 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6640
6641         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6642         Add sigaltstack-offsets.sym.
6643         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6644         <sigaltstack-offsets.h>.
6645         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6646         longjmp_msg pointer.
6647         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6648         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6649         signal stack.
6650         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6651
6652 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6653
6654         * elf/stackguard-macros.h: Remove file.
6655         * sysdeps/generic/stackguard-macros.h: New file.
6656         * sysdeps/i386/stackguard-macros.h: Likewise.
6657         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6658         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6659         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6660         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6661         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6662         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6663         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6664         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6665         <elf/stackguard-macros.h>.
6666
6667         [BZ #14109]
6668         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6669         __aligned__ in attribute.
6670         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6671         (gregset_t): Likewise.
6672
6673 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6674
6675         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6676         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6677         * sysdeps/x86_64/x32/Implies-after: New file.
6678
6679 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6680
6681         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6682         and access return value for _dl_profile_fixup.  Use R10_LP to
6683         load frame size.
6684
6685 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6688
6689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6690
6691         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6692         * sysdeps/x86_64/x32/sysdep.h: New file.
6693
6694 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6695
6696         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6697         * sysdeps/x86_64/setjmp.S: Likewise.
6698
6699 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6700
6701         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6702         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6703         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6704         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6705         remove unused global constant.
6706
6707 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6708
6709         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6710         include of <not-cancel.h>.
6711
6712 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6713
6714         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6715
6716 2012-05-15  Jeff Law  <law@redhat.com>
6717             Andreas Jaeger  <aj@suse.de>
6718
6719         [BZ #13594]
6720         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6721         out from...
6722         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6723         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6724         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6725         code changing __hst_map_handle.map.
6726
6727 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6728
6729         * configure.in (sysnames): Look for Implies-before and Implies-after
6730         files.
6731         * configure: Regenerated.
6732
6733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6734
6735         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6736         8-byte data alignment with LP_SIZE alignment.
6737
6738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6739
6740         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6741         into R10_LP.
6742
6743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6746
6747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6750         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6751         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6752         Likewise.
6753         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6754
6755 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6756
6757         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6758         (stackinfo_sub_sp): Likewise.
6759
6760 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6761
6762         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6763         RAX_LP.
6764
6765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6766
6767         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6768         into R*_LP.
6769
6770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6773         sizes into R*_LP.
6774
6775 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6776
6777         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6778
6779 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6782         into R11_LP and load __x86_64_shared_cache_size_half into
6783         R8_LP.
6784
6785 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6786
6787         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6788         R8_LP.
6789
6790 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6791
6792         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6793         logb for POWER7.
6794         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6795         logbf for POWER7.
6796         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6797         logbl for POWER7.
6798         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6799         powerpc32/power7/fpu/s_logb.c via #include.
6800         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6801         powerpc32/power7/fpu/s_logbf.c via #include.
6802         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6803         powerpc32/power7/fpu/s_logbl.c via #include.
6804
6805 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6806
6807         * README.libm: Remove file.
6808
6809 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6810
6811         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6812         count for x32.  Use R*_LP and omit operand-size suffix.
6813
6814 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6815
6816         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6817         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6818         * sysdeps/x86_64/x32/shlib-versions: New file.
6819
6820 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6821
6822         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6823         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6824         Use _dl_fatal_printf instead.
6825
6826 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6827
6828         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6829         set if not set by the user.  Do not allow for being unset.
6830         * sysdeps/unix/sysv/linux/configure: Regenerated.
6831
6832 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6833
6834         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6835         the `q' suffix from lea and replace .quad with ASM_ADDR.
6836
6837 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6838
6839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6840         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6841         instead of $17.
6842         (PTR_DEMANGLE): Likewise.
6843
6844 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6845
6846         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6847         (LP_OP): Likewise.
6848         (ASM_ADDR): Likewise.
6849         (RAX_LP): Likewise.
6850         (RBP_LP): Likewise.
6851         (RBX_LP): Likewise.
6852         (RCX_LP): Likewise.
6853         (RDI_LP): Likewise.
6854         (RSI_LP): Likewise.
6855         (RSP_LP): Likewise.
6856         (R8_LP): Likewise.
6857         (R9_LP): Likewise.
6858         (R10_LP): Likewise.
6859         (R10_LP): Likewise.
6860         (R11_LP): Likewise.
6861         (R12_LP): Likewise.
6862         (R13_LP): Likewise.
6863         (R14_LP): Likewise.
6864         (R15_LP): Likewise.
6865
6866 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6867
6868         * sysdeps/x86_64/x32/dl-machine.h: New file.
6869
6870 2012-05-14  Andreas Jaeger  <aj@suse.de>
6871
6872         * manual/Makefile (subdir): Remove export of subdir.
6873         (all): Remove target.
6874         (.PHONY): Remove all from list.
6875         (mkinstalldirs): Remove.
6876         (.PHONY): Remove installdirs from list.
6877         ($(inst_infodir)/libc.info): Use make-target-directory.
6878         (installdirs): Remove.
6879         (subdir_%): Remove.
6880         (glibc-targets): Remove.
6881         (lib): Remove.
6882         (stubs): Remove.
6883         ($(objpfx)stubs ../po/manual.pot): Remove.
6884         ($(objpfx)stamp%): Remove.
6885         (make-target-directory): Remove.
6886         (subdir_install): Remove.
6887         (routines): Remove.
6888         (aux): Remove.
6889         (sources): Remove.
6890         (objects): Remove.
6891         (headers): Remove.
6892
6893         [BZ #13750]
6894         * manual/.gitignore: Remove, it's not needed anymore.
6895         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6896         all files in it.
6897         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6898         directory.
6899         (texis): Renamed to $(objpfx)texis.
6900         (texis-path): New, contains path to generated files.
6901         (chapters.%): Use texis-path for complete path, add extra argument
6902         libc-texinfo.sh.
6903         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6904         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6905         (summary,texi, stamp-summary): Use complete path of
6906         files. Generate files in build dir.
6907         (dir-add.texi): Build in build dir.
6908         (libm-err.texi,stamp-libm-err): Likewise.
6909         (version.texi, stamp-version): Likewise.
6910         (.%c.texi): Likewise.
6911         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6912         (mostlyclean): Remove target.
6913         (realclean): Remove target.
6914         (generated): Add new variable with contents from mostlyclean and
6915         realclean, remove entries duplicated in common-mostlyclean, add
6916         stamp-libm-err and stamp-version.
6917         (generated-dirs): Add libc directory.
6918         ($(inst_infodir)/libc.info): Install files from build dir.
6919
6920         * manual/install.texi (Configuring and compiling): Adjust since
6921         the info files are not part of the tar ball anymore.
6922
6923 2012-05-14  Andreas Jaeger  <aj@suse.de>
6924
6925         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6926         variable.
6927
6928 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6929
6930         [BZ #13717]
6931         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6932         to 2.2.0 where earlier.
6933         * sysdeps/unix/sysv/linux/configure: Regenerated.
6934         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6935         Remove conditional code.
6936         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6937         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6938         Remove conditional code.
6939         [!__NR_lchown]: Likewise.
6940         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6941         [__NR_lchown]: Likewise.
6942         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6943         comment referencing __ASSUME_LCHOWN_SYSCALL.
6944         * sysdeps/unix/sysv/linux/i386/sigaction.c
6945         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6946         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6947         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6948         Remove conditional code.
6949         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6950         (__protocol_available): Remove #if 0 code.
6951         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6952         conditional code.
6953         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6954         * sysdeps/unix/sysv/linux/kernel-features.h
6955         (__ASSUME_GETCWD_SYSCALL): Don't define.
6956         (__ASSUME_REALTIME_SIGNALS): Likewise.
6957         (__ASSUME_PREAD_SYSCALL): Likewise.
6958         (__ASSUME_PWRITE_SYSCALL): Likewise.
6959         (__ASSUME_POLL_SYSCALL): Likewise.
6960         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6961         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6962         non-SPARC.
6963         (__ASSUME_SIOCGIFNAME): Don't define.
6964         (__ASSUME_MSG_NOSIGNAL): Likewise.
6965         (__ASSUME_SENDFILE): Define unconditionally.
6966         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6967         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6968         conditional code.
6969         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6970         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6971         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6972         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6973         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6974         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6975         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6977         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6978         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6980         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6981         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6983         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6984         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6986         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6987         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6989         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6990         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6992         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6993         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6995         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6996         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6998         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6999         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7000         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7001         Remove conditional code.
7002         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7003         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7004         Remove conditional code.
7005         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7006         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7007         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7008         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7009         Remove conditional code.
7010         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7011         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7012         Remove conditional code.
7013         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7014         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7015         Remove conditional code.
7016         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7017         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7018         Remove conditional code.
7019         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7020         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7021         Remove conditional code.
7022         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7023         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7024         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7025         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7026         * sysdeps/unix/sysv/linux/sigaction.c
7027         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7028         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7029         * sysdeps/unix/sysv/linux/sigpending.c
7030         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7031         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7032         * sysdeps/unix/sysv/linux/sigprocmask.c
7033         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7034         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7035         * sysdeps/unix/sysv/linux/sigsuspend.c
7036         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7037         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7038         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7039         (__libc_missing_rt_sigs): Remove.
7040         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7041         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7042         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7043         Remove conditional code.
7044         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7045         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7046         return 1.
7047         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7048         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7049         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7050         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7051
7052 2012-05-14  Andreas Jaeger  <aj@suse.de>
7053
7054         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7055         it's not used in glibc.
7056         (__coshm1): Likewise.
7057         (__acosh1p): Likewise.
7058         (__sgn): Likewise.
7059
7060         * manual/string.texi (Copying and Concatenation): Add missing
7061         variable in concat example.
7062         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7063
7064 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7065
7066         [BZ #14103]
7067         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7068         __builtin_clzl with __builtin_clzll.
7069
7070 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7071
7072         [BZ #14104]
7073         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7074         libc_freeres_ptr.
7075
7076 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7077
7078         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7079         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7080         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7081         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7082
7083 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7084
7085         * NEWS: Update ia64 info.
7086
7087 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7088
7089         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7090         used as bcopy.
7091
7092 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7093
7094         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7095         * sysdeps/unix/syscalls.list (dup3): Likewise.
7096         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7097         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7098
7099 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7100
7101         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7102         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7103
7104 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7107         thread pointer.
7108         (TLS_IE): Use mov/add instead of movq/addq to load thread
7109         pointer.
7110         (TLS_GD_PREFIX): New.
7111         (TLS_GD): Use it.
7112
7113 2012-05-11  David S. Miller  <davem@davemloft.net>
7114
7115         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7116         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7117         (_FPU_SETCW): Likewise.
7118
7119 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7120
7121         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7122         is 32-byte aligned.
7123
7124 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7125
7126         [BZ #11837]
7127         * iconvdata/gb18030.c: Update tables.
7128         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7129         characters specially.
7130         (BODY for TO_LOOP): Add encoding of missing ranges.
7131
7132 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7133
7134         [BZ #13673]
7135         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7136         * sysdeps/mach/hurd/dup3.c: Likewise.
7137         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7138         * sysdeps/powerpc/memmove.c:: Likewise.
7139
7140 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7141
7142         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7143         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7144
7145 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7146
7147         * elf/elf.h (R_X86_64_RELATIVE64): New.
7148         (R_X86_64_NUM): Updated.
7149         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7150         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7151         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7152         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7153         tst-quad1pie tst-quad2pie
7154         (modules-names): Add tst-quadmod1 tst-quadmod2.
7155         ($(objpfx)tst-quad1): New dependency.
7156         ($(objpfx)tst-quad2): Likewise.
7157         ($(objpfx)tst-quad1pie): Likewise.
7158         ($(objpfx)tst-quad2pie): Likewise.
7159         * sysdeps/x86_64/tst-quad1.c: New file.
7160         * sysdeps/x86_64/tst-quad1pie.c: New file.
7161         * sysdeps/x86_64/tst-quad2.c: Likewise.
7162         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7163         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7164         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7165         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7166         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7167
7168 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7169
7170         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7171         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7172         * streams/stropts.h (t_scalar_t): Define type.
7173
7174         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7175         (_PATH_PRESERVE): Set to "/var/lib".
7176         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7177
7178         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7179         instead of int.
7180
7181         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7182         if __dir_mkfile succeeded.
7183
7184         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7185         checking for _hurd_dtablesize.  Unlock it right after having
7186         finished _hurd_dtable allocation.
7187
7188 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7189
7190         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7191         * sysdeps/mach/hurd/configure: Regenerated.
7192         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7193         special-casing to...
7194         * sysdeps/gnu/configure.in: ... this new file.
7195         * sysdeps/unix/sysv/linux/configure: Regenerated.
7196         * sysdeps/gnu/configure: New generated file.
7197
7198         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7199         for Linux: use nsec instead of usec, as well as:
7200         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7201         members of type struct timespec.
7202         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7203         New macros.
7204         (struct stat64): Likewise.
7205         (_STATBUF_ST_NSEC): New macro.
7206         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7207
7208         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7209         __strtoul_internal rather than strtoul.
7210
7211 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7212
7213         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7214         and reject them.
7215
7216 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7217
7218         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7219         which preserves existing values.
7220         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7221
7222 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7223
7224         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7225         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7226         greater than FD_SETSIZE.
7227
7228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7229
7230         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7231         allocated, call __vm_protect to finish enabling the existing space, and
7232         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7233         allocate the remainder.
7234
7235 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7236
7237         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7238         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7239
7240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7241
7242         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7243         sysdeps/mach/hurd/readlink.c.
7244
7245         * posix/tst-sysconf.c (posix_options): Only use
7246         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7247         _POSIX_SYNCHRONIZED_IO when they are defined
7248         * sysdeps/mach/hurd/bits/posix_opt.h:
7249         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7250         (_XOPEN_REALTIME): Undefine macro.
7251         (_XOPEN_REALTIME_THREADS): Undefine macro.
7252         (_XOPEN_SHM): Undefine macro.
7253         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7254         macro to -1.
7255         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7256         macro to -1.
7257         (_POSIX_ASYNC_IO): Undefine macro.
7258         (_POSIX_PRIORITIZED_IO): Undefine macro.
7259         (_POSIX_SPIN_LOCKS): Define macro to -1.
7260
7261         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7262         SA_NODEFER, SA_RESETHAND.
7263         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7264         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7265         F_DUPFD_CLOEXEC.
7266
7267 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7268
7269         * elf/Makefile (pldd-modules): Define unconditionally.
7270
7271 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7272
7273         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7274
7275 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7276
7277         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7278         Return ENOENT when name is empty.
7279         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7280
7281 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7282
7283         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7284
7285         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7286
7287 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7288
7289         Fix mlock in all cases except non-readable pages.
7290         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7291         instead of VM_PROT_ALL as parameter to __vm_wire function.
7292
7293         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7294         (__mkdir): When path is `/', just fail with EEXIST.
7295         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7296
7297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7298
7299         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7300         <sys/uio.h> (for writev).
7301         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7302         and <sys/param.h> (for MIN).
7303
7304 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7305
7306         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7307         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7308         if interrupted.
7309
7310 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7311
7312         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7313         Depend on against $(link-rpcuserlibs).
7314
7315 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7316
7317         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7318         (__libc_stack_end): Do not use attribute_relro.
7319         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7320         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7321         to libthread-provided value.
7322         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7323         attribute_relro.
7324
7325 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7326
7327         [BZ #3748]
7328         * bits/libc-lock.h (__libc_once_get): New macro.
7329         * sysdeps/mach/bits/libc-lock.h: Likewise.
7330         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7331         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7332         instead of using implementation details.
7333
7334         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7335         * libio/freopen.c: Likewise.
7336         * libio/freopen64.c: Likewise.
7337         * misc/syslog.c: Likewise.
7338         * nscd/connections.c: Likewise.
7339         * nscd/netgroupcache.c: Likewise.
7340         * sysdeps/posix/getcwd.c: Likewise.
7341
7342 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7343
7344         * math/w_ilogbf.c: Add #include <limits.h>.
7345
7346 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7347
7348         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7349         path instead of returning without unlocking.
7350
7351         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7352         immediate-write ioctls.
7353         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7354
7355 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7356
7357         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7358         __builtin_frame_address instead of making assumptions about the
7359         location of the return address relative to DATA.  Force early load of
7360         the return address.
7361         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7362         __builtin_frame_address.
7363
7364         dup3 for GNU Hurd.
7365         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7366         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7367         implement dup3 and do some further code clean-ups.
7368         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7369         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7370
7371 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7372
7373         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7374
7375         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7376         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7377         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7378         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7379         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7380         d->port.lock.
7381
7382         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7383         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7384         when handler == SIG_ERR, not when handler != SIG_ERR.
7385
7386 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7387
7388         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7389         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7390         definitions.
7391
7392         accept4 for GNU Hurd.
7393         * include/sys/socket.h (__libc_accept4): New prototype.
7394         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7395         to implement __libc_accept4.
7396         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7397         __libc_accept4.
7398         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7399
7400         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7401         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7402         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7403         signal-defines.sym.
7404
7405 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7406
7407         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7408
7409 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7410
7411         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7412         assertion on O_CLOEXEC flag.
7413         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7414         * hurd/intern-fd.c: Likewise.
7415         * hurd/port2fd.c: Likewise.
7416
7417 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7418
7419         [BZ #3906]
7420         * bits/in.h (IPV6_PKTINFO): Define new macro.
7421         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7422
7423 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7424
7425         [BZ #13954]
7426         [BZ #13955]
7427         [BZ #13956]
7428         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7429         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7430         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7431         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7432         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7433         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7434         * math/libm-test.inc (logb_test) : Additional logb tests.
7435
7436 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7437             Andreas Jaeger  <aj@suse.de>
7438
7439         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7440         * configure: Regenerated.
7441         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7442         * config.make.in (link-obsolete-rpc): New substituted variable.
7443         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7444         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7445         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7446         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7447         so that libc.a contains the symbols.
7448         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7449         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7450         * sunrpc/auth_none.c: Likewise.
7451         * sunrpc/auth_unix.c: Likewise.
7452         * sunrpc/authdes_prot.c: Likewise.
7453         * sunrpc/authuxprot.c: Likewise.
7454         * sunrpc/clnt_gen.c: Likewise.
7455         * sunrpc/clnt_perr.c: Likewise.
7456         * sunrpc/clnt_raw.c: Likewise.
7457         * sunrpc/clnt_simp.c: Likewise.
7458         * sunrpc/clnt_tcp.c: Likewise.
7459         * sunrpc/clnt_udp.c: Likewise.
7460         * sunrpc/clnt_unix.c: Likewise.
7461         * sunrpc/des_crypt.c: Likewise.
7462         * sunrpc/des_soft.c: Likewise.
7463         * sunrpc/get_myaddr.c: Likewise.
7464         * sunrpc/key_call.c: Likewise.
7465         * sunrpc/key_prot.c: Likewise.
7466         * sunrpc/netname.c: Likewise.
7467         * sunrpc/pm_getmaps.c: Likewise.
7468         * sunrpc/pm_getport.c: Likewise.
7469         * sunrpc/pmap_clnt.c: Likewise.
7470         * sunrpc/pmap_prot.c: Likewise.
7471         * sunrpc/pmap_prot2.c: Likewise.
7472         * sunrpc/pmap_rmt.c: Likewise.
7473         * sunrpc/publickey.c: Likewise.
7474         * sunrpc/rpc_cmsg.c: Likewise.
7475         * sunrpc/rpc_common.c: Likewise.
7476         * sunrpc/rpc_dtable.c: Likewise.
7477         * sunrpc/rpc_prot.c: Likewise.
7478         * sunrpc/rpc_thread.c: Likewise.
7479         * sunrpc/rtime.c: Likewise.
7480         * sunrpc/svc.c: Likewise.
7481         * sunrpc/svc_auth.c: Likewise.
7482         * sunrpc/svc_raw.c: Likewise.
7483         * sunrpc/svc_run.c: Likewise.
7484         * sunrpc/svc_tcp.c: Likewise.
7485         * sunrpc/svc_udp.c: Likewise.
7486         * sunrpc/svc_unix.c: Likewise.
7487         * sunrpc/svcauth_des.c: Likewise.
7488         * sunrpc/xcrypt.c: Likewise.
7489         * sunrpc/xdr.c: Likewise.
7490         * sunrpc/xdr_array.c: Likewise.
7491         * sunrpc/xdr_float.c: Likewise.
7492         * sunrpc/xdr_intXX_t.c: Likewise.
7493         * sunrpc/xdr_mem.c: Likewise.
7494         * sunrpc/xdr_rec.c: Likewise.
7495         * sunrpc/xdr_ref.c: Likewise.
7496         * sunrpc/xdr_sizeof.c: Likewise.
7497         * sunrpc/xdr_stdio.c: Likewise.
7498
7499 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7500
7501         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7502         change.  Update copyright years.
7503
7504 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7505
7506         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7507
7508 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7509             Joseph Myers  <joseph@codesourcery.com>
7510             Paul Pluzhnikov  <ppluzhnikov@google.com>
7511
7512         [BZ #14012]
7513         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7514         requiring rpcgen.
7515         [cross-compiling] (extra-libs): Likewise.
7516         [cross-compiling] (extra-libs-others): Likewise.
7517         [cross-compiling] (librpcsvc-routines): Likewise.
7518         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7519         [cross-compiling] (omit-deps): Likewise.
7520         (sunrpc-CPPFLAGS): New variable.
7521         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7522         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7523         (cross-rpcgen-objs): New variable.
7524         (extra-objs): Append $(cross-rpcgen-objs).
7525         ($(cross-rpcgen-objs)): New rule.
7526         ($(objpfx)cross-rpcgen): Likewise.
7527         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7528         comment.
7529         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7530         ($(objpfx)x%.stmp): Likewise.
7531         * sunrpc/proto.h [IS_IN_build] (_): Define.
7532         [IS_IN_build] (_libc_intl_domainname): Likewise.
7533
7534 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7537         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7538         and R_X86_64_TPOFF64.
7539
7540 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7541
7542         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7543         sysdeps/unix/sysv/syscalls.list.
7544         (stime): Likewise.
7545         (utime): Likewise.
7546         * sysdeps/unix/sysv/syscalls.list: Remove file.
7547
7548 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7549
7550         [BZ #3440]
7551         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7552         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7553         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7554         (__LC_IDENTIFICATION): Make these macros useful in #if
7555         expressions, as required by C99.
7556
7557 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7558
7559         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7560         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7561         after this.
7562
7563 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7564
7565         * stdlib/longlong.h: Updated from GCC.
7566
7567 2012-05-09  Andreas Jaeger  <aj@suse.de>
7568
7569         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7570         default is first entry.
7571         (run_mode): Set type.
7572         (main): Remove informal message about syslog.
7573         (options): Fix typo.
7574
7575         [BZ #14053]
7576         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7577         to asm.
7578         (lrint): Likewise.
7579         (llrintf): Likewise.
7580         (llrint): Likewise.
7581         (rint): Likewise.
7582         (rintf): Likewise.
7583         (nearbyint): Likewise.
7584         (nearbyintf): Likewise.
7585
7586 2012-05-09  Andreas Jaeger  <aj@suse.de>
7587             Pedro Alves  <palves@redhat.com>
7588
7589         * nscd/nscd.c (run_mode): Use enum.
7590         (main): Cleanup coding style issue.
7591
7592 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7593             Andreas Jaeger  <aj@suse.de>
7594
7595         * nscd/nscd.c (go_background): Replaced with...
7596         (run_mode): ... this.
7597         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7598         (options): Add -F --foreground.
7599         (main): Implement it.
7600         (parse_opt): Parse it.
7601
7602 2012-05-09  Andreas Jaeger  <aj@suse.de>
7603
7604         [BZ #14083]
7605         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7606         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7607         -Wconversion warning.
7608         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7609         Likewise.
7610
7611 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7612
7613         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7614         == 0.
7615         (LC_ALL): Use macro-int-constant.
7616         (LC_COLLATE): Likewise.
7617         (LC_CTYPE): Likewise.
7618         (LC_MESSAGES): Likewise.
7619         (LC_MONETARY): Likewise.
7620         (LC_NUMERIC): Likewise.
7621         (LC_TIME): Likewise.
7622         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7623         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7624         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7625         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7626         Specify type.
7627         [C99-based standards] (float_t): Expect type.
7628         [C99-based standards] (double_t): Expect type.
7629         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7630         type.
7631         [C99-based standards] (HUGE_VALL): Likewise.
7632         [C99-based standards] (INFINITY): Likewise.
7633         [C99-based standards] (NAN): Likewise.
7634         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7635         [C99-based standards] (FP_NAN): Likewise.
7636         [C99-based standards] (FP_NORMAL): Likewise.
7637         [C99-based standards] (FP_SUBNORMAL): Likewise.
7638         [C99-based standards] (FP_ZERO): Likewise.
7639         [C99-based standards] (FP_FAST_FMA): Use
7640         optional-macro-int-constant.  Specify type.  Require == 1.
7641         [C99-based standards] (FP_FAST_FMAF): Likewise.
7642         [C99-based standards] (FP_FAST_FMAL): Likewise.
7643         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7644         [C99-based standards] (FP_ILOGBNAN): Likewise.
7645         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7646         Specify type.
7647         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7648         [C99-based standards] (math_errhandling): Specify type.
7649         [ISO99 || ISO11] (signgam): Do not allow.
7650         [non-C99-based standards] (copysignf): Do not allow.
7651         [non-C99-based standards] (exp2f): Likewise.
7652         [non-C99-based standards] (log2f): Likewise.
7653         [non-C99-based standards] (modff): Allow.
7654         [non-C99-based standards] (erff): Do not allow.
7655         [non-C99-based standards] (erfcf): Likewise.
7656         [non-C99-based standards] (gammaf): Likewise.
7657         [non-C99-based standards] (hypotf): Likewise.
7658         [non-C99-based standards] (j0f): Likewise.
7659         [non-C99-based standards] (j1f): Likewise.
7660         [non-C99-based standards] (jnf): Likewise.
7661         [non-C99-based standards] (lgammaf): Likewise.
7662         [non-C99-based standards] (tgammaf): Likewise.
7663         [non-C99-based standards] (y0f): Likewise.
7664         [non-C99-based standards] (y1f): Likewise.
7665         [non-C99-based standards] (ynf): Likewise.
7666         [non-C99-based standards] (isnanf): Likewise.
7667         [non-C99-based standards] (acoshf): Likewise.
7668         [non-C99-based standards] (asinhf): Likewise.
7669         [non-C99-based standards] (atanhf): Likewise.
7670         [non-C99-based standards] (cbrtf): Likewise.
7671         [non-C99-based standards] (expm1f): Likewise.
7672         [non-C99-based standards] (ilogbf): Likewise.
7673         [non-C99-based standards] (log1pf): Likewise.
7674         [non-C99-based standards] (logbf): Likewise.
7675         [non-C99-based standards] (nextafterf): Likewise.
7676         [non-C99-based standards] (remainderf): Likewise.
7677         [non-C99-based standards] (rintf): Likewise.
7678         [non-C99-based standards] (scalbf): Likewise.
7679         [non-C99-based standards] (copysignl): Likewise.
7680         [non-C99-based standards] (exp2l): Likewise.
7681         [non-C99-based standards] (log2l): Likewise.
7682         [non-C99-based standards] (modfl): Allow.
7683         [non-C99-based standards] (erfl): Do not allow.
7684         [non-C99-based standards] (erfcl): Likewise.
7685         [non-C99-based standards] (gammal): Likewise.
7686         [non-C99-based standards] (hypotl): Likewise.
7687         [non-C99-based standards] (j0l): Likewise.
7688         [non-C99-based standards] (j1l): Likewise.
7689         [non-C99-based standards] (jnl): Likewise.
7690         [non-C99-based standards] (lgammal): Likewise.
7691         [non-C99-based standards] (tgammal): Likewise.
7692         [non-C99-based standards] (y0l): Likewise.
7693         [non-C99-based standards] (y1l): Likewise.
7694         [non-C99-based standards] (ynl): Likewise.
7695         [non-C99-based standards] (isnanl): Likewise.
7696         [non-C99-based standards] (acoshl): Likewise.
7697         [non-C99-based standards] (asinhl): Likewise.
7698         [non-C99-based standards] (atanhl): Likewise.
7699         [non-C99-based standards] (cbrtl): Likewise.
7700         [non-C99-based standards] (expm1l): Likewise.
7701         [non-C99-based standards] (ilogbl): Likewise.
7702         [non-C99-based standards] (log1pl): Likewise.
7703         [non-C99-based standards] (logbl): Likewise.
7704         [non-C99-based standards] (nextafterl): Likewise.
7705         [non-C99-based standards] (remainderl): Likewise.
7706         [non-C99-based standards] (rintl): Likewise.
7707         [non-C99-based standards] (scalbl): Likewise.
7708         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7709         [non-C99-based standards] (FP_*): Do not allow.
7710         [C99-based standards] (FP_*): Change to
7711         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7712         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7713         allow.
7714         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7715         (SIG_ERR): Likewise.
7716         [X/Open-based standards] (SIG_HOLD): Likewise.
7717         (SIG_IGN): Likewise.
7718         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7719         positive value.
7720         (SIGFPE): Likewise.
7721         (SIGILL): Likewise.
7722         (SIGINT): Likewise.
7723         (SIGSEGV): Likewise.
7724         (SIGTER): Likewise.
7725         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7726         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7727         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7728         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7729         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7743         [X/Open-based standards] (SIGTRAP): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7748         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7749         allow.
7750
7751 2012-05-08  Ian Wienand  <ianw@vmware.com>
7752
7753         [BZ #14080]
7754         * time/tzset.c (__tzset_parse_tz): Update default rules for
7755         daylight time changes in the Energy Policy Act of 2005.
7756
7757 2012-05-09  Andreas Jaeger  <aj@suse.de>
7758
7759         [BZ #13983]
7760         * elf/ldconfig.c (parse_conf): Change string to make clear that
7761         ldconfig only issued a warning if ld.so.conf does not exist.
7762
7763 2012-05-08  David S. Miller  <davem@davemloft.net>
7764
7765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7766         movxtod instead of popping the value on the stack.
7767
7768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7769
7770 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7771
7772         * config.h.in: Add HAVE_ARM_PCS_VFP.
7773
7774 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7775
7776         [BZ #13979]
7777         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7778         checking but the checks are disabled for any reason.
7779
7780 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7781
7782         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7783         and ELF64_R_TYPE with ELFW(R_TYPE).
7784
7785 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7786
7787         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7788         (ulimit): Likewise.
7789
7790         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7791         (settimeofday): Likewise.
7792
7793 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7794
7795         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7796         a struct th_u2 inside the union, and move tu_block/tu_code into
7797         a new th_u3 union of tu_block/tu_code inside of that.  Move
7798         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7799         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7800         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7801         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7802         (th_stuff): Change to th_u1.tu_stuff.
7803         (th_data): Define.
7804         (th_msg): Change to th_u1.th_u2.tu_data.
7805
7806 2012-05-07  David S. Miller  <davem@davemloft.net>
7807
7808         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7809
7810         [BZ #14074]
7811         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7812         (SETUP_PIC_REG): Use it.
7813         (SETUP_PIC_REG_LEAF): Use it.
7814
7815 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7816
7817         [BZ #13885]
7818         [BZ #13923]
7819         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7820         USE_AS_EXPM1L.
7821         (EXPL_FINITE): Likewise.
7822         (FLDLOG): Likewise.
7823         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7824         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7825         e_expl.S.
7826         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7827         USE_AS_EXPM1L.
7828         (EXPL_FINITE): Likewise.
7829         (FLDLOG): Likewise.
7830         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7831         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7832         e_expl.S.
7833         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7834         test of -max_value argument for long double.
7835         * sysdeps/i386/fpu/libm-test-ulps: Update.
7836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7837
7838 2012-05-06  David S. Miller  <davem@davemloft.net>
7839
7840         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7841         quad soft-float symbols whose references which are compiler
7842         generated.
7843         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7844
7845 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7846
7847         [BZ #13884]
7848         [BZ #13914]
7849         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7850         USE_AS_EXP10L.
7851         (EXPL_FINITE): Likewise.
7852         (FLDLOG): Likewise.
7853         (c0): Likewise.
7854         (c1): Likewise.
7855         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7856         Adjust comments for base varying.
7857         (__expl_finite): Change alias to EXPL_FINITE.
7858         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7859         e_expl.S.
7860         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7861         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7862         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7863         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7864         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7865         USE_AS_EXP10L.
7866         (EXPL_FINITE): Likewise.
7867         (FLDLOG): Likewise.
7868         (c0): Likewise.
7869         (c1): Likewise.
7870         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7871         Adjust comments for base varying.
7872         (__expl_finite): Change alias to EXPL_FINITE.
7873         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7874         tests for bugs.
7875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7876
7877         [BZ #14064]
7878         * math/libm-test.inc (check_float_internal): Correct ulp
7879         calculation for subnormal expected results.
7880
7881 2012-05-06  Andreas Jaeger  <aj@suse.de>
7882
7883         * Makeconfig (+math-flags): New, set to -frounding-math.
7884         (+cflags): Add +math-flags so that all of glibc gets compiled with
7885         it.
7886
7887         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7888
7889 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7890
7891         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7892         Disable one test.
7893
7894         [BZ #13787]
7895         [BZ #13922]
7896         [BZ #14036]
7897         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7898         (__ieee754_expl): Allow for and saturate large arguments.
7899         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7900         (u_threshold): Likewise.
7901         (__exp): Call __ieee754_exp before checking for overflow and
7902         underflow.
7903         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7904         (u_threshold): Likewise.
7905         (__expf): Call __ieee754_expf before checking for overflow and
7906         underflow.
7907         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7908         (u_threshold): Likewise.
7909         (__expl): Call __ieee754_expl before checking for overflow and
7910         underflow.
7911         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7912         (__ieee754_expl): Allow for and saturate large arguments.
7913         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7914         missing overflow exception on overflow.
7915         (expm1_test): Do not allow missing overflow exception on overflow.
7916
7917         * sysdeps/i386/fpu/e_expl.c: Move to ...
7918         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7919         rather than using inline asm.
7920         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7921         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7922         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7923
7924         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7925         (nice): Likewise.
7926         (poll): Likewise.
7927         (signal): Likewise.
7928         (time): Likewise.
7929         (times): Likewise.
7930
7931 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7932
7933         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7934         sysdeps/unix/common/syscalls.list.
7935         (fchmod): Likewise.
7936         (fchown): Likewise.
7937         (ftruncate): Likewise.
7938         (getrusage): Likewise.
7939         (gettimeofday): Likewise.
7940         (setpgid): Likewise.
7941         (setregid): Likewise.
7942         (setreuid): Likewise.
7943         (sigaction): Likewise.
7944         (truncate): Likewise.
7945         (vhangup): Likewise.
7946         * sysdeps/unix/common/syscalls.list: Remove file.
7947         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7948         * sysdeps/unix/sysv/linux/Implies: Likewise.
7949
7950 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7951
7952         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7954         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7955         Moved to ...
7956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7957         Here.
7958         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7959         to ...
7960         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7961         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7962         to ...
7963         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7964         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7965         to ...
7966         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7967         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7968         to ...
7969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7970         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7971         to ...
7972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7973         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7974         to ...
7975         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7976         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7977         to ...
7978         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7979         Here.
7980         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7981         to ...
7982         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7983         Here.
7984         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7985         to ...
7986         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7987         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7988         Moved to ...
7989         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7990         Here.
7991         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7992         to ...
7993         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7994
7995 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7996
7997         * sysdeps/unix/common/bits/dirent.h: Remove file.
7998         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7999
8000         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8001         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8002         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8003         * sysdeps/unix/bsd/isatty.c: Likewise.
8004         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8005         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8006         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8007
8008 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8009
8010         [BZ #13563]
8011         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8012         long double comparison inaccuracies.
8013         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8014         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8015
8016 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8017
8018         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8019         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8020
8021 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8022
8023         [BZ #14049]
8024         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8025         nonzero digits before rounding a hex value.
8026         * stdlib/tst-strtod.c (tests): Add another test.
8027
8028 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8029
8030         * sysdeps/s390/fpu/libm-test-ulps: Update.
8031
8032 2012-05-03  Andreas Jaeger  <aj@suse.de>
8033
8034         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8035         does not get optimized out.
8036         (malloc_opt_barrier): New.
8037
8038 2012-05-03  Andreas Jaeger  <aj@suse.de>
8039             Roland McGrath  <roland@hack.frob.com>
8040
8041         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8042         intermediate file deletion.
8043         (generated): Add .symlist files.
8044
8045 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8046
8047         [BZ #13775]
8048         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8049         Redirect under this condition.
8050         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8051         [__USE_GNU] (__dprintf_chk): Not under this condition.
8052         [__USE_GNU] (__vdprintf_chk): Likewise.
8053         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8054         under this condition.
8055         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8056         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8057         [__USE_XOPEN2K8] (vdprintf): Likewise.
8058         [__USE_GNU] (__dprintf_chk): Not under this condition.
8059         [__USE_GNU] (__vdprintf_chk): Likewise.
8060         [__USE_GNU] (dprintf): Likewise.
8061         [__USE_GNU] (vdprintf): Likewise.
8062
8063 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8064
8065         * elf/Makefile (common-generated): Set this instead of generated for
8066         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8067         $(all-built-dso)-derived lists.
8068
8069 2012-05-03  Andreas Jaeger  <aj@suse.de>
8070
8071         * sysdeps/i386/fpu/libm-test-ulps: Update.
8072
8073         * FAQ: Removed.
8074         * FAQ.in: Likewise.
8075         * scripts/gen-FAQ.pl: Likewise.
8076         * manual/install.texi (Installation): Point to online location of
8077         FAQ.
8078         * Makefile (files-for-dist): Remove FAQ.
8079         (FAQ): Remove.
8080
8081 2012-05-02  Allan McRae  <allan@archlinux.org>
8082
8083         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8084         (LDFLAGS-reldepmod5.so): Likewise.
8085         (LDFLAGS-reldep6mod1.so): Likewise.
8086         (LDFLAGS-reldep6mod4.so): Likewise.
8087         (LDFLAGS-reldep8mod3.so): Likewise.
8088         (LDFLAGS-unload4mod1.so): Likewise.
8089         (LDFLAGS-unload4mod2.so): Likewise.
8090         (LDFLAGS-tst-initorder): Likewise.
8091         (LDFLAGS-tst-initordera2.so): Likewise.
8092         (LDFLAGS-tst-initordera3.so): Likewise.
8093         (LDFLAGS-tst-initordera4.so): Likewise.
8094         (LDFLAGS-tst-initorderb2.so): Likewise.
8095         (LDFLAGS-noload): Likewise.
8096         (LDFLAGS-next): Likewise.
8097         (LDFLAGS-order2mod1.so): Likewise.
8098         (LDFLAGS-order2mod2.so): Likewise.
8099         (LDFLAGS-tst-initorder2): Likewise.
8100         (LDFLAGS-tst-initorder2a.so): Likewise.
8101         (LDFLAGS-tst-initorder2b.so): Likewise.
8102         (LDFLAGS-tst-initorder2c.so): Likewise.
8103         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8104
8105 2012-05-02  David S. Miller  <davem@davemloft.net>
8106
8107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8108
8109 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8110
8111         [BZ #14055]
8112         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8113
8114 2012-05-02  Andreas Jaeger  <aj@suse.de>
8115
8116         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8117         since we manipulate rounding mode.
8118         (CPPFLAGS-test-idouble.c): Likewise.
8119         (CPPFLAGS-test-ifloat.c): Likewise.
8120         (CFLAGS-test-ldouble.c): Likewise.
8121         (CFLAGS-test-double.c): Likewise.
8122         (CFLAGS-test-float.c): Likewise.
8123         (CFLAGS-test-misc.c): Likewise.
8124         (CFLAGS-test-test-fenv.c): Likewise.
8125
8126 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8127
8128         [BZ #2550]
8129         [BZ #2570]
8130         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8131         comparisons to determine direction to adjust input.
8132
8133 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8134
8135         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8136         output to the target.
8137
8138         * scripts/localplt.awk: New file.
8139         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8140         (check-localplt-CFLAGS): Variable removed.
8141         ($(all-built-dso:=.jmprel)): New static pattern rule.
8142         (generated): Add those targets.
8143         (localplt-built-dso): New variable.
8144         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8145
8146         * elf/check-localplt.c: File removed.
8147
8148         * scripts/check-execstack.awk: New file.
8149         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8150         (check-execstack-CFLAGS): Variable removed.
8151         ($(objpfx)check-execstack.h): Target removed.
8152         ($(objpfx)execstack-default): New target.
8153         (generated): Add that instead of check-execstack.h.
8154         ($(all-built-dso:=.phdr)): New static pattern rule.
8155         (generated): Add those targets.
8156         * elf/check-execstack.c: File removed.
8157
8158         * scripts/check-textrel.awk: New file.
8159         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8160         (check-textrel-CFLAGS): Variable removed.
8161         (all-built-dso): Use := to define.o
8162         ($(all-built-dso:=.dyn)): New static pattern rule.
8163         (generated): Add those targets.
8164         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8165         * config.make.in (READELF): New substituted variable.
8166         * elf/check-textrel.c: File removed.
8167
8168 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8169
8170         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8171         allow.
8172         * conform/data/ctype.h-data [C99-based standards] (isblank):
8173         Expect function.
8174         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8175         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8176         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8177         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8178         Specify type.  Require positive value.
8179         (EILSEQ): Likewise.
8180         (ERANGE): Likewise.
8181         [ISO || POSIX] (EILSEQ): Do not expect.
8182         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8183         Specify type.  Require positive value.
8184         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8209         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8210         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8223         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8224         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8225         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8226         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8227         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8228         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8229         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8230         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8231         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8232         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8233         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8234         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8235         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8236         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8237         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8238         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8239         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8240         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8241         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8242         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8243         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8244         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8245         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8246         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8247         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8248         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8249         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8250         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8251         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8252         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8253         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8254         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8255         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8256         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8257         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8258         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8259         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8260         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8261         Require >= 2.
8262         (FLT_ROUNDS): Expect as macro, not constant.
8263         (FLT_MANT_DIG): Use macro-int-constant.
8264         (DBL_MANT_DIG): Likewise.
8265         (LDBL_MANT_DIG): Likewise.
8266         (FLT_DIG): Likewise.
8267         (DBL_DIG): Likewise.
8268         (LDBL_DIG): Likewise.
8269         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8270         (DBL_MIN_EXP): Likewise.
8271         (LDBL_MIN_EXP): Likewise.
8272         (FLT_MAX_EXP): Use macro-int-constant.
8273         (DBL_MAX_EXP): Likewise.
8274         (LDBL_MAX_EXP): Likewise.
8275         (FLT_MAX_10_EXP): Likewise.
8276         (DBL_MAX_10_EXP): Likewise.
8277         (LDBL_MAX_10_EXP): Likewise.
8278         (FLT_MAX): Use macro-constant.
8279         (DBL_MAX): Likewise.
8280         (LDBL_MAX): Likewise.
8281         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8282         (DBL_EPSILON): Likewise.
8283         (LDBL_EPSILON): Likewise.
8284         (FLT_MIN): Likewise.
8285         (DBL_MIN): Likewise.
8286         (LDBL_MIN): Likewise.
8287         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8288         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8289         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8290         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8291         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8292         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8293         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8294         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8295         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8296         [ISO11] (FLT_TRUE_MIN): Likewise.
8297         [ISO11] (LDBL_TRUE_MIN): Likewise.
8298         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8299         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8300         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8301         (SCHAR_MAX): Likewise.
8302         (UCHAR_MAX): Likewise.
8303         (CHAR_MIN): Likewise.
8304         (CHAR_MAX): Likewise.
8305         (MB_LEN_MAX): Use macro-int-constant.
8306         (SHRT_MIN): Use macro-int-constant.  Specify type.
8307         (SHRT_MAX): Likewise.
8308         (USHRT_MAX): Likewise.
8309         (INT_MAX): Likewise.
8310         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8311         bound negative.
8312         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8313         bound with "U".
8314         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8315         bound with "L".
8316         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8317         bound negative.  Suffix upper bound with "L".
8318         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8319         bound with "UL".
8320         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8321         Specify type.
8322         [C99-based standards] (LLONG_MAX): Likewise.
8323         [C99-based standards] (ULLONG_MAX): Likewise.
8324         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8325         == 0.
8326         [ISO11] (max_align_t): Require type.
8327         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8328
8329         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8330         from $CFLAGS, without defining away __attribute__ calls.
8331         (checknamespace): Use $CFLAGS_namespace.
8332
8333         * conform/conformtest.pl (@keywords): Only include C99 keywords
8334         for standards based on C99 or C11.
8335
8336         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8337         Disable tests.
8338         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8339         UNIX98]: Likewise.
8340
8341         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8342         usability of symbols in #if.
8343
8344         * conform/conformtest.pl: If macro or constant types start
8345         "promoted:", expect the symbol to be of the following type
8346         promoted by the integer promotions.
8347
8348         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8349         in one place.  Also handle "macro-constant".
8350
8351         * conform/conformtest.pl: Only accept expected macro values with
8352         "==".  Parse all "macro" lines in one place.
8353         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8354
8355         * conform/conformtest.pl: Handle braced types on "constant" lines
8356         instead of handling "typed-constant".
8357         * conform/data/signal.h-data: Use "constant" instead of
8358         "typed-constant".
8359
8360         * conform/conformtest.pl: Handle "optional-" at start of lines in
8361         one place rather than duplicating several cases.  Handle each
8362         format of "macro" line with initial "optional-".
8363
8364         * conform/conformtest.pl: Only accept expected constant or
8365         optional-constant values with "==".  Parse all "constant" lines in
8366         one place.  Parse all "optional-constant" lines in one place.
8367         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8368         * conform/data/fmtmsg.h-data: Likewise.
8369         * conform/data/netinet/in.h-data: Likewise.
8370         * conform/data/tar.h-data: Likewise.
8371         * conform/data/limits.h-data: Use "==" form on "constant" and
8372         "optional-constant" lines.
8373
8374         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8375         Use -std=c99 for XOPEN2K.
8376         (@knownproblems): Remove.
8377         (newtoken): Don't check %isknown.
8378
8379         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8380         Do not expect macro.
8381         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8393         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8394         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8411         [XPG3] (acosh): Likewise.
8412         [XPG3] (asinh): Likewise.
8413         [XPG3] (atanh): Likewise.
8414         [XPG3] (cbrt): Likewise.
8415         [XPG3] (expm1): Likewise.
8416         [XPG3] (ilogb): Likewise.
8417         [XPG3] (log1p): Likewise.
8418         [XPG3] (logb): Likewise.
8419         [XPG3] (nextafter): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8422         [XPG3] (remainder): Likewise.
8423         [XPG3] (rint): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8431         [UNIX98 || XOPEN2K] (scalb): Expect.
8432         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8433         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8569
8570         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8571         _XOPEN_SOURCE_EXTENDED for XPG4.
8572
8573         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8574
8575         * Makeconfig (localtime): Remove variable.
8576         (inst_localtime-file): Likewise.
8577
8578 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8579
8580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8581         Update.
8582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8583         Update.
8584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8585         Update.
8586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8587         Update.
8588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8589         Update.
8590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8591         Update.
8592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8593         Update.
8594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8595         Update.
8596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8597         Update.
8598
8599 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8600
8601         [BZ #2550]
8602         [BZ #2570]
8603         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8604         comparisons to determine direction to adjust input.
8605         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8606         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8607         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8608         Likewise.
8609         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8610         Likewise.
8611         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8612         Likewise.
8613         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8614         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8615         Likewise.
8616         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8617         Likewise.
8618         * math/libm-test.inc (nexttoward_test): Add more tests.
8619
8620 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8621
8622         [BZ #14040]
8623         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8624         in version GLIBC_2.1, not GLIBC_2.0.
8625         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8626         Likewise.
8627
8628 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8629
8630         [BZ #13942]
8631         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8632         (1 - x) * (1 + x).
8633         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8634         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8635         * math/libm-test.inc (acos_test): Add more tests.
8636         (asin_test): Likewise.
8637         * sysdeps/i386/fpu/libm-test-ulps: Update.
8638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8639
8640         [BZ #14034]
8641         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8642         of square root.
8643         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8644         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8645         * math/libm-test.inc (acos_test_tonearest): New function.
8646         (acos_test_towardzero): Likewise.
8647         (acos_test_downward): Likewise.
8648         (acos_test_upward): Likewise.
8649         (asin_test_tonearest): Likewise.
8650         (asin_test_towardzero): Likewise.
8651         (asin_test_downward): Likewise.
8652         (asin_test_upward): Likewise.
8653         (main): Call the new functions.
8654         * sysdeps/i386/fpu/libm-test-ulps: Update.
8655         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8656
8657         [BZ #13884]
8658         [BZ #13924]
8659         * math/e_exp10.c: Include <float.h>.
8660         (__ieee754_exp10): Handle underflow here rather than multiplying
8661         large negative argument by M_LN10.
8662         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8663         of __ieee754_expf.
8664         * math/e_exp10l.c: Include <float.h>.
8665         (__ieee754_exp10l): Handle underflow here rather than multiplying
8666         large negative argument by M_LN10l.
8667         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8668         spurious overflow exception on underflow.
8669
8670 2012-04-29  Marek Polacek  <polacek@redhat.com>
8671
8672         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8673         (__fortify_function): New macro.
8674         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8675         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8676         __extern_always_inline.
8677         * libio/bits/stdio2.h: Likewise.
8678         * libio/bits/stdio.h: Likewise.
8679         * string/string.h: Likewise.
8680         * string/bits/string3.h: Likewise.
8681         * include/stdio.h: Likewise.
8682         * stdlib/bits/stdlib.h: Likewise.
8683         * stdlib/stdlib.h: Likewise.
8684         * rt/bits/mqueue2.h: Likewise.
8685         * rt/mqueue.h: Likewise.
8686         * posix/bits/unistd.h: Likewise.
8687         * posix/unistd.h: Likewise.
8688         * io/bits/poll2.h: Likewise.
8689         * io/bits/fcntl2.h: Likewise.
8690         * io/fcntl.h: Likewise.
8691         * io/sys/poll.h: Likewise.
8692         * misc/bits/syslog.h: Likewise.
8693         * misc/bits/syslog-ldbl.h: Likewise.
8694         * misc/sys/syslog.h: Likewise.
8695         * socket/bits/socket2.h: Likewise.
8696         * socket/sys/socket.h: Likewise.
8697         * debug/tst-chk1.c: Likewise.
8698         * wcsmbs/bits/wchar2.h: Likewise.
8699         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8700         * wcsmbs/wchar.h: Likewise.
8701
8702 2012-04-29  Andreas Jaeger  <aj@suse.de>
8703
8704         * Makerules (tests): Remove enable-check-abi protection.
8705         (check-abi-warn): Remove.
8706         (check-abi-%): Remove check-abi-warn usage.
8707
8708         * configure.in: Remove check-abi configure option.
8709         * configure: Regenerated.
8710         * config.make.in (enable-check-abi): Remove.
8711
8712 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8713
8714         [BZ #14033]
8715         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8716         double functions to double *_finite functions.
8717
8718         [BZ #13941]
8719         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8720         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8721         LDBL_MIN_EXP.
8722         * stdio-common/Makefile (tests): Add tst-sprintf3.
8723         * stdio-common/tst-sprintf3.c: New file.
8724
8725         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8726         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8727
8728 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8729
8730         * conform/conformtest.pl: Remove duplicate typed-constant
8731         handling.
8732
8733 2012-04-28  David S. Miller  <davem@davemloft.net>
8734
8735         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8736         (check-abi-%): Remove AWK script prerequisite and explicit
8737         abilist directory.
8738         (check-abi): Rewrite to just diff the symlist with the abilist.
8739         (config-tls, config-abi-config): Delete, no longer used.
8740         (update-abi-%): Remove AWK script and explicit abilist directory.
8741         (update-abi): Rewrite to simply compare and conditionally copy the
8742         symlist and the sysdep abilist file.  Remove update-abi-config
8743         checks.
8744         * abilist/ld.abilist: Remove.
8745         * abilist/libBrokenLocale.abilist: Remove.
8746         * abilist/libanl.abilist: Remove.
8747         * abilist/libcrypt.abilist: Remove.
8748         * abilist/libdl.abilist: Remove.
8749         * abilist/librt.abilist: Remove.
8750         * abilist/libthread_db.abilist: Remove.
8751         * abilist/libutil.abilist: Remove.
8752         * scripts/extract-abilist.awk: Remove.
8753         * scripts/merge-abilist.awk: Remove.
8754         * sysdeps/generic/libcidn.abilist: New file.
8755         * sysdeps/generic/libnss_compat.abilist: New file.
8756         * sysdeps/generic/libnss_db.abilist: New file.
8757         * sysdeps/generic/libnss_dns.abilist: New file.
8758         * sysdeps/generic/libnss_files.abilist: New file.
8759         * sysdeps/generic/libnss_hesiod.abilist: New file.
8760         * sysdeps/generic/libnss_nis.abilist: New file.
8761         * sysdeps/generic/libnss_nisplus.abilist: New file.
8762         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8763         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8764         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8765         file.
8766         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8767         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8768         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8769         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8770         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8771         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8772         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8773         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8774         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8775         file.
8776         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8777         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8778         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8779         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8780         file.
8781         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8782         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8783         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8784         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8785         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8786         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8787         file.
8788         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8789         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8790         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8791         file.
8792         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8793         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8794         New file.
8795         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8796         New file.
8797         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8798         New file.
8799         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8800         New file.
8801         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8802         New file.
8803         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8804         New file.
8805         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8806         New file.
8807         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8808         New file.
8809         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8810         New file.
8811         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8812         New file.
8813         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8814         New file.
8815         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8816         New file.
8817         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8818         New file.
8819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8820         file.
8821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8822         New file.
8823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8824         New file.
8825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8826         file.
8827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8828         New file.
8829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8830         New file.
8831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8832         file.
8833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8834         New file.
8835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8836         New file.
8837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8838         New file.
8839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8840         New file.
8841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8842         New file.
8843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8844         New file.
8845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8847         file.
8848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8849         New file.
8850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8851         file.
8852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8853         file.
8854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8855         file.
8856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8857         file.
8858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8861         New file.
8862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8863         file.
8864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8865         file.
8866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8867         New file.
8868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8869         file.
8870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8871         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8872         file.
8873         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8874         New file.
8875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8876         file.
8877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8878         file.
8879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8880         file.
8881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8884         file.
8885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8886         New file.
8887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8888         file.
8889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8890         file.
8891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8892         New file.
8893         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8896         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8897         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8898         file.
8899         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8900         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8901         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8902         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8903         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8904         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8905         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8906         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8907         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8908         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8911         file.
8912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8913         New file.
8914         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8915         file.
8916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8917         file.
8918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8919         file.
8920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8921         file.
8922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8923         file.
8924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8925         New file.
8926         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8927         New file.
8928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8929         file.
8930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8931         New file.
8932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8933         file.
8934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8936         file.
8937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8938         New file.
8939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8940         file.
8941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8942         file.
8943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8944         file.
8945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8946         file.
8947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8948         file.
8949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8950         New file.
8951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8952         New file.
8953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8954         file.
8955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8956         New file.
8957         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8958         file.
8959
8960 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8961
8962         * conform/conformtest.pl: Fix typo in handling typed-constant from
8963         allow-header.
8964
8965 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8966
8967         * README: Cut down references to pre-2.6 Linux kernels and
8968         Linuxthreads.  Update lists of configurations in libc and ports
8969         and sort alphabetically.  Say "or newer" with Linux kernel version
8970         requirements.
8971
8972         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8973
8974 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8975
8976         [BZ #887]
8977         * math/libm-test.inc (logb_test_downward): New test to expose
8978         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8979         rounding mode.
8980
8981 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8982
8983         [BZ #14027]
8984         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8985         to be done.
8986         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8987         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8988
8989 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8990
8991         * sysdeps/unix/i386/brk.S: Remove file.
8992         * sysdeps/unix/i386/dl-brk.S: Likewise.
8993         * sysdeps/unix/i386/pipe.S: Likewise.
8994         * sysdeps/unix/i386/sigreturn.S: Likewise.
8995         * sysdeps/unix/i386/syscall.S: Likewise.
8996         * sysdeps/unix/i386/vfork.S: Likewise.
8997         * sysdeps/unix/i386/wait.S: Likewise.
8998
8999         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9000         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9001
9002         * configure.in (arm*-none*): Do not allow without
9003         --enable-hacker-mode.
9004         (netbsd*): Remove case setting base_os.
9005         (386bsd*): Likewise.
9006         (freebsd*): Likewise.
9007         (bsdi*): Likewise.
9008         (osf*): Likewise.
9009         (sunos*): Likewise.
9010         (ultrix*): Likewise.
9011         (newsos*): Likewise.
9012         (dynix*): Likewise.
9013         (*bsd*): Likewise.
9014         (sysv*): Likewise.
9015         (isc*): Likewise.
9016         (esix*): Likewise.
9017         (sco*): Likewise.
9018         (minix*): Likewise.
9019         (irix4*): Likewise.
9020         (irix6*): Likewise.
9021         (solaris[2-9]*): Likewise.
9022         (none): Likewise.
9023         * configure: Regenerated.
9024
9025 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9026
9027         [BZ #11521]
9028         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9029         overflow or cancellation in calculating denominator.
9030         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9031         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9032         down expression to avoid unexpected rounding in newer GCCs.
9033         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9034
9035 2012-04-26  David S. Miller  <davem@davemloft.net>
9036
9037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9038         long-double compat symbols.
9039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9052
9053 2012-04-25  David S. Miller  <davem@davemloft.net>
9054
9055         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9056         HWCAP_* values only after the memory barriers have been defined.
9057         (atomic_full_barrier): Define.
9058         (atomic_read_barrier): Define.
9059         (atomic_write_barrier): Define.
9060
9061 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9062
9063         * shlib-versions: Add libgcc_s version information.
9064         * sysdeps/generic/libgcc_s.h: Remove.
9065         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9066         libgcc_s.h.
9067         * sysdeps/gnu/unwind-resume.c: Likewise.
9068         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9069
9070 2012-04-25  David S. Miller  <davem@davemloft.net>
9071
9072         * sysdeps/unix/sparc/brk.S: Delete.
9073         * sysdeps/unix/sparc/dl-brk.S: Delete.
9074         * sysdeps/unix/sparc/pipe.S: Delete.
9075         * sysdeps/unix/sparc/sysdep.S: Delete.
9076         * sysdeps/unix/sparc/sysdep.h: Delete.
9077         * sysdeps/unix/sparc/vfork.S: Delete.
9078         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9079         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9080         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9081         ret_ERRVAL, r0, r1, MOVE): Define.
9082         (JUMPTARGET): Remove.
9083         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9084         sysdeps/unix/sparc/sysdep.h
9085         (ENTRY, END): Remove.
9086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9087
9088 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9089
9090         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9091         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9092         -DIS_IN_build.
9093
9094         * timezone/README: Update upstream location and email address for
9095         tzcode and tzdata.
9096         * timezone/zdump.c: Update from tzcode 2012b.
9097         * timezone/zic.c: Likewise.
9098
9099         * configure.in (libc_cv_as_needed): Remove test.
9100         * configure: Regenerated.
9101         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9102         conditional definition.
9103         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9104         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9105         * config.make.in (have-as-needed): Remove variable.
9106
9107 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9108             Paul Pluzhnikov  <ppluzhnikov@google.com>
9109
9110         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9111         strings correctly.
9112
9113 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9114
9115         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9116         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9117         * sysdeps/sh/strlen.S: Likewise.
9118
9119 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9120
9121         * sysdeps/unix/fork.S: Remove file.
9122         * sysdeps/unix/i386/fork.S: Likewise.
9123         * sysdeps/unix/sparc/fork.S: Likewise.
9124
9125         * sysdeps/unix/system.c: Remove file.
9126         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9127
9128         * sysdeps/unix/getegid.S: Remove file.
9129         * sysdeps/unix/geteuid.S: Likewise.
9130
9131 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9132
9133         * scripts/check-localplt.awk: New file.
9134         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9135         of diff.
9136         * scripts/data/localplt-generic.data: Add a comment.
9137
9138         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9139         NODE when __dir_mkfile failed.
9140         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9141         Reported by Ludovic Courtès <ludo@gnu.org>.
9142
9143 2012-04-24  Andreas Jaeger  <aj@suse.de>
9144
9145         * Makerules (common-clean): Also remove gen-as-const-headers
9146         files.
9147
9148 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9149
9150         * Makerules (native-compile): Do not change working directory for
9151         build.  Use $(OUTPUT_OPTION) in command.
9152         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9153
9154 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9155
9156         [BZ #13886]
9157         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9158         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9159         * math/libm-test.inc (floor_test): Add more tests.
9160         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9161
9162 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9163
9164         * sysdeps/unix/getdents.c: Remove file.
9165         * sysdeps/unix/sysv/getdents.c: Likewise.
9166         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9167
9168         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9169         sysdeps/unix/mman/syscalls.list.
9170         (mmap): Likewise.
9171         (mprotect): Likewise.
9172         (msync): Likewise.
9173         (munmap): Likewise.
9174         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9175         * sysdeps/unix/mman/syscalls.list: Remove.
9176         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9177
9178         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9179         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9180         * configure: Regenerated.
9181         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9182         $(libgcc_s_suffix).
9183         * config.make.in (libgcc_s_suffix): Remove variable.
9184
9185 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * sysdeps/unix/sysv/gethostname.c: Move to ...
9188         * sysdeps/posix/gethostname.c: ... here.
9189
9190         * sysdeps/unix/execve.S: Remove file.
9191
9192         * sysdeps/unix/_exit.S: Remove file.
9193
9194 2012-04-23  Andreas Jaeger  <aj@suse.de>
9195
9196         [BZ #13739]
9197         * manual/Makefile: Remove make dist support, there's no
9198         need for a stand-alone documentation tar ball.
9199         (TEXI2DVI): Define always, it's not in Makeconfig.
9200         (dist): Removed.
9201         (tar-it): Removed.
9202         (edition): Removed.
9203         (glibc-doc-$(edition).tar): Removed
9204         (%.Z): Removed.
9205         (%.gz): Removed.
9206         (%.uu): Removed.
9207         (ETAGS): Remove, it's in Makeconfig.
9208         (move-if-change): Remove, it's in Makeconfig.
9209
9210 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         [BZ #13970]
9213         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9214         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9215         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9216         (strtod_l, strtof_l, strtold_l): Remove __wur.
9217         It is not necessarily an error to ignore strtol's return value.
9218         One can reliably look at the stored endptr to decide whether
9219         the number had valid syntax.
9220
9221 2012-04-21  Andreas Jaeger  <aj@suse.de>
9222
9223         [BZ #13739]
9224         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9225
9226 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9227
9228         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9229         * sysdeps/unix/sysv/Versions: Remove file.
9230
9231 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9232
9233         [BZ #13927]
9234         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9235
9236 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9237
9238         [BZ #7064]
9239         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9240         version from __vm86.
9241
9242 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9243
9244         * sysdeps/unix/common/lxstat.c: Remove file.
9245         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9246
9247         * sysdeps/unix/sysv/Makefile: Remove file.
9248
9249         * sysdeps/unix/sysv/direct.h: Remove file.
9250
9251         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9252         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9253         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9254         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9255         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9256         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9257         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9258
9259         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9260
9261         * sysdeps/unix/xmknod.c: Remove file.
9262         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9263
9264         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9265
9266         * sysdeps/unix/sysv/i386/time.S: Remove file.
9267
9268         * sysdeps/unix/fxstat.c: Remove file.
9269         * sysdeps/unix/xstat.c: Likewise.
9270         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9271
9272         * sysdeps/unix/sysv/sigaction.c: Remove file.
9273
9274         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9275         (sysdep_headers): Remove variable.
9276         [termio.h not in sysdep_headers] (generated): Likewise.
9277         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9278         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9279         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9280         * sysdeps/unix/sysv/tcflow.c: Likewise.
9281         * sysdeps/unix/sysv/tcflush.c: Likewise.
9282         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9283         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9284         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9285         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9286         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9287
9288         * sysdeps/unix/siglist.c: Remove file.
9289
9290         * sysdeps/unix/getppid.S: Remove file.
9291
9292         * sysdeps/unix/mkdir.c: Remove file.
9293         * sysdeps/unix/rmdir.c: Likewise.
9294
9295 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9296
9297         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9298         ERR_MAX value.
9299         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9300         errlist-compat value.
9301
9302 2012-04-18  David S. Miller  <davem@davemloft.net>
9303
9304         * sysdeps/generic/memcopy.h (reg_char): Delete.
9305         * debug/strcat_chk.c: Use char, not reg_char.
9306         * debug/strcpy_chk.c: Likewise.
9307         * debug/strncat_chk.c: Likewise.
9308         * debug/strncpy_chk.c: Likewise.
9309         * string/memchr.c: Likewise.
9310         * string/memrchr.c: Likewise.
9311         * string/rawmemchr.c: Likewise.
9312         * string/strcat.c: Likewise.
9313         * string/strchr.c: Likewise.
9314         * string/strchrnul.c: Likewise.
9315         * string/strcmp.c: Likewise.
9316         * string/strcpy.c: Likewise.
9317         * string/strncat.c: Likewise.
9318         * string/strncmp.c: Likewise.
9319         * string/strncpy.c: Likewise.
9320
9321 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9322
9323         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9324         __builtin_memcopy is called when src and dest ranges are known to not
9325         overlap.
9326
9327 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9328
9329         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9330         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9331         fwd_align_merge macro call.
9332         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9333         bwd_align_merge macro call.
9334         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9335
9336 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9337
9338         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9339         bwd_align_merge macros.
9340         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9341         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9342         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9343
9344 2012-04-18  David S. Miller  <davem@davemloft.net>
9345
9346         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9347
9348 2012-04-18  Andreas Jaeger  <aj@suse.de>
9349
9350         [BZ# 6794]
9351         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9352         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9353         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9354
9355         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9356         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9357         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9358
9359         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9360         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9361         Adjust for changed ldbl-128 files.
9362
9363         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9364         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9365         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9366
9367 2012-04-17  David S. Miller  <davem@davemloft.net>
9368
9369         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9370
9371 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9372
9373         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9374         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9375         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9376         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9377         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9378         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9379
9380 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9381
9382         [BZ #6794]
9383         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9384         * math/libm-test.inc: Add ilogb errno and exception tests.
9385         * math/w_ilogb.c: New file: ilogb wrapper.
9386         * math/w_ilogbf.c: New file: ilogbf wrapper.
9387         * math/w_ilogbl.c: New file: ilogbl wrapper.
9388         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9389         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9390         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9391         exception being thrown with 0.0 as argument.
9392         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9393         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9394         exception being thrown with 0.0 as argument.
9395         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9396         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9397         exception being thrown with 0.0 as argument.
9398         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9399         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9400         exception being thrown with 0.0 as argument.
9401         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9402         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9403         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9404         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9405         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9406         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9407         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9408         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9409         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9410
9411 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9412
9413         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9414         with altivec.
9415
9416 2012-04-16  Marek Polacek  <polacek@redhat.com>
9417
9418         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9419
9420 2012-04-16  Marek Polacek  <polacek@redhat.com>
9421
9422         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9423         operands of fdivp instruction.
9424
9425 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9426
9427         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9428         * elf/tst-auditmod3b.c: Likewise.
9429         * elf/tst-auditmod4b.c: Likewise.
9430         * elf/tst-auditmod5b.c: Likewise.
9431         * elf/tst-auditmod6b.c: Likewise.
9432         * elf/tst-auditmod6c.c: Likewise.
9433         * elf/tst-auditmod7b.c: Likewise.
9434         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9435         * sysdeps/x86_64/preconfigure.in: Likewise.
9436         * sysdeps/x86_64/preconfigure: Regenerated.
9437
9438 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9439
9440         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9441         __ILP32__.
9442
9443 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9444
9445         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9446         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9447
9448 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9449
9450         [BZ #13973]
9451         * locale/iso-639.def: Fix gl language name. Spotted by
9452         Yaron Shahrabani.
9453
9454 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9455
9456         [BZ #2074]
9457         * libio/libio.h (__io_write_fn): Update comment.
9458
9459 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9460
9461         [BZ #2074]
9462         * stdio.texi (Hook Functions): The user provided writer function
9463         is not allowed to return -1.
9464
9465 2012-04-11  David S. Miller  <davem@davemloft.net>
9466
9467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9468
9469 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9470
9471         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9472         Add a leading slash to rtkaio.
9473
9474 2012-04-11  Jim Meyering  <meyering@redhat.com>
9475
9476         [BZ #11959]
9477         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9478         It is not necessarily an error to ignore fwrite's return
9479         value.  One can reliably use ferror to test for errors after
9480         the fact.
9481
9482 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9483
9484         * bits/types.h (__snseconds_t): New type.
9485         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9486
9487         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9488         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9489         (__SNSECONDS_T_TYPE): Likewise.
9490         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9491         (__SNSECONDS_T_TYPE): Likewise.
9492         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9493         (__SNSECONDS_T_TYPE): Likewise.
9494
9495 2012-04-10  Andreas Jaeger  <aj@suse.de>
9496
9497         [BZ #2636]
9498         * manual/time.texi (Processor Time): Return type of times is
9499         elapsed real time since an arbitrary point in the past.
9500         (CPU Time): Move CLK_TCK from here...
9501         (Processor Time): ...to here.  Correct description.
9502         * manual/conf.texi (Constants for Sysconf): Correct description of
9503         _SC_CLK_TCK.
9504
9505 2012-04-10  David S. Miller  <davem@davemloft.net>
9506
9507         [BZ #13967]
9508         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9509         where the is a gap between DT_REL(A) and DT_JMPREL.
9510
9511 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9512
9513         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9514         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9515         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9516
9517 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9518
9519         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9520         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9521         (dl_main): Handle --inhibit-cache.
9522         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9523         _dl_inhibit_cache.
9524         * elf/dl-load.c (_dl_map_object): Use it.
9525         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9526
9527 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9528
9529         [BZ #13872]
9530         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9531         (__ieee754_powl): Saturate large exponents rather than testing for
9532         overflow of y*log2(x).
9533         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9534         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9535         exceptions.
9536
9537         [BZ #11521]
9538         * math/s_ctan.c: Include <float.h>.
9539         (__ctan): Avoid internal overflow or cancellation in calculating
9540         denominator.
9541         * math/s_ctanf.c: Likewise.
9542         * math/s_ctanl.c: Likewise.
9543         * math/s_ctanh.c: Likewise.
9544         * math/s_ctanhf.c: Likewise.
9545         * math/s_ctanhl.c: Likewise.
9546         * math/libm-test.inc (ctan_test): Add more tests.
9547         (ctanh_test): Likewise.
9548         * sysdeps/i386/fpu/libm-test-ulps: Update.
9549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9550
9551 2012-04-09  Andreas Jaeger  <aj@suse.de>
9552
9553         [BZ #6894]
9554         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9555         is an optional BSD extension.
9556
9557         [BZ #10254]
9558         * manual/stdio.texi (Opening Streams): Document additional fopen
9559         parameters.
9560
9561 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9562
9563         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9564         %eax without telling the compiler.
9565
9566 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9567
9568         [BZ # 13963]
9569         * manual/install.texi: Use sourceware.org.
9570
9571 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9572
9573         [BZ #13873]
9574         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9575         (__ieee754_pow): Generate overflow and underflow using huge*huge
9576         and tiny*tiny rather than just returning constant infinity or zero
9577         for large exponents.
9578         * math/libm-test.inc (pow_test): Require overflow exceptions for
9579         applicable cases of large exponents.
9580
9581         [BZ #706]
9582         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9583         (__ieee754_pow): Use iterative multiplication algorithm only for
9584         integer exponents with absolute value below 1024.  Check for odd
9585         integer exponents when using algorithm for real exponents.
9586         * math/libm-test.inc (pow_test): Add more tests.
9587         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9588
9589 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9590
9591         [BZ #13705]
9592         * math/libm-test.inc (exp_test): Do not allow overflow exception
9593         on underflow test.
9594
9595 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9596
9597         [BZ #13705]
9598         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9599         instead of __kernel_standard_f.
9600
9601 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9602
9603         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9604         * sysdeps/x86_64/memset_chk.S: Likewise.
9605
9606 2012-04-08  Andreas Jaeger  <aj@suse.de>
9607
9608         [BZ #10153]
9609         * manual/startup.texi (Environment Access): Describe return value
9610         for putenv and setenv.
9611
9612         [BZ #6895]
9613         * manual/filesys.texi (Directory Entries): Add description for
9614         DT_LNK.
9615
9616         [BZ #6890]
9617         * manual/filesys.texi (Directory Entries): Clarify that it's file
9618         system not operating system in the description of DT_UNKNOWN.
9619
9620         [BZ #6578]
9621         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9622
9623 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9624
9625         [BZ #6649]
9626         * manual/llio.texi (Opening and Closing Files): Add cross
9627         reference to explain mode argument.
9628
9629 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9630
9631         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9632         * sysdeps/x86_64/memset_chk.S: Likewise.
9633
9634 2012-04-07  David S. Miller  <davem@davemloft.net>
9635
9636         * elf/elf.h (R_SPARC_WDISP10): Define.
9637         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9638         R_SPARC_SIZE32.
9639         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9640         R_SPARC_SIZE64 and R_SPARC_H34.
9641
9642 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9643
9644         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9645         conditions and remove no longer applicable assertion.
9646
9647 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9648
9649         * bits/byteswap.h: Include <features.h>.
9650         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9651         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9652
9653 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9654
9655         * bits/byteswap.h (__bswap_16): Removed.
9656         Include <bits/byteswap-16.h> to get __bswap_16.
9657         * sysdeps/i386/bits/byteswap.h: Likewise.
9658         * sysdeps/s390/bits/byteswap.h: Likewise.
9659         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9660         * bits/byteswap-16.h: New file.
9661         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9662         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9663         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9664         * string/Makefile (headers): Add bits/byteswap-16.h.
9665
9666 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9667
9668         [BZ #13895]
9669         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9670         extra indirection.
9671         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9672         * nss/tst-nss-static.c: New.
9673
9674 2012-04-06  Robert Millan  <rmh@gnu.org>
9675
9676         [BZ #6486]
9677         * manual/llio.texi (File Position Primitive): lseek
9678         refers to WHENCE when it really means OFFSET.
9679
9680 2012-04-06  Andreas Jaeger  <aj@suse.de>
9681
9682         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9683         strncmp declarations.
9684
9685         * abilist/libc.abilist: Add __poll and __ppoll.
9686
9687 2012-04-05  David S. Miller  <davem@davemloft.net>
9688
9689         * scripts/check-local-headers.sh: Accept a host triplet in the
9690         path matched by the exclude regexp.
9691
9692         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9693         definition.
9694         * sysdeps/powerpc/powerpc32/dl-machine.h
9695         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9696         * sysdeps/s390/s390-32/dl-machine.h
9697         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9698         * sysdeps/sparc/sparc32/dl-machine.h
9699         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9700         * sysdeps/sparc/sparc64/dl-machine.h
9701         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9702
9703         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9704         lazy binding.
9705         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9706         undefined symbol errors.
9707
9708         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9709         DT_NEEDED entries.
9710
9711 2012-04-05  Michael Matz  <matz@suse.de>
9712
9713         [BZ #13592]
9714         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9715
9716 2012-04-05  Andreas Jaeger  <aj@suse.de>
9717
9718         [BZ #13908]
9719         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9720         comment.
9721
9722 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9723
9724         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9725         which ROUND is no valid rounding mode.
9726
9727 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9728
9729         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9730         read again.
9731         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9732
9733 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9734
9735         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9736         an exception using FPU order intentionally.
9737
9738 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9739
9740         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9741         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9742         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9743         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9744
9745 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9746
9747         [BZ #12340]
9748         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9749         EINVAL when BUFLEN is too smal.
9750
9751 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9752
9753         [BZ #13553]
9754         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9755         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9756
9757 2012-04-03  Andreas Jaeger  <aj@suse.de>
9758
9759         [BZ #13938]
9760         * manual/setjmp.texi (System V contexts): Fix sentence.
9761
9762         [BZ #13926]
9763         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9764         New macro for this case.
9765         [!__GNUC__] (__bswap_64): New inline function for this case.
9766         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9767         * bits/byteswap.h: Likewise.
9768         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9769         ull, guard with __GLIBC_HAVE_LONG_LONG.
9770
9771         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9772         __GLIBC_HAVE_LONG_LONG.
9773
9774         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9775         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9776
9777 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9778
9779         [BZ #13691]
9780         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9781         inptr and inend, rather than using last_ch.
9782
9783 2012-04-02  David S. Miller  <davem@davemloft.net>
9784
9785         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9786         * stdio-common/printf-parse.h (read_int): Change return type to
9787         'int', return -1 on INT_MAX overflow.
9788         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9789         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9790         overflows INT_MAX.  Check for overflow of in-format-string precision
9791         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9792         SIZE_MAX not INT_MAX for integer overflow test.
9793         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9794         skip the construct in the format string but do not record anything.
9795         * stdio-common/bug22.c: Adjust to test both width/prevision
9796         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9797         explicitly for proper errno values.
9798
9799 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9800
9801         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9802         CHAR_MAX.
9803         * string/test-strcmp.c [! WIDE]: Likewise.
9804         * time/tst-mktime2.c: Likewise for INT_MAX.
9805         * string/test-string.h: #include <sys/param.h> for MIN.
9806
9807         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9808         * sysdeps/i386/init-first.c (init): Likewise.
9809         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9810         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9811         * sysdeps/sh/init-first.c (init): Likewise.
9812
9813 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9814
9815         * po/ru.po: Update from translation team.
9816         * po/vi.po: Likewise.
9817
9818 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9819
9820         * resolv/nss_dns/dns-host.c: Merge copyright years.
9821
9822 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9823
9824         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9825         Optimize memcpy with prefetch if
9826         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9827         src, dst pointers have unequal 16 byte alignments.
9828
9829 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9830
9831         [BZ #13928]
9832         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9833         from a CNAME entry and return the minimum ttl for the query.
9834         (gaih_getanswer_slice): Likewise.
9835
9836 2012-03-30  Jeff Law  <law@redhat.com>
9837
9838         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9839         due to long keys.
9840         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9841         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9842
9843         * resolv/nss_dns/dns-host.c: Update copyright year.
9844
9845 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9846
9847         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9848         requests to save a system call.  Fix check that all bytes are sent.
9849
9850         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9851         comments for sendmmsg.
9852
9853 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9854
9855         [BZ #13691]
9856         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9857         with only 1 character between 0x0041 and 0x01b0.
9858         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9859         * wcsmbs/tst-mbsnrtowcs.c: New file.
9860
9861 2012-03-29  David S. Miller  <davem@davemloft.net>
9862
9863         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9864         small copies by hand.
9865
9866 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9867
9868         [BZ #13761]
9869         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9870         _nss_compat_initgroups_dyn): Fall back to malloc/free
9871         for large group memberships.
9872
9873 2012-03-28  David S. Miller  <davem@davemloft.net>
9874
9875         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9876         that branches into memcpy.
9877         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9878         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9879         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9880         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9881         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9882         bits.
9883         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9884         implementation too.
9885         * sysdeps/sparc/mempcpy.S: New file.
9886
9887         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9888         the IFUNC routine in the libc case.
9889         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9890
9891         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9892         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9893         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9894         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9895         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9896         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9897         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9898         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9899
9900         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9901         loop to 256 bytes instead of 64 bytes and fix test signedness.
9902
9903         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9904         * sysdeps/sparc/sparc32/Makefile: rather than here...
9905         * sysdeps/sparc/sparc64/Makefile: and here.
9906
9907 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9908
9909         * malloc/mallocbug.c: Avoid warnings about unused variables.
9910
9911 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9912
9913         [BZ #13760]
9914         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9915         in the right place. Discard and retry query if response is
9916         larger than input buffer size.
9917
9918 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9919
9920         [BZ #369]
9921         [BZ #2678]
9922         [BZ #3866]
9923         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9924         x for large integer exponent.
9925         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9926         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9927         sign of result as needed afterwards.
9928         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9929         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9930         result for underflowing pow the same as for overflow.
9931         (__kernel_standard_l): Handle powl overflow and underflow here
9932         rather than calling __kernel_standard.
9933         * math/libm-test.inc (pow_test): Add more tests.
9934
9935         [BZ #3868]
9936         [BZ #13879]
9937         [BZ #13910]
9938         [BZ #13911]
9939         [BZ #13912]
9940         [BZ #13913]
9941         [BZ #13915]
9942         [BZ #13916]
9943         [BZ #13917]
9944         [BZ #13918]
9945         [BZ #13919]
9946         [BZ #13920]
9947         [BZ #13921]
9948         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9949         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9950         (__kernel_standard_l): New function.
9951         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9952         __kernel_standard.
9953         * math/w_acosl.c (__acosl): Likewise.
9954         * math/w_asinl.c (__asinl): Likewise.
9955         * math/w_atan2l.c (__atan2l): Likewise.
9956         * math/w_atanhl.c (__atanhl): Likewise.
9957         * math/w_coshl.c (__coshl): Likewise.
9958         * math/w_exp10l.c (__exp10l): Likewise.
9959         * math/w_exp2l.c (__exp2l): Likewise.
9960         * math/w_fmodl.c (__fmodl): Likewise.
9961         * math/w_hypotl.c (__hypotl): Likewise.
9962         * math/w_j0l.c (__j0l, __y0l): Likewise.
9963         * math/w_j1l.c (__j1l, __y1l): Likewise.
9964         * math/w_jnl.c (__jnl, __ynl): Likewise.
9965         * math/w_lgammal.c (__lgammal): Likewise.
9966         * math/w_log10l.c (__log10l): Likewise.
9967         * math/w_log2l.c (__log2l): Likewise.
9968         * math/w_logl.c (__logl): Likewise.
9969         * math/w_powl.c (__powl): Likewise.
9970         * math/w_remainderl.c (__remainderl): Likewise.
9971         * math/w_scalbl.c (sysv_scalbl): Likewise.
9972         * math/w_sinhl.c (__sinhl): Likewise.
9973         * math/w_sqrtl.c (__sqrtl): Likewise.
9974         * math/w_tgammal.c (__tgammal): Likewise.
9975         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9976         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9977         * math/libm-test.inc (acos_test): Add more tests.
9978         (acosh_test): Likewise.
9979         (asin_test): Likewise.
9980         (atanh_test): Likewise.
9981         (exp_test): Likewise.
9982         (exp10_test): Likewise.
9983         (exp2_test): Likewise.
9984         (expm1_test): Likewise.
9985         (lgamma_test): Likewise.
9986         (log_test): Likewise.
9987         (log10_test): Likewise.
9988         (log1p_test): Likewise.
9989         (log2_test): Likewise.
9990         (pow_test): Do not allow some spurious overflow exceptions.
9991         (sqrt_test): Add more tests.
9992         (tgamma_test): Likewise.
9993         (y0_test): Likewise.
9994         (y1_test): Likewise.
9995         (yn_test): Likewise.
9996
9997 2012-03-27  Anton Blanchard  <anton@samba.org>
9998
9999         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10000         MAP_HUGETLB.
10001         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10002         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10004
10005 2012-03-27  David S. Miller  <davem@davemloft.net>
10006
10007         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10008
10009         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10010         have-as-vis3 check.
10011
10012 2012-03-27  Andreas Jaeger  <aj@suse.de>
10013
10014         * sysdeps/x86_64/elf/configure.in: Moved to ...
10015         * sysdeps/x86_64/configure.in: ... here.
10016         * sysdeps/x86_64/elf/start.S: Moved to ...
10017         * sysdeps/x86_64/start.S: ... here.
10018         * sysdeps/x86_64/elf/configure: Delete.
10019
10020         * sysdeps/x86_64/configure.in: Merge contents from
10021         sysdeps/i386/configure.in (without i686 check).
10022
10023         * sysdeps/i386/elf/Versions: Merge into ...
10024         * sysdeps/i386/Versions: ... this.
10025         * sysdeps/i386/elf/Versions: Delete file.
10026         * sysdeps/i386/elf/start.S: Moved to ...
10027         * sysdeps/i386/start.S: ...here.
10028         * sysdeps/i386/elf/configure.in: Merge into...
10029         * sysdeps/i386/configure.in: ...here.
10030         * sysdeps/i386/elf/configure.in: Delete file.
10031         * sysdeps/i386/elf/configure: Delete file.
10032
10033         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10034         * debug/backtracesyms.c: ... here.
10035         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10036         * debug/backtracesymsfd.c: ... here.
10037         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10038         * sysdeps/generic/ifunc-sel.h: ... here.
10039
10040         * sysdeps/unix/i386/start.c: Delete file.
10041         * sysdeps/unix/sparc/start.c: Delete file.
10042         * sysdeps/unix/start.c: Delete file.
10043
10044         * sysdeps/sh/elf/configure.in: Moved to ...
10045         * sysdeps/sh/configure.in: ... here.
10046         * sysdeps/sh/elf/start.S: Moved to ...
10047         * sysdeps/sh/start.S: ... here.
10048         * sysdeps/sh/elf/configure: Delete file.
10049
10050         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10051         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10052         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10053         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10054         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10055         * sysdeps/powerpc/powerpc64/start.S: here.
10056         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10057         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10058         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10059         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10060         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10061
10062         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10063         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10064         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10065         * sysdeps/powerpc/powerpc32/start.S: ... here.
10066         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10067         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10068         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10069
10070         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10071         * sysdeps/powerpc/ifunc-sel.h: ... here.
10072         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10073         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10074
10075         * sysdeps/sparc/elf/configure.in: Moved to ...
10076         * sysdeps/sparc/configure.in: ... here.
10077         * sysdeps/sparc/elf/configure: Delete file.
10078         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10079         * sysdeps/sparc/sparc32/start.S: ... here.
10080         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10081         * sysdeps/sparc/sparc64/start.S: ... here.
10082         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10083         * sysdeps/sparc/sparc32/Makefile: ... this.
10084         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10085         * sysdeps/sparc/sparc64/Makefile: ... this.
10086
10087         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10088         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10089         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10090         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10091         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10092         * sysdeps/s390/s390-32/setjmp.S: ... here.
10093         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10094         * sysdeps/s390/s390-32/configure.in: ... here.
10095         * sysdeps/s390/s390-32/elf/configure: Delete file.
10096         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10097         * sysdeps/s390/s390-32/start.S: ... here.
10098
10099         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10100         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10101         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10102         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10103         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10104         * sysdeps/s390/s390-64/setjmp.S: ... here.
10105         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10106         * sysdeps/s390/s390-64/configure.in: ... here
10107         * sysdeps/s390/s390-64/elf/configure: Delete file.
10108         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10109         * sysdeps/s390/s390-64/start.S: ... here.
10110         * sysdeps/s390/s390-64/elf/configure: Delete.
10111
10112         * configure.in: Remove support for elf directories in sysdeps.
10113
10114         * configure: Regenerated.
10115         * sysdeps/i386/configure: Regenerated.
10116         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10117         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10118         * sysdeps/s390/s390-32/configure: Regenerated.
10119         * sysdeps/s390/s390-64/configure: Regenerated.
10120         * sysdeps/sh/configure: Regenerated.
10121         * sysdeps/sparc/configure: Regenerated.
10122         * sysdeps/x86_64/configure: Regenerated.
10123
10124 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10125
10126         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10127
10128         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10129         denormal result into account.
10130
10131 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10132
10133         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10134         Reported by Allan McRae <allan@archlinux.org>.
10135
10136 2012-03-23  Jeff Law  <law@redhat.com>
10137
10138         * nss/getnssent.c (__nss_getent): Fix typo.
10139
10140 2012-03-23  David S. Miller  <davem@davemloft.net>
10141
10142         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10143
10144 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10145
10146         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10147         to pad to uint64_t for each field.
10148         (dl_tls_index): Replace unsigned long with uint64_t.
10149
10150 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10151         Paul Pluzhnikov  <ppluzhnikov@google.com>
10152
10153         [BZ #6528]
10154         * grp/Makefile (otherlibs): Don't set it.
10155         * inet/Makefile (otherlibs): Likewise.
10156         * login/Makefile (otherlibs): Likewise.
10157         * nscd/Makefile (otherlibs): Likewise.
10158         * posix/Makefile (otherlibs): Likewise.
10159         * pwd/Makefile (otherlibs): Likewise.
10160         * rt/Makefile (otherlibs): Likewise.
10161         * sunrpc/Makefile (otherlibs): Likewise.
10162         * nss/Makefile (otherlibs): Likewise.
10163         Add libnss_files to routines and static-only-routines.
10164         ($(objpfx)getent): Remove rule.
10165         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10166         static-only-routines.
10167
10168 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10169
10170         [BZ #13892]
10171         * math/s_cexp.c: Include <float.h>.
10172         (__cexp): Handle exp result overflowing not necessarily
10173         overflowing both real and imaginary parts of result.
10174         * math/s_cexpf.c: Likewise.
10175         * math/s_cexpl.c: Likewise.
10176         * math/libm-test.inc (cexp_test): Add more tests.
10177         * sysdeps/i386/fpu/libm-test-ulps: Update.
10178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10179
10180 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10181
10182         * include/link.h (ELFW): New macro.
10183         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10184         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10185
10186 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10187
10188         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10189         with uint64_t.
10190
10191 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10192
10193         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10194         declaration.
10195         (struct La_x32_retval): Likewise.
10196
10197 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10198
10199         * sysdeps/x86_64/preconfigure.in: New file.
10200         * sysdeps/x86_64/preconfigure: New generated file.
10201
10202 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10203
10204         [BZ #13824]
10205         * math/e_exp2l.c: Include <float.h>.
10206         (__ieee754_exp2l): Handle overflow and underflow cases
10207         separately.  Only pass fractional part of argument to
10208         __ieee754_expl.
10209         * math/libm-test.inc (exp2_test): Add more tests.
10210
10211         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10212         negating x to take absolute value.
10213         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10214         Likewise.
10215         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10216         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10217         Likewise.
10218         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10219         computing low part if x was negated.
10220         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10221
10222 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10223
10224         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10225         la_x32_gnu_pltexit.
10226         (pltexit): Cast int_retval to ptrdiff_t.
10227         * elf/tst-auditmod3b.c: Likewise.
10228         * elf/tst-auditmod4b.c: Likewise.
10229         * elf/tst-auditmod5b.c: Likewise.
10230         * elf/tst-auditmod6b.c: Likewise.
10231         * elf/tst-auditmod6c.c: Likewise.
10232         * elf/tst-auditmod7b.c: Likewise.
10233
10234         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10235         and x32_gnu_pltexit.
10236
10237         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10238         __ELF_NATIVE_CLASS.
10239         (La_x32_regs): New macro.
10240         (La_x32_retval): Likewise.
10241         (la_x32_gnu_pltenter): New function prototype.
10242         (la_x32_gnu_pltexit): Likewise.
10243
10244 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10245
10246         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10247         exponent.
10248
10249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10250
10251         * configure.in (libc_cv_cc_nofma): Check for option to disable
10252         generation of FMA instructions.
10253         * configure: Regenerate.
10254         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10255         * sysdeps/ieee754/dbl-64/Makefile: New file.
10256         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10257         Remove brandred-fma4.
10258         (CFLAGS-brandred-fma4.c): Remove.
10259         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10260         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10261         define.
10262         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10263         define.
10264
10265 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10266
10267         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10268         LLONG_MAX != LONG_MAX.
10269         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10270         (_fitoa_word): Likewise.
10271         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10272         LLONG_MAX != LONG_MAX.
10273         * stdio-common/_itowa.h: Include <_itoa.h>.
10274         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10275         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10276         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10277         only if not defined.
10278         (_ITOA_WORD_TYPE): Likewise.
10279         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10280         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10281
10282 2012-03-21  David S. Miller  <davem@davemloft.net>
10283
10284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10285
10286 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10287
10288         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10289         of x86_64 when setting libc_cv_slibdir, libdir and
10290         libc_cv_localedir.
10291         * sysdeps/unix/sysv/linux/configure: Regenerated.
10292
10293 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10294
10295         * manual/lang.texi (Old Varargs): Remove section.
10296         (How Variadic): Update menu.
10297         (va_start): Do not mention varargs.h.
10298
10299 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10300             Joseph Myers  <joseph@codesourcery.com>
10301
10302         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10303         link test.
10304         * configure: Regenerated.
10305
10306 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10307
10308         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10309         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10310         conformtest.pl
10311
10312 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10313
10314         * NOTES: Remove.
10315         * Makefile (files-for-dist): Remove NOTES.
10316         (NOTES): Remove rule.
10317         * README: Don't refer to NOTES.
10318         * manual/creature.texi: Don't include macros.texi.
10319         * manual/intro.texi (creature.texi): Remove comment referring to
10320         NOTES.
10321
10322         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10323         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10324         * configure: Regenerated.
10325         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10326         LIBC_TRY_CC_OPTION.
10327         (libc_cv_as_i686): Likewise.
10328         (libc_cv_cc_avx): Likewise.
10329         (libc_cv_cc_sse2avx): Likewise.
10330         (libc_cv_cc_fma4): Likewise.
10331         (libc_cv_cc_novzeroupper): Likewise.
10332         * sysdeps/i386/configure: Regenerated.
10333
10334         [BZ #13883]
10335         * sysdeps/i386/fpu/s_cexp.S: Remove.
10336         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10337         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10338         * math/libm-test.inc (cexp_test): Add more tests.
10339         * sysdeps/i386/fpu/libm-test-ulps: Update.
10340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10341
10342 2012-03-21  Allan McRae  <allan@archlinux.org>
10343
10344         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10345
10346 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10347
10348         [BZ #13871]
10349         * math/w_exp2.c: Do not include <float.h>.
10350         (o_threshold, u_threshold): Remove.
10351         (__exp2): Calculate result before checking finiteness and calling
10352         __kernel_standard.
10353         * math/w_exp2f.c: Likewise.
10354         * math/w_exp2l.c: Likewise.
10355         * math/libm-test.inc (exp2_test): Require overflow exception for
10356         1e6 input.
10357
10358         [BZ #3866]
10359         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10360         range of signed 64-bit integers before using fistpll.  Remove
10361         checks for whether integers fit in mantissa bits.
10362         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10363         the range of signed 32-bit integers before using fistpl.  Remove
10364         checks for whether integers fit in mantissa bits.
10365         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10366         (__ieee754_powl): Test for y outside the range of signed 64-bit
10367         integers before using fistpll.  Reduce 64-bit values to 63-bit
10368         ones as needed.
10369         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10370         divide-by-zero is raised for zero to large negative powers.
10371         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10372         (__ieee754_powl): Test for y outside the range of signed 64-bit
10373         integers before using fistpll.  Reduce 64-bit values to 63-bit
10374         ones as needed.
10375         * math/libm-test.inc (pow_test): Add more tests.
10376
10377 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10378
10379         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10380         <stdio-common/_itoa.h>.
10381         * debug/segfault.c: Likewise.
10382         * elf/dl-cache.c: Likewise.
10383         * elf/dl-minimal.c: Likewise.
10384         * elf/dl-misc.c: Likewise.
10385         * elf/dl-sysdep.c: Likewise.
10386         * elf/dl-version.c: Likewise.
10387         * elf/rtld.c: Likewise.
10388         * hurd/hurdsock.c: Likewise.
10389         * hurd/lookup-retry.c: Likewise.
10390         * malloc/malloc.c: Likewise.
10391         * malloc/mtrace.c: Likewise.
10392         * nscd/nscd_getgr_r.c: Likewise.
10393         * nscd/nscd_getpw_r.c: Likewise.
10394         * nscd/nscd_getserv_r.c: Likewise.
10395         * posix/getopt_init.c: Likewise.
10396         * posix/wordexp.c: Likewise.
10397         * stdio-common/_itoa.c: Likewise.
10398         * stdio-common/printf_fphex.c: Likewise.
10399         * stdio-common/vfprintf.c: Likewise.
10400         * string/_strerror.c: Likewise.
10401         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10402         * sysdeps/i386/i686/hp-timing.h: Likewise.
10403         * sysdeps/mach/_strerror.c: Likewise.
10404         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10405         * sysdeps/mach/hurd/sethostid.c: Likewise.
10406         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10407         * sysdeps/mach/xpg-strerror.c: Likewise.
10408         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10409         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10410         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10411         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10412         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10413         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10414         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10415         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10416         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10417         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10418         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10419         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10420         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10421         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10422         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10423         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10424         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10425         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10426         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10427         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10428         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10429
10430         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10431
10432         * stdio-common/_itoa.h: Moved to ...
10433         * sysdeps/generic/_itoa.h: Here.
10434
10435         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10436
10437         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10438         instead of "_itoa.h" and "_itowa.h".
10439         * stdio-common/vfprintf.: Likewise.
10440
10441 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10442
10443         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10444         <bits/wordsize.h>.
10445         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10446         (__signbit): Likwise.
10447         (llrintf): Likwise.
10448         (llrint): Likwise.
10449
10450 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10451
10452         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10453         __WORDSIZE != 64.
10454
10455 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10456
10457         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10458         OVERFLOW_EXCEPTION_OK.
10459         * math/libm-test.inc ("Philosophy"): Update comment about
10460         exception testing.
10461         (OVERFLOW_EXCEPTION): Define.
10462         (OVERFLOW_EXCEPTION_OK): Likewise.
10463         (INVALID_EXCEPTION_OK): Renumber.
10464         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10465         (IGNORE_ZERO_INF_SIGN): Likewise.
10466         (test_exceptions): Handle FE_OVERFLOW.
10467         (exp10_test): Expect overflow exceptions.
10468         (exp2_test): Likewise.
10469         (expm1_test): Likewise.
10470         (nextafter_test): Likewise.
10471         (pow_test): Likewise.
10472         (scalbn_test): Likewise.
10473         (scalbln_test): Likewise.
10474
10475 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10476
10477         * sysdeps/x86_64/bits/atomic.h
10478         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10479         64bit integer.
10480         (atomic_exchange_acq): Likewise.
10481         (__arch_exchange_and_add_body): Likewise.
10482         (__arch_add_body): Likewise.
10483         (atomic_add_negative): Likewise.
10484         (atomic_add_zero): Likewise.
10485
10486 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10487
10488         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10489         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10490
10491 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10492
10493         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10494         Check __x86_64__ instead of __WORDSIZE.
10495
10496 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10497
10498         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10499
10500 2012-03-19  David S. Miller  <davem@davemloft.net>
10501
10502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10503
10504         * sysdeps/sparc/fpu/fenv_private.h: New file.
10505         * sysdeps/sparc/fpu/math_private.h: Use it.
10506         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10507         Remove.
10508         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10509         (libc_feholdexcept_setroundl): Remove.
10510         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10511         Remove.
10512         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10513         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10514
10515 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10516
10517         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10518         int64_t instead of long int.
10519         (INSERT_WORDS64): Likwise.
10520
10521 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10522
10523         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10524         _Unwind_GetCFA return to _Unwind_Ptr first.
10525
10526 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10527
10528         [BZ #13629]
10529         * math/s_clog.c: Include <float.h>.
10530         (__clog): Scale large or subnormal inputs.
10531         * math/s_clogf.c: Likewise.
10532         * math/s_clogl.c: Likewise.
10533         * math/s_clog10.c: Include <float.h>.
10534         (M_LOG10_2): Define.
10535         (__clog10): Scale large or subnormal inputs.
10536         * math/s_clog10f.c: Likewise.
10537         * math/s_clog10l.c: Likewise.
10538         * math/libm-test.inc (clog_test): Add more tests.
10539         (clog10_test): Likewise.
10540         * sysdeps/i386/fpu/libm-test-ulps: Update.
10541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10542
10543         [BZ #11451]
10544         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10545         x and y.
10546         * math/libm-test.inc (atan2_test): Add another test.
10547
10548         * Makerules (common-objdir-compile): Remove.
10549         * sysdeps/unix/Makefile (config-generated): Do not add
10550         $(unix-generated) to variable.
10551         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10552         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10553         Remove rule.
10554         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10555         Likewise.
10556         [generic bits/local_lim.h] (before-compile): Do not append to
10557         variable.
10558         [generic bits/local_lim.h] (common-generated): Likewise.
10559         [generic sys/param.h] (before-compile): Do not append to variable.
10560         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10561         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10562         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10563         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10564         include.
10565         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10566         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10567         [generic sys/param.h] ($(addprefix
10568         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10569         [generic sys/param.h] (common-generated): Do not append to
10570         variable.
10571         [generic sys/param.h] (sysdep_headers): Likewise.
10572         [generic bits/errno.h] (before-compile): Do not append to
10573         variable.
10574         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10575         rule.
10576         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10577         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10578         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10579         [generic bits/errno.h] (common-generated): Do not append to
10580         variable.
10581         [generic bits/ioctls.h] (before-compile): Do not append to
10582         variable.
10583         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10584         rule.
10585         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10586         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10587         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10588         rule.
10589         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10590         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10591         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10592         [generic bits/ioctls.h] (common-generated): Do not append to
10593         variable.
10594         [generic sys/syscall.h] (syscall.h): Remove variable.
10595         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10596         rule.
10597         [generic sys/syscall.h] (before-compile): Do not append to
10598         variable.
10599         [generic sys/syscall.h] (common-generated): Likewise.
10600         * sysdeps/unix/errnos-tmpl.c: Remove file.
10601         * sysdeps/unix/errnos.awk: Likewise.
10602         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10603         * sysdeps/unix/ioctls.awk: Likewise.
10604         * sysdeps/unix/mk-local_lim.c: Likewise.
10605         * sysdeps/unix/snarf-ioctls: Likewise.
10606
10607 2012-03-19  Richard Henderson  <rth@twiddle.net>
10608
10609         * sysdeps/i386/fpu/fenv_private.h: New file.
10610         * sysdeps/i386/fpu/math_private.h: Use it.
10611         (math_opt_barrier, math_force_eval): Remove.
10612         (libc_feholdexcept_setround_53bit): Remove.
10613         (libc_feupdateenv_53bit): Remove.
10614         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10615         (math_opt_barrier, math_force_eval): Remove.
10616         (libc_feholdexcept): Remove.
10617         (libc_feholdexcept_setround): Remove.
10618         (libc_fetestexcept, libc_fesetenv): Remove.
10619         (libc_feupdateenv_test): Remove.
10620         (libc_feupdateenv, libc_feholdsetround): Remove.
10621         (libc_feresetround): Remove.
10622
10623         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10624         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10625
10626         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10627         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10628         (libc_feupdateenv_testl): New.
10629         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10630         (libc_feupdateenv_testf): New.
10631         (libc_feupdateenv): Use libc_feupdateenv_test.
10632         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10633         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10634
10635         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10636         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10637         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10638         (libc_feresetround_noex): New.
10639         (libc_feresetround_noexf): New.
10640         (libc_feresetround_noexl): New.
10641         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10642         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10643         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10644         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10645         SET_RESTORE_ROUND.
10646         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10647         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10648         (__cos): Likewise.
10649         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10650         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10651         SET_RESTORE_ROUND_NOEX.
10652         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10653         SET_RESTORE_ROUND_NOEXF.
10654         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10655         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10656         (libc_feholdsetroundf): New.
10657         (libc_feresetround, libc_feresetroundf): New.
10658
10659         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10660         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10661         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10662
10663         * sysdeps/generic/math_private.h: Include <fenv.h>.
10664         (default_libc_feholdexcept): New.
10665         (default_libc_feholdexcept_setround): New.
10666         (default_libc_fesetenv, default_libc_feupdateenv): New.
10667         (libc_feholdexcept): Only define if undefined.
10668         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10669         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10670         (libc_feholdexcept_setroundl): Likewise.
10671         (libc_feholdexcept_setround_53bit): Likewise.
10672         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10673         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10674         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10675         (libc_feupdateenv_53bit): Likewise.
10676         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10677         (libc_feholdexcept): Convert from macro to inline function.
10678         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10679         (libc_fesetenv, libc_feupdateenv): Likewise.
10680
10681         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10682         not previously defined.
10683         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10684         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10685         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10686         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10687         * sysdeps/ieee754/flt-32/math_private.h: New file.
10688         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10689         math_private.h below SET_FLOAT_WORD.
10690         (__isnan, __isinf_ns, __finite): Remove.
10691         (__isnanf, __isinf_nsf, __finitef): Remove.
10692
10693 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10694
10695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10696
10697 2012-03-17  David S. Miller  <davem@davemloft.net>
10698
10699         [BZ #6471]
10700         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10701         for 2.16.
10702
10703 2012-03-16  David S. Miller  <davem@davemloft.net>
10704
10705         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10706         warnings.
10707
10708         [BZ #6471]
10709         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10710         properly.
10711         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10712         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10713         sysdep_routines when subdir is sysvipc.
10714         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10715         __getshmlba helper.
10716
10717         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10718
10719 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10720
10721         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10722         [__LP64__].
10723
10724 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10725
10726         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10727         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10728         (__lround): Renamed to ...
10729         (__llround): This.  Replace long int with long long int.
10730         Define lround functions as aliases of llround functions.
10731         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10732
10733 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10734
10735         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10736         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10737         adresses to uintptr_t.  Replace "long int" and "unsigned long
10738         int" with "greg_t" on va_arg.
10739
10740 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10741
10742         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10743         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10744
10745         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10746         Move e_machine check before EI_CLASS check.  Handle x32
10747         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10748         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10749         SKIP_EM_IA_64 and include
10750         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10751
10752         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10753         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10754         (add_system_dir): New macro.
10755
10756         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10757         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10758
10759 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10760
10761         [BZ #2551]
10762         [BZ #2552]
10763         [BZ #2553]
10764         [BZ #2554]
10765         [BZ #2562]
10766         [BZ #2563]
10767         [BZ #2565]
10768         [BZ #2566]
10769         [BZ #2576]
10770         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10771         (y0): Likewise.
10772         * math/w_j0f.c (j0f): Likewise.
10773         (y0f): Likewise.
10774         * math/w_j0l.c (__j0l): Likewise.
10775         (__y0l): Likewise.
10776         * math/w_j1.c (j1): Likewise.
10777         (y1): Likewise.
10778         * math/w_j1f.c (j1f): Likewise.
10779         (y1f): Likewise.
10780         * math/w_j1l.c (__j1l): Likewise.
10781         (__y1l): Likewise.
10782         * math/w_jn.c (jn): Likewise.
10783         (yn): Likewise.
10784         * math/w_jnf.c (jnf): Likewise.
10785         (ynf): Likewise.
10786         * math/w_jnl.c (__jnl): Likewise.
10787         (__ynl): Likewise.
10788         * math/libm-test.inc (j0_test): Add more tests.
10789         (j1_test): Likewise.
10790         (jn_test): Likewise.  Add trailing semicolon to existing test.
10791         (y0_test): Likewise.
10792         (y1_test): Likewise.
10793         * sysdeps/i386/fpu/libm-test-ulps: Update.
10794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10795
10796         [BZ #13851]
10797         [BZ #13854]
10798         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10799         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10800         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10801         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10802         (__tanl): Set errno for infinite argument.
10803         * sysdeps/i386/fpu/mptan.c: Remove.
10804         * sysdeps/i386/fpu/s_tan.S: Likewise.
10805         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10806         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10807         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10808         * math/libm-test.inc (tan_test): Add more tests and enable more
10809         tests for double and long double.
10810         * sysdeps/i386/fpu/libm-test-ulps: Update.
10811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10812
10813 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10814
10815         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10816         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10817
10818 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10819
10820         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10821         * configure.in: Use it for both main tree and add-ons.
10822         * configure: Regenerated.
10823
10824 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10825
10826         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10827
10828 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10829
10830         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10831         in comment.
10832
10833         [BZ #13851]
10834         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10835         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10836         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10839         infinite argument.
10840         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10841         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10842         != 0 for prec == 2.
10843         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10844         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10845         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10846         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10847         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10848         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10849         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10850         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10851         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10852         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10853         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10854         * math/libm-test.inc (cos_test): Add more tests and enable more
10855         tests for long double.
10856         (sin_test): Likewise.
10857         (sincos_test): Likewise.
10858         * sysdeps/i386/fpu/libm-test-ulps: Update.
10859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10860
10861 2012-03-16  David S. Miller  <davem@davemloft.net>
10862
10863         * sysdeps/sparc/fpu/math_private.h: New file.
10864
10865 2012-03-15  David S. Miller  <davem@davemloft.net>
10866
10867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10868         file.
10869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10871         file.
10872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10873         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10874         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10875         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10876         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10877         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10878         sysdep routines.
10879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10880
10881         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10882         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10883
10884         * sysdeps/sparc/sparc-ifunc.h: New file.
10885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10886         sparc-ifunc.h
10887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10889         Likewise.
10890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10891         Likewise.
10892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10896         Likewise.
10897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10902         Likewise.
10903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10904         Likewise.
10905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10909         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10910         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10911         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10912         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10913         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10914         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10915         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10916         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10917         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10918         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10919         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10920         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10921         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10922         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10923         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10924         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10925         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10926         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10927         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10928         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10929
10930 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10931
10932         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10933         scaling.
10934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10935
10936 2012-03-15  Andreas Jaeger  <aj@suse.de>
10937
10938         [BZ #13852]
10939         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10940         ieee754/flt-32 implementation for sin, cos and sincos.
10941         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10942         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10943         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10944         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10945         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10946         ieee754/flt-32 implementation for tan.
10947
10948         * math/libm-test.inc (cos_test): Enable some large input tests for
10949         float as well
10950         (sin_test): Likewise.
10951         (sincos_test): Likewise.
10952         (tan_test): Add tests for large input.
10953
10954         * sysdeps/i386/fpu/libm-test-ulps: Update.
10955
10956 2012-03-15  Andreas Jaeger  <aj@suse.de>
10957
10958         [BZ #13658]
10959         * math/libm-test.inc (cos_test): Add more test cases.
10960         (sin_test): Likewise.
10961         (sincos_test): Likewise.
10962
10963 2012-03-15  Andreas Jaeger  <aj@suse.de>
10964
10965         [BZ #13837]
10966         * math/libm-test.inc (cos_test): Add a test case for large input
10967         value.
10968         (sin_test): Likewise.
10969         (sincos_test): Likewise.
10970
10971 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10972         Joseph Myers  <joseph@codesourcery.com>
10973
10974         [BZ #13658]
10975         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10976         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10977         * sysdeps/i386/fpu/branred.c: Likewise.
10978         * sysdeps/i386/fpu/dosincos.c: Likewise.
10979         * sysdeps/i386/fpu/mpa.c: Likewise.
10980         * sysdeps/i386/fpu/s_cos.S: Likewise.
10981         * sysdeps/i386/fpu/s_sin.S: Likewise.
10982         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10983         * sysdeps/i386/fpu/sincos32.c: Likewise.
10984
10985         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10986         Define.
10987         (libc_feupdateenv_53bit): Define.
10988         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10989         Define.
10990         (libc_feupdateenv_53bit): Define.
10991
10992         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10993         53 bit (without extend i386 double precision).
10994
10995         * math/libm-test.inc (sincos_test): Add tests for large input.
10996         (sin): Likewise.
10997         (cos): Likewise.
10998
10999         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11000
11001 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11002
11003         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11004
11005 2012-03-15  David S. Miller  <davem@davemloft.net>
11006
11007         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11008         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11009         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11010         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11016         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11017         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11023         file.
11024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11026         file.
11027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11029         file.
11030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11032         file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11034         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11035         fmin/fmax sysdep routines.
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11037
11038 2012-03-14  David S. Miller  <davem@davemloft.net>
11039
11040         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11041         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11042         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11043         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11044         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11045         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11046         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11047         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11048         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11049         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11050         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11051         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11052         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11053         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11054         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11055         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11056         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11058         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11059         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11060         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11061         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11062         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11063         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11064         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11065         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11066         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11069         routines.
11070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11071         file.
11072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11074         file.
11075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11077         file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11080         file.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11083         file.
11084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11086         file.
11087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11088         file.
11089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11090         file.
11091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11092         file.
11093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11094         New file.
11095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11096         file.
11097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11098         file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11101         file.
11102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11104         file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11107         file.
11108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11110         VIS3 routines.
11111
11112         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11113         New file.
11114
11115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11116
11117         * sysdeps/sparc/configure.in: New file.
11118         * sysdeps/sparc/configure: Generate.
11119         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11120         * configure: Regenerate.
11121         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11122         * config.make.in (have-as-vis3): New.
11123         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11124         available use -Av9d instead of -Av9a.
11125         * sysdeps/sparc/sparc64/Makefile: Likewise.
11126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11128         New file.
11129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11130         file.
11131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11132         New file.
11133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11134         file.
11135         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11136         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11137         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11138         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11139         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11140
11141         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11142         fzeros/fnegs to load 0x80000000 into a float register instead of
11143         using the stack.
11144         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11145
11146 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11147
11148         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11149         bits/syscall.h.
11150         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11151         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11152         ($(inst_includedir)/bits/syscall.h): Remove rule.
11153         ($(objpfx)bits/syscall.d): Include instead of
11154         $(objpfx)syscall-list.d.
11155         (generated): Change syscall-list.h and syscall-list.d to
11156         bits/syscall.h and bits/syscall.d.
11157
11158 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11159
11160         [BZ #13846]
11161         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11162
11163 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11164
11165         [BZ #13841]
11166         * math/s_csqrt.c: Include <float.h>.
11167         (__csqrt): Scale large or subnormal inputs.
11168         * math/s_csqrtf.c: Likewise.
11169         * math/s_csqrtl.c: Likewise.
11170         * math/libm-test.inc (csqrt_test): Add more tests.
11171         * sysdeps/i386/fpu/libm-test-ulps: Update.
11172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11173
11174         [BZ #13840]
11175         * math/libm-test.inc (hypot_test): Add more tests.
11176
11177 2012-03-13  David S. Miller  <davem@davemloft.net>
11178
11179         [BZ #13840]
11180         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11181         double-precision for the calculation instead of scaling.
11182
11183 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11184
11185         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11186         manipulate bits before adding and subtracting TWO52[sx].
11187         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11188         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11189         Likewise.
11190         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11191
11192 2012-03-13  David S. Miller  <davem@davemloft.net>
11193
11194         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11195         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11196         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11197         rtld-global-offsets.h
11198         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11199
11200         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11201         large parameters.
11202
11203         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11204
11205         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11206         'err' in the ifdef scope in which it is actually used.
11207
11208         * nss/nss_db/db-init.c: Include string.h
11209
11210 2012-03-12  David S. Miller  <davem@davemloft.net>
11211
11212         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11213         masking out of the most significant byte of random value used.
11214         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11215         Fix coding style in previous change.
11216
11217         * sysdeps/unix/sysv/linux/kernel-features.h
11218         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11219         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11220         expression.
11221         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11222         later.
11223
11224 2012-03-11  David S. Miller  <davem@davemloft.net>
11225
11226         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11227         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11228         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11229         for 'resultvar' otherwise things get truncated on 64-bit.
11230
11231         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11232         Fix masking out of the most significant byte of random value used.
11233
11234         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11235
11236 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11237
11238         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11239
11240 2012-03-09  David S. Miller  <davem@davemloft.net>
11241
11242         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11243         variables with appropriate CPP guards.
11244         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11245         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11246         on resulting framesize and the management of the outregs buffer for pltexit.
11247         Preserve floating point return values across _dl_call_pltexit call.
11248         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11249         framesize and the management of the outregs buffer for pltexit.
11250         Preserve floating point return values across _dl_call_pltexit
11251         call.
11252         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11253         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11254         (print_exit): Fix format string for return register value.
11255
11256 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11257
11258         * sunrpc/Makefile (others): Add rpcgen.
11259         ($(objpfx)rpcgen): Remove special build rule and dependency on
11260         libc.
11261         * sunrpc/rpcgen.c: New file.
11262
11263 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11264
11265         [BZ #13673]
11266         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11267         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11268         * sysdeps/i386/crti.S: Likewise.
11269         * sysdeps/i386/crtn.S: Likewise.
11270         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11271         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11272         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11273         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11274         * sysdeps/sh/crti.S: Likewise.
11275         * sysdeps/sh/crtn.S: Likewise.
11276         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11277
11278         [BZ #13673]
11279         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11280         with URL.
11281         * locale/programs/locfile-kw.gperf: Likewise.
11282         * locale/programs/charmap-kw.h: Regenerated.
11283         * locale/programs/locfile-kw.h: Likewise.
11284
11285         [BZ #13673]
11286         * intl/plural.y: Replace FSF snail mail address with URL.
11287         * intl/plural.c: Regenerated.
11288
11289 2012-03-09  Richard Henderson  <rth@twiddle.net>
11290
11291         * include/math_private.h: Remove file.
11292         * math/math_private.h: Move file ...
11293         * sysdeps/generic/math_private.h: ... here.
11294
11295         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11296         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11297         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11298
11299         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11300         and <math_private.h>.
11301         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11302         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11303         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11304         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11305         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11357         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11358         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11359         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11366         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11367         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11368         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11369         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11370         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11371         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11372         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11373         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11374         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11375         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11389         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11391         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11392         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11393         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11394         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11397         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11398         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11399         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11401         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11402         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11403         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11404         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11405         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11406         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11407         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11408         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11409         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11410         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11411         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11412         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11413         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11415         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11416         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11418         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11419         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11420         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11421         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11422         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11423         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11424         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11425         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11426         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11427         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11428         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11429         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11430         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11431         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11432         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11433         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11434         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11435         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11436         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11437         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11438         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11439         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11440         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11441         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11442         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11443         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11444         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11445         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11446         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11447         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11448         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11449         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11450         * sysdeps/ieee754/k_standard.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11566         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11570         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11571         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11573         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11578         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11583         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11592         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11599         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11600         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11601         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11611         * sysdeps/ieee754/s_lib_version.c: Likewise.
11612         * sysdeps/ieee754/s_matherr.c: Likewise.
11613         * sysdeps/ieee754/s_signgam.c: Likewise.
11614         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11615         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11616         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11617         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11618         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11619         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11620         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11621         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11622         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11623         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11624         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11625         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11626         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11627         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11628         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11629         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11630         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11631         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11632         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11633         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11634         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11635
11636 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11637
11638         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11639         * sunrpc/rpc_main.c: Likewise.
11640         * sunrpc/rpc_svcout.c: Likewise.
11641
11642 2012-03-09  David S. Miller  <davem@davemloft.net>
11643
11644         * include/math_private.h: New file.
11645
11646 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11647
11648         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11649         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11650         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11651         from <bits/socket_type.h>.
11652         (enum __socket_type): Don't define here.
11653         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11654         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11655         bits/socket_type.h.
11656
11657         [BZ #13566]
11658         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11659         checking __USE_GNU.
11660
11661         * Makerules ($(inst_includedir)/%.h): New rule.
11662         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11663         (install-others): Remove variable setting.
11664         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11665
11666 2012-03-08  Richard Henderson  <rth@twiddle.net>
11667
11668         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11669         from macro to inline function; merge with the
11670         !__LIBC_INTERNAL_MATH_INLINES version.
11671         (__ieee754_sqrtf): Likewise.
11672
11673         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11674         to inline function.
11675         (__rintf, __floor, __floorf): Likewise.
11676
11677         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11678         macro to inline function.
11679         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11680
11681         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11682         not <math/math_private.h>.
11683
11684 2012-03-08  David S. Miller  <davem@davemloft.net>
11685
11686         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11687         copyright year.
11688         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11689
11690 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11691
11692         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11693         normalization.
11694         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11695         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11696
11697 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11698
11699         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11700         be defined individually, they must be defined as a block.  Define
11701         S for printing a string instead of hidint the different by using a
11702         macro for adding the 'l'.
11703         * stdio-common/tst-fphex-wide.c: Adjust.
11704
11705 2012-03-07  Marek Polacek  <polacek@redhat.com>
11706
11707         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11708
11709 2012-03-08  Marek Polacek  <polacek@redhat.com>
11710
11711         [BZ #13806]
11712         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11713         * stdio-common/tst-fphex.c: Define a few macros to make the
11714         test reusable.  Use them.
11715         * stdio-common/tst-fphex-wide.c: New file.
11716
11717 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11718
11719         [BZ #6911]
11720         * manual/macros.texi (gnusystems): New macro.
11721         (nongnusystems): Likewise.
11722         (gnulinuxhurdsystems): Likewise.
11723         (gnuhurdsystems): Likewise..
11724         (gnulinuxsystems): Likewise.
11725         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11726         variants of the GNU system, not "GNU system".
11727         * manual/conf.texi: Likewise.
11728         * manual/errno.texi: Likewise.  Update example of errno macro
11729         expansion.
11730         * manual/filesys.texi: Likewise.
11731         (getumask): Document as specific to GNU/Hurd.
11732         * manual/install.texi: Likewise.  Reword some references to
11733         GNU/Linux.
11734         * manual/intro.texi: Likewise.
11735         * manual/io.texi: Likewise.
11736         (File Name Portability): Detail which constraints are inapplicable
11737         to all GNU systems and which are only inapplicable to GNU/Hurd.
11738         * manual/job.texi: Likewise.
11739         * manual/llio.texi: Likewise.
11740         (O_NOCTTY): Document as present on GNU/Linux.
11741         * manual/maint.texi: Likewise.
11742         * manual/memory.texi: Likewise.
11743         * manual/pattern.texi: Likewise.
11744         * manual/pipe.texi: Likewise.
11745         * manual/process.texi: Likewise.
11746         * manual/resource.texi: Likewise.
11747         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11748         child on GNU/Hurd.
11749         * manual/setjmp.texi: Likewise.
11750         * manual/signal.texi: Likewise.
11751         * manual/startup.texi: Likewise.
11752         * manual/stdio.texi: Likewise.
11753         * manual/terminal.texi: Likewise.
11754         (ONLCR): Document as POSIX.
11755         (OXTABS): Document availability on GNU/Linux as XTABS.
11756         (ONOEOT): Document availability separately from other bits.
11757         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11758         * manual/time.texi: Likewise.
11759         * manual/users.texi: Likewise.
11760         * INSTALL: Regenerated.
11761         * sysdeps/gnu/errlist.c: Regenerated.
11762
11763         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11764         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11765         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11766         puts.
11767         * configure: Regenerated.
11768
11769 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11770
11771         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11772         default includes instead of AC_HEADER_CHECK.
11773         * sysdeps/i386/configure: Regenerated.
11774
11775         [BZ #10716]
11776         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11777         * math/s_cacoshf.c (__cacoshf): Likewise.
11778         * math/s_cacoshl.c (__cacoshl): Likewise.
11779         * math/s_casinh.c (__casinh): Set signs of result from argument.
11780         * math/s_casinhf.c (__casinhf): Likewise.
11781         * math/s_casinhl.c (__casinhl): Likewise.
11782         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11783         (casinh_test): Add more tests.
11784         * sysdeps/i386/fpu/libm-test-ulps: Update.
11785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11786
11787 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11788
11789         * po/zh_TW.po: Update from translation team.
11790
11791         * login/Makefile (distribute): Remove variable.
11792         * catgets/Makefile: Likewise.
11793         * mach/Makefile: Likewise.
11794         * malloc/Makefile: Likewise.
11795         * misc/Makefile: Likewise.
11796         * iconv/Makefile: Likewise.
11797         * nscd/Makefile: Likewise.
11798         * hurd/Makefile: Likewise.
11799         * manual/Makefile: Likewise.
11800         * locale/Makefile: Likewise.
11801         * intl/Makefile: Likewise.
11802         * conform/Makefile: Likewise.
11803         * nss/Makefile: Likewise.
11804         * time/Makefile: Likewise.
11805         * soft-fp/Makefile: Likewise.
11806         * dirent/Makefile: Likewise.
11807         * gmon/Makefile: Likewise.
11808         * po/Makefile: Likewise.
11809         * rt/Makefile: Likewise.
11810         * socket/Makefile: Likewise.
11811         * math/Makefile: Likewise.
11812         * signal/Makefile: Likewise.
11813         * debug/Makefile: Likewise.
11814         * elf/Makefile: Likewise.
11815         * timezone/Makefile: Likewise.
11816         * stdlib/Makefile: Likewise.
11817         * iconvdata/Makefile: Likewise.
11818         * sunrpc/Makefile: Likewise.
11819         * io/Makefile: Likewise.
11820         * argp/Makefile: Likewise.
11821         * inet/Makefile: Likewise.
11822         * hesiod/Makefile: Likewise.
11823         * grp/Makefile: Likewise.
11824         * csu/Makefile: Likewise.
11825         * wctype/Makefile: Likewise.
11826         * crypt/Makefile: Likewise.
11827         * libio/Makefile: Likewise.
11828         * string/Makefile: Likewise.
11829         * nis/Makefile: Likewise.
11830         * resolv/Makefile: Likewise.
11831         * stdio-common/Makefile: Likewise.
11832         * wcsmbs/Makefile: Likewise.
11833         * dlfcn/Makefile: Likewise.
11834         * posix/Makefile: Likewise.
11835
11836         [BZ #6959]
11837         * timezone/Makefile: Don't install timezone files, just the programs
11838         and scripts.
11839
11840 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11841
11842         * nss/databases.def: Add missing gshadow entry.
11843
11844         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11845
11846 2012-03-06  Marek Polacek  <polacek@redhat.com>
11847
11848         [BZ #13726]
11849         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11850         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11851         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11852         * stdio-common/tst-long-dbl-fphex.c: New file.
11853
11854 2012-03-06  David S. Miller  <davem@davemloft.net>
11855
11856         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11857         (set_obp_int): New function.
11858         (get_obp_int): New function.
11859         (__get_clockfreq_via_dev_openprom): Likewise.
11860         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11861         Avoid unused variable warnings on 'val' and use builtin_expect.
11862         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11863         __builtin_expect.
11864         (INLINE_CLONE_SYSCALL): Likewise.
11865
11866 2012-03-05  David S. Miller  <davem@davemloft.net>
11867
11868         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11869
11870 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11871
11872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11873
11874         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11875         only for |x| >= 40.
11876         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11877
11878 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11879
11880         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11881         Replace gettimeofday with __vdso_gettimeofday.
11882
11883         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11884         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11885         __vdso_clock_gettime and __vdso_getcpu.
11886
11887         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11888         time with __vdso_time.
11889
11890 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11891
11892         * manual/lang.texi (size_t): Note types to which size_t may be
11893         equivalent with the GNU C Library, but do not describe when
11894         differences between them are significant.
11895
11896 2012-03-05  Andreas Jaeger  <aj@suse.de>
11897
11898         * sysdeps/i386/fpu/libm-test-ulps: Update.
11899
11900 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11901
11902         [BZ #3976]
11903         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11904         (__ieee754_pow): Save and restore rounding mode and use
11905         round-to-nearest for main computations.
11906         * math/libm-test.inc (pow_test_tonearest): New function.
11907         (pow_test_towardzero): Likewise.
11908         (pow_test_downward): Likewise.
11909         (pow_test_upward): Likewise.
11910         (main): Call the new functions.
11911         * sysdeps/i386/fpu/libm-test-ulps: Update.
11912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11913
11914         [BZ #3976]
11915         * math/libm-test.inc (cosh_test_tonearest): New function.
11916         (cosh_test_towardzero): Likewise.
11917         (cosh_test_downward): Likewise.
11918         (cosh_test_upward): Likewise.
11919         (sinh_test_tonearest): Likewise.
11920         (sinh_test_towardzero): Likewise.
11921         (sinh_test_downward): Likewise.
11922         (sinh_test_upward): Likewise.
11923         (main): Call the new functions.
11924         * sysdeps/i386/fpu/libm-test-ulps: Update.
11925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11926
11927 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11928
11929         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11930         default stack guard is set in last bytes.
11931         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11932
11933 2012-03-05  Kees Cook  <keescook@chromium.org>
11934
11935         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11936
11937         [BZ #13656]
11938         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11939         possibly allocate from heap instead of stack.
11940         * stdio-common/bug-vfprintf-nargs.c: New file.
11941         * stdio-common/Makefile (tests): Add nargs overflow test.
11942
11943 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11944
11945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11946
11947 2012-03-03  Marek Polacek  <polacek@redhat.com>
11948
11949         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11950         * math/math_private.h: Likewise.
11951         * stdlib/tst-strtod.c: Likewise.
11952         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11953         * sysdeps/x86_64/bits/atomic.h: Likewise.
11954
11955 2012-03-02  David S. Miller  <davem@davemloft.net>
11956
11957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11961         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11962         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11963         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11964         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11965
11966 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11967
11968         [BZ #13792]
11969         * manual/examples/README: New file, says the example source files
11970         can be used under GPL>=2.
11971         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11972         line containing just "*/".
11973         * manual/examples/add.c: Add copyright header (GPL>=2).
11974         * manual/examples/argp-ex1.c: Likewise.
11975         * manual/examples/argp-ex2.c: Likewise.
11976         * manual/examples/argp-ex3.c: Likewise.
11977         * manual/examples/argp-ex4.c: Likewise.
11978         * manual/examples/atexit.c: Likewise.
11979         * manual/examples/db.c: Likewise.
11980         * manual/examples/dir.c: Likewise.
11981         * manual/examples/dir2.c: Likewise.
11982         * manual/examples/execinfo.c: Likewise.
11983         * manual/examples/filecli.c: Likewise.
11984         * manual/examples/filesrv.c: Likewise.
11985         * manual/examples/fmtmsgexpl.c: Likewise.
11986         * manual/examples/genpass.c: Likewise.
11987         * manual/examples/inetcli.c: Likewise.
11988         * manual/examples/inetsrv.c: Likewise.
11989         * manual/examples/isockad.c: Likewise.
11990         * manual/examples/longopt.c: Likewise.
11991         * manual/examples/memopen.c: Likewise.
11992         * manual/examples/memstrm.c: Likewise.
11993         * manual/examples/mkfsock.c: Likewise.
11994         * manual/examples/mkisock.c: Likewise.
11995         * manual/examples/mygetpass.c: Likewise.
11996         * manual/examples/pipe.c: Likewise.
11997         * manual/examples/popen.c: Likewise.
11998         * manual/examples/rprintf.c: Likewise.
11999         * manual/examples/search.c: Likewise.
12000         * manual/examples/select.c: Likewise.
12001         * manual/examples/setjmp.c: Likewise.
12002         * manual/examples/sigh1.c: Likewise.
12003         * manual/examples/sigusr.c: Likewise.
12004         * manual/examples/stpcpy.c: Likewise.
12005         * manual/examples/strdupa.c: Likewise.
12006         * manual/examples/strftim.c: Likewise.
12007         * manual/examples/strncat.c: Likewise.
12008         * manual/examples/subopt.c: Likewise.
12009         * manual/examples/swapcontext.c: Likewise.
12010         * manual/examples/termios.c: Likewise.
12011         * manual/examples/testopt.c: Likewise.
12012         * manual/examples/testpass.c: Likewise.
12013         * manual/examples/timeval_subtract.c: Likewise.
12014
12015         [BZ #13792]
12016         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12017         function to ...
12018         * manual/timeval_subtract.c.texi: ... here, new file.
12019
12020 2012-03-02  David S. Miller  <davem@davemloft.net>
12021
12022         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12023
12024 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12025
12026         [BZ #3976]
12027         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12028         (__sin): Save and restore rounding mode and use round-to-nearest
12029         for all computations.
12030         (__cos): Save and restore rounding mode and use round-to-nearest
12031         for all computations.
12032         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12033         <fenv.h>.
12034         (tan): Save and restore rounding mode and use round-to-nearest for
12035         all computations.
12036         * math/libm-test.inc (cos_test_tonearest): New function.
12037         (cos_test_towardzero): Likewise.
12038         (cos_test_downward): Likewise.
12039         (cos_test_upward): Likewise.
12040         (sin_test_tonearest): Likewise.
12041         (sin_test_towardzero): Likewise.
12042         (sin_test_downward): Likewise.
12043         (sin_test_upward): Likewise.
12044         (tan_test_tonearest): Likewise.
12045         (tan_test_towardzero): Likewise.
12046         (tan_test_downward): Likewise.
12047         (tan_test_upward): Likewise.
12048         (main): Call the new functions.
12049         * sysdeps/i386/fpu/libm-test-ulps: Update.
12050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12051
12052         [BZ #10135]
12053         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12054         small n, then large n, before computing and testing k+n.
12055         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12056         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12057         Likewise.
12058         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12059         Likewise.
12060         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12061         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12062         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12063         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12064         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12065         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12066         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12067         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12068         * math/libm-test.inc (scalbn_test): Add more tests.
12069         (scalbln_test): Likewise.
12070
12071         * manual/filesys.texi (mode_t): Describe constraints on size and
12072         signedness, not exact equivalence to a particular type.
12073         (ino_t): Likewise.
12074         (ino64_t): Likewise.
12075         (dev_t): Likewise.
12076         (nlink_t): Likewise.
12077         (blkcnt_t): Likewise.
12078         (blkcnt64_t): Likewise.
12079         * manual/llio.texi (off_t): Likewise.
12080
12081         [BZ #3976]
12082         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12083         (__ieee754_exp): Save and restore rounding mode and use
12084         round-to-nearest for all computations.
12085         * math/libm-test.inc (exp_test_tonearest): New function.
12086         (exp_test_towardzero): Likewise.
12087         (exp_test_downward): Likewise.
12088         (exp_test_upward): Likewise.
12089         (main): Call the new functions.
12090         * sysdeps/i386/fpu/libm-test-ulps: Update.
12091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12092
12093 2012-03-01  Chris Demetriou  <cgd@google.com>
12094
12095         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12096         have predictable order.
12097
12098 2012-03-01  David S. Miller  <davem@davemloft.net>
12099
12100         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12101
12102         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12103         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12104         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12105         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12106
12107         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12108         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12109         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12110         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12111         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12112         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12113         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12114         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12115         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12116
12117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12118
12119         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12120         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12121         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12122
12123         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12124         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12125         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12126         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12127         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12128         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12129         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12130         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12131         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12132         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12133         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12134         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12135         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12136         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12137         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12138         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12139         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12140         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12141         * sysdeps/sparc/elf/configure: Regenerated.
12142
12143 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12144
12145         * configure.in (AS, LD): Require binutils 2.20 or later.
12146         * configure: Regenerated.
12147         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12148         as required minimum version.
12149         * INSTALL: Regenerated.
12150
12151         [BZ #2541]
12152         [BZ #4108]
12153         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12154         before squaring exponent.
12155         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12156         bottom long double and 27 bits of top long double before squaring
12157         exponent.
12158         * math/libm-test.inc (erfc_test): Add more tests.
12159         * sysdeps/i386/fpu/libm-test-ulps: Update.
12160         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12162
12163 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12164
12165         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12166         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12167         containing bit-fields.
12168         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12169         * soft-fp/single.h (_FP_UNION_S): Likewise.
12170         * soft-fp/double.h (_FP_UNION_D): Likewise.
12171
12172 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12173
12174         [BZ #13786]
12175         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12176         not include ../strcmp.S.
12177         [USE_AS_STRNCASECMP_L]: Likewise.
12178         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12179         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12180         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12181         (__strncasecmp_l_ia32): Define as alias to
12182         __strncasecmp_l_nonascii.
12183
12184         [BZ #5794]
12185         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12186         * sysdeps/i386/fpu/libm-test-ulps: Update.
12187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12188
12189         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12191
12192 2012-02-29  Jeff Law  <law@redhat.com>
12193
12194         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12195         out of bounds read.
12196
12197 2012-02-29  Marek Polacek  <polacek@redhat.com>
12198
12199         [BZ #13706]
12200         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12201         * elf/Makefile: Add rules to run tst-unused-dep.out.
12202
12203 2012-02-28  David S. Miller  <davem@davemloft.net>
12204
12205         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12206         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12207         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12208         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12209         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12210         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12211
12212 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12213
12214         * math/libm-test.inc (llround_test): Move one test from
12215         lround_test.  Use TEST_f_L in moved test.
12216         (lround_test): Move misplaced test to llround_test.  Add testcase
12217         from bug 2561.
12218
12219 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12220
12221         * sysdeps/x86_64/fpu/e_expf.S: New file.
12222         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12223
12224 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12225
12226         [BZ #13637]
12227         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12228         of remain_len that may cause incomplete multi-byte character and
12229         false match.
12230         * posix/bug-regex33.c: New file.
12231         * posix/Makefile (tests): Add bug-regex33.
12232
12233 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12234
12235         * manual/macros.texi: New file.
12236         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12237         * manual/libc.texinfo: Include macros.texi.
12238         * manual/creatute.texi: Likewise.
12239         * manual/install.texi: Likewise.
12240         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12241         @glibcadj{} in references to the GNU C Library.
12242         * manual/charset.texi: Likewise.
12243         * manual/conf.texi: Likewise.
12244         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12245         when not using those macros.
12246         * manual/creature.texi: Likewise.
12247         * manual/crypt.texi: Likewise.
12248         * manual/errno.texi: Likewise.
12249         * manual/filesys.texi: Likewise.
12250         * manual/header.texi: Likewise.
12251         * manual/install.texi: Likewise.
12252         * manual/intro.texi: Likewise.
12253         * manual/io.texi: Likewise.
12254         * manual/job.texi: Likewise.
12255         * manual/lang.texi: Likewise.
12256         * manual/libc.texiinfo: Likewise.
12257         * manual/llio.texi: Likewise.
12258         * manual/locale.texi: Likewise.
12259         * manual/maint.texi: Likewise.
12260         * manual/math.texi: Likewise.
12261         * manual/memory.texi: Likewise.
12262         * manual/message.texi: Likewise.
12263         * manual/nss.texi: Likewise.
12264         * manual/pattern.texi: Likewise.
12265         * manual/process.texi: Likewise.
12266         * manual/resource.texi: Likewise.
12267         * manual/search.texi: Likewise.
12268         * manual/setjmp.texi: Likewise.
12269         * manual/signal.texi: Likewise.
12270         * manual/socket.texi: Likewise.
12271         * manual/startup.texi: Likewise.
12272         * manual/stdio.texi: Likewise.
12273         * manual/string.texi: Likewise.
12274         * manual/sysinfo.texi: Likewise.
12275         * manual/syslog.texi: Likewise.
12276         * manual/terminal.texi: Likewise.
12277         * manual/time.texi: Likewise.
12278         * manual/users.texi: Likewise.
12279         * INSTALL: Regenerated.
12280         * NOTES: Regenerated.
12281         * sysdeps/gnu/errlist.c: Regenerated.
12282
12283 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12284
12285         * include/dirent.h: Include <dirstream.h> before
12286         <dirent/dirent.h>.
12287
12288 2012-02-28  David S. Miller  <davem@davemloft.net>
12289
12290         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12291         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12292         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12293         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12294
12295 2012-02-27  David S. Miller  <davem@davemloft.net>
12296
12297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12299         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12300         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12301
12302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12303         frame pointer instead of stack pointer relative arg slot.
12304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12305         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12306         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12307
12308 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12309
12310         [BZ #3992]
12311         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12312
12313 2012-02-27  David S. Miller  <davem@davemloft.net>
12314
12315         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12317         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12318         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12319         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12320         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12321         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12322         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12323
12324 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12325
12326         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12327         later.  Allow versions 5-9.
12328         * configure: Regenerated.
12329         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12330         required minimum version and 4.6 as recommended version.  Do not
12331         mention bugs in GCC 2.7 and 2.8.
12332         * INSTALL: Regenerated.
12333
12334 2012-02-27  David S. Miller  <davem@davemloft.net>
12335
12336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12340         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12341         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12342         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12343         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12344
12345         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12346         manipulate bits before adding and subtracting TWO112[sx].
12347         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12348
12349 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12350
12351         [BZ #13775]
12352         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12353         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12354         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12355         being in POSIX, because they are in 1003.1-2008.
12356
12357         * rt/tst-aio.c: Include <fcntl.h>.
12358         * rt/tst-aio7.c: Likewise.
12359         * rt/tst-aio64.c: Likewise.
12360
12361         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12362
12363 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12364
12365         * manual/install.texi (--with-headers): Describe headers as
12366         interface headers, not private headers.
12367         (Specific advice for GNU/Linux systems): Describe use of headers
12368         from "make headers_install", not private headers from older
12369         kernels.
12370         * INSTALL: Regenerated.
12371         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12372         Change to 2.6.19.
12373         * sysdeps/unix/sysv/linux/configure: Regenerated.
12374
12375         * manual/llio.texi (fclean): Remove documentation.
12376
12377         * manual/Makefile (libc-texi-generated): New variable.  Include
12378         version.texi.
12379         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12380         $(libc-texi-generated), not duplicated list of files.
12381         (version.texi, stamp-version): New rules.
12382         (realclean): Remove $(libc-texi-generated), not individual files
12383         from that list.  Do not remove dir-add.texinfo.
12384         * manual/libc.texinfo: Comment out uses of edition numbers and
12385         references to printed manual.  Remove last-updated dates.
12386         (EDITION): Comment out.
12387         (ISBN): Likewise.
12388         (VERSION, UPDATED): Remove.
12389         (version.texi): Include.
12390
12391 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12392
12393         * sysdeps/posix/spawni.c: Include <signal.h>.
12394         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12395         * sysdeps/pthread/aio_fsync.c: Likewise.
12396
12397 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12398
12399         * conform/Makefile (tests): Run only when not cross-compiling and
12400         when fast-check is not defined.
12401
12402         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12403         * conform/data/limits.h-data: Fixes for POSIX2008.
12404         * conform/run-conformtest.sh: Run all tests.
12405         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12406         headers.
12407         * include/bits/dlfcn.h: Likewise.
12408         * include/langinfo.h: Likewise.
12409         * include/monetary.h: Likewise.
12410         * include/sys/poll.h: Likewise.
12411
12412         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12413         for __USE_GNU.
12414         * posix/spawn.h: Define __need_sigset_t.
12415         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12416         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12417         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12418         to get sigevent_t only.
12419         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12420         only for __USE_GNU.
12421         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12422         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12423         process_vm_writev only for __USE_GNU.
12424         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12425
12426         * conform/Makefile: For now ignore errors from run-conformtest.
12427         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12428         POSIX to avoid namespace pollution.  Don't prepend headers.
12429         * conform/data/aio.h-data: Fixes for POSIX testing.
12430         * conform/data/fcntl.h-data: Likewise.
12431         * conform/data/glob.h-data: Likewise.
12432         * conform/data/grp.h-data: Likewise.
12433         * conform/data/pthread.h-data: Likewise.
12434         * conform/data/pwd.h-data: Likewise.
12435         * conform/data/signal.h-data: Likewise.
12436         * conform/data/spawn.h-data: Likewise.
12437         * conform/data/stdio.h-data: Likewise.
12438         * conform/data/stdlib.h-data: Likewise.
12439         * conform/data/stropts.h-data: Likewise.
12440         * conform/data/sys/mman.h-data: Likewise.
12441         * conform/data/sys/stat.h-data: Likewise.
12442         * conform/data/sys/types.h-data: Likewise.
12443         * conform/data/sys/wait.h-data: Likewise.
12444         * conform/data/time.h-data: Likewise.
12445         * conform/data/unistd.h-data: Likewise.
12446         * conform/data/utime.h-data: Likewise.
12447
12448         * io/sys/stat.h: fchmod was always in POSIX.
12449         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12450         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12451         * rt/aio.h: Define __need_timespec before including <time.h>.
12452         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12453         struct.  Add forward declaration of pthread_attr_t and use it in
12454         sigevent.
12455         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12456         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12457         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12458         always remove CLK_TCK definition.
12459
12460 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12461
12462         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12463
12464 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12465
12466         * conform/run-conformtest.sh: New file.
12467         * conform/Makefile: Run run-conformtest for tests.
12468         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12469         support.
12470
12471         * conform/data/uchar.h-data: New file.
12472         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12473         * conform/data/arpa/inet.h-data: Likewise.
12474         * conform/data/assert.h-data: Likewise.
12475         * conform/data/complex.h-data: Likewise.
12476         * conform/data/cpio.h-data: Likewise.
12477         * conform/data/ctype.h-data: Likewise.
12478         * conform/data/dirent.h-data: Likewise.
12479         * conform/data/dlfcn.h-data: Likewise.
12480         * conform/data/errno.h-data: Likewise.
12481         * conform/data/fcntl.h-data: Likewise.
12482         * conform/data/float.h-data: Likewise.
12483         * conform/data/fmtmsg.h-data: Likewise.
12484         * conform/data/fnmatch.h-data: Likewise.
12485         * conform/data/ftw.h-data: Likewise.
12486         * conform/data/glob.h-data: Likewise.
12487         * conform/data/grp.h-data: Likewise.
12488         * conform/data/iconv.h-data: Likewise.
12489         * conform/data/inttypes.h-data: Likewise.
12490         * conform/data/langinfo.h-data: Likewise.
12491         * conform/data/libgen.h-data: Likewise.
12492         * conform/data/limits.h-data: Likewise.
12493         * conform/data/locale.h-data: Likewise.
12494         * conform/data/math.h-data: Likewise.
12495         * conform/data/monetary.h-data: Likewise.
12496         * conform/data/mqueue.h-data: Likewise.
12497         * conform/data/ndbm.h-data: Likewise.
12498         * conform/data/net/if.h-data: Likewise.
12499         * conform/data/netdb.h-data: Likewise.
12500         * conform/data/netinet/in.h-data: Likewise.
12501         * conform/data/nl_types.h-data: Likewise.
12502         * conform/data/poll.h-data: Likewise.
12503         * conform/data/pthread.h-data: Likewise.
12504         * conform/data/pwd.h-data: Likewise.
12505         * conform/data/regex.h-data: Likewise.
12506         * conform/data/sched.h-data: Likewise.
12507         * conform/data/search.h-data: Likewise.
12508         * conform/data/semaphore.h-data: Likewise.
12509         * conform/data/setjmp.h-data: Likewise.
12510         * conform/data/signal.h-data: Likewise.
12511         * conform/data/spawn.h-data: Likewise.
12512         * conform/data/stdarg.h-data: Likewise.
12513         * conform/data/stdio.h-data: Likewise.
12514         * conform/data/stdlib.h-data: Likewise.
12515         * conform/data/string.h-data: Likewise.
12516         * conform/data/strings.h-data: Likewise.
12517         * conform/data/stropts.h-data: Likewise.
12518         * conform/data/sys/ipc.h-data: Likewise.
12519         * conform/data/sys/mman.h-data: Likewise.
12520         * conform/data/sys/msg.h-data: Likewise.
12521         * conform/data/sys/resource.h-data: Likewise.
12522         * conform/data/sys/select.h-data: Likewise.
12523         * conform/data/sys/sem.h-data: Likewise.
12524         * conform/data/sys/shm.h-data: Likewise.
12525         * conform/data/sys/socket.h-data: Likewise.
12526         * conform/data/sys/stat.h-data: Likewise.
12527         * conform/data/sys/statvfs.h-data: Likewise.
12528         * conform/data/sys/time.h-data: Likewise.
12529         * conform/data/sys/timeb.h-data: Likewise.
12530         * conform/data/sys/times.h-data: Likewise.
12531         * conform/data/sys/types.h-data: Likewise.
12532         * conform/data/sys/uio.h-data: Likewise.
12533         * conform/data/sys/un.h-data: Likewise.
12534         * conform/data/sys/utsname.h-data: Likewise.
12535         * conform/data/sys/wait.h-data: Likewise.
12536         * conform/data/syslog.h-data: Likewise.
12537         * conform/data/tar.h-data: Likewise.
12538         * conform/data/termios.h-data: Likewise.
12539         * conform/data/utime.h-data: Likewise.
12540         * conform/data/utmpx.h-data: Likewise.
12541         * conform/data/varargs.h-data: Likewise.
12542         * conform/data/wchar.h-data: Likewise.
12543         * conform/data/wctype.h-data: Likewise.
12544         * conform/data/wordexp.h-data: Likewise.
12545
12546         * include/stropts.h: New file.
12547         * include/uchar.h: New file.
12548         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12549         * include/assert.h: Likewise.
12550         * include/ctype.h: Likewise.
12551         * include/dirent.h: Likewise.
12552         * include/dlfcn.h: Likewise.
12553         * include/fcntl.h: Likewise.
12554         * include/fnmatch.h: Likewise.
12555         * include/glob.h: Likewise.
12556         * include/grp.h: Likewise.
12557         * include/libio.h: Likewise.
12558         * include/locale.h: Likewise.
12559         * include/math.h: Likewise.
12560         * include/net/if.h: Likewise.
12561         * include/netdb.h: Likewise.
12562         * include/netinet/in.h: Likewise.
12563         * include/pthread.h: Likewise.
12564         * include/pwd.h: Likewise.
12565         * include/regex.h: Likewise.
12566         * include/sched.h: Likewise.
12567         * include/search.h: Likewise.
12568         * include/setjmp.h: Likewise.
12569         * include/signal.h: Likewise.
12570         * include/stdio.h: Likewise.
12571         * include/stdlib.h: Likewise.
12572         * include/string.h: Likewise.
12573         * include/sys/cdefs.h: Likewise.
12574         * include/sys/mman.h: Likewise.
12575         * include/sys/msg.h: Likewise.
12576         * include/sys/resource.h: Likewise.
12577         * include/sys/select.h: Likewise.
12578         * include/sys/socket.h: Likewise.
12579         * include/sys/stat.h: Likewise.
12580         * include/sys/statvfs.h: Likewise.
12581         * include/sys/time.h: Likewise.
12582         * include/sys/times.h: Likewise.
12583         * include/sys/uio.h: Likewise.
12584         * include/sys/utsname.h: Likewise.
12585         * include/sys/wait.h: Likewise.
12586         * include/termios.h: Likewise.
12587         * include/time.h: Likewise.
12588         * include/ulimit.h: Likewise.
12589         * include/unistd.h: Likewise.
12590         * include/utime.h: Likewise.
12591         * include/wchar.h: Likewise.
12592         * include/wctype.h: Likewise.
12593         * include/wordexp.h: Likewise.
12594
12595         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12596
12597         * time/time.h: TIME_UTC must be a macro.
12598         Make timespec_get available for ISO C11 only as well.
12599
12600 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12601
12602         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12603         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12604
12605 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * configure.in: Use -o not -a in test for unsupported multi-arch.
12608
12609 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * manual/texinfo.tex: Update to version 2012-01-19.16.
12612
12613 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12614
12615         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12616
12617 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12618
12619         [BZ #13738]
12620         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12621         * manual/fdl-1.3.texi: New file.
12622         * manual/fdl-1.1.texi: File removed.
12623
12624         [BZ #13738]
12625         * manual/libc.texinfo (FDL_VERSION): New @set.
12626         Use it for mention of FDL in cover text.
12627         (Documentation License): Use it in @include file name.
12628
12629 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12630             Roland McGrath  <roland@hack.frob.com>
12631
12632         [BZ #5461]
12633         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12634         not LONG_LONG_MAX and LONG_LONG_MIN.
12635         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12636         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12637         name.
12638         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12639
12640 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12641
12642         [BZ #2547]
12643         [BZ #11365]
12644         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12645         manipulate bits before adding and subtracting TWO23[sx].
12646         * math/libm-test.inc (nearbyint_test): Add more tests.
12647
12648 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12649
12650         [BZ #2548]
12651         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12652         bits before adding and subtracting TWO23[sx].
12653         * math/libm-test.inc (rint_test): Add more tests.
12654         (rint_test_tonearest): Likewise.
12655         (rint_test_towardzero): Likewise.
12656         (rint_test_downward): Likewise.
12657         (rint_test_upward: Likewise.
12658
12659 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12660
12661         [BZ #10110]
12662         * include/stdc-predef.h: New file.  Extracted from features.h.
12663         * include/features.h: Include stdc-predef.h.
12664         * Makefile (headers): Add stdc-predef.h.
12665         * CONFORMANCE (Compiler limitations): Update.
12666
12667 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12668
12669         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12670
12671 2012-02-21  David S. Miller  <davem@davemloft.net>
12672
12673         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12674         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12675
12676 2012-02-20  David S. Miller  <davem@davemloft.net>
12677
12678         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12679         using a normal save/restore sequence, rather than allocating a
12680         dummy stack frame just to store a frame pointer and restore.
12681         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12682
12683 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12684
12685         * manual/install.texi: Fix stray word in line-wrapped comment.
12686
12687 2012-02-20  David S. Miller  <davem@davemloft.net>
12688
12689         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12690         both binutils and gcc support GOTDATA.
12691
12692         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12693         "rd %pc" in the PIC register setup sequences.
12694
12695         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12696         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12697         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12698         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12699         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12700         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12701         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12702         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12703         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12704         (SYSCALL_ERROR_HANDLER): Likewise.
12705         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12706         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12707         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12708         (SYSCALL_ERROR_HANDLER): Likewise.
12709
12710         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12711         (HAVE_GCC_GOTDATA): New.
12712         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12713         relocation support in both binutils and gcc.
12714         * sysdeps/sparc/elf/configure: Regenerate.
12715
12716         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12717         * sysdeps/sparc/sparc32/elf/configure: Delete.
12718         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12719         * sysdeps/sparc/sparc64/elf/configure: Delete.
12720         * sysdeps/sparc/elf/configure.in: New file.
12721         * sysdeps/sparc/elf/configure: Generate.
12722
12723         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12724         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12725         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12726         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12727         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12728
12729 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12730
12731         * manual/install.texi: Do not mention specific glibc version
12732         numbers.
12733         * manual/libc.texinfo (VERSION, UPDATED): Update.
12734         (@copying): Use @copyright{} and range of years.
12735
12736 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12737
12738         [BZ #13695]
12739         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12740         [crti.S not in sysdirs] (generated): Do not append.
12741         [crti.S not in sysdirs] (omit-deps): Likewise.
12742         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12743         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12744         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12745         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12746         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12747         Likewise.
12748         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12749         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12750         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12751         * csu/defs.awk: Remove file.
12752         * sysdeps/generic/initfini.c: Likewise.
12753         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12754         variable.
12755         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12756         Likewise.
12757
12758 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12759
12760         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12761         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12762         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12763         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12764         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12765         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12766         <bits/epoll.h>.
12767         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12768         (__EPOLL_PACKED): Define to empty if not defined by
12769         <bits/epoll.h>.
12770         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12771         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12772         bits/epoll.h.
12773
12774 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12777         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12778         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12779         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12780         <bits/timerfd.h>.
12781         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12782         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12783         bits/timerfd.h.
12784
12785 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12786
12787         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12788         in C locale.
12789         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12790         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12791         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12793
12794 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12795
12796         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12797         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12798
12799 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12800
12801         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12802         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12803         defined.
12804         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12805         Likewise.
12806         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12807         entry for 2.16.
12808
12809 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12810
12811         * math/w_acos.c: Use non-signaling floating-point comparisons.
12812         * math/w_acosf.c: Likewise.
12813         * math/w_acosh.c: Likewise.
12814         * math/w_acoshf.c: Likewise.
12815         * math/w_acoshl.c: Likewise.
12816         * math/w_acosl.c: Likewise.
12817         * math/w_asin.c: Likewise.
12818         * math/w_asinf.c: Likewise.
12819         * math/w_asinl.c: Likewise.
12820         * math/w_atanh.c: Likewise.
12821         * math/w_atanhf.c: Likewise.
12822         * math/w_atanhl.c: Likewise.
12823         * math/w_exp2.c: Likewise.
12824         * math/w_exp2f.c: Likewise.
12825         * math/w_exp2l.c: Likewise.
12826         * math/w_j0.c: Likewise.
12827         * math/w_j0f.c: Likewise.
12828         * math/w_j0l.c: Likewise.
12829         * math/w_j1.c: Likewise.
12830         * math/w_j1f.c: Likewise.
12831         * math/w_j1l.c: Likewise.
12832         * math/w_jn.c: Likewise.
12833         * math/w_jnf.c: Likewise.
12834         * math/w_log.c: Likewise.
12835         * math/w_log10.c: Likewise.
12836         * math/w_log10f.c: Likewise.
12837         * math/w_log10l.c: Likewise.
12838         * math/w_log2.c: Likewise.
12839         * math/w_log2f.c: Likewise.
12840         * math/w_log2l.c: Likewise.
12841         * math/w_logf.c: Likewise.
12842         * math/w_logl.c: Likewise.
12843         * math/w_sqrt.c: Likewise.
12844         * math/w_sqrtf.c: Likewise.
12845         * math/w_sqrtl.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12847         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12848         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12849         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12850         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12851
12852 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12853
12854         [BZ #9739]
12855         * manual/string.texi (strnlen): Use correct parameter name in
12856         equivalent expression.
12857
12858 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12859
12860         [BZ #11174]
12861         * manual/users.texi (seteuid): Consistently use neweuid for
12862         argument name.
12863
12864 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12865
12866         [BZ #13704]
12867         * manual/nss.texi (Services in the NSS configuration): Correct
12868         list of services in example configuration file.
12869
12870 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12871
12872         [BZ #11322]
12873         * manual/arith.texi: Remove statements about negative zero
12874         behaving identically to zero.
12875
12876 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12877
12878         [BZ #5993]
12879         * manual/install.texi: Do not document upgrading from libc5.
12880
12881 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12882
12883         [BZ #4596]
12884         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12885
12886 2012-02-18  David S. Miller  <davem@davemloft.net>
12887
12888         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12889         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12890         %o7 across the call.
12891         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12892         instead.
12893         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12894         SETUP_PIC_REG_LEAF.
12895         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12896         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12897         * sysdeps/sparc/crtn.S: Likewise.
12898
12899 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12900
12901         * aout/Makefile: Remove.
12902
12903 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12904
12905         [BZ #13058]
12906         * manual/examples/argp-ex1.c (main): Format definition in GNU
12907         style.
12908         * manual/examples/argp-ex2.c (main): Likewise.
12909         * manual/examples/argp-ex3.c (main): Likewise.
12910         * manual/examples/argp-ex4.c (main): Likewise.
12911         * manual/examples/longopt.c (main): Use new-style prototype
12912         definition.
12913         * manual/examples/strncat.c (main): Specify return type and use
12914         (void) for arguments.
12915         * manual/examples/subopt.c (main): Use char **argv argument.
12916
12917 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12918
12919         [BZ #5077]
12920         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12921         rounding modes.
12922
12923 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12924
12925         [BZ #6907]
12926         * manual/string.texi (strchr): Change when strchrnul is
12927         recommended.
12928
12929 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12930
12931         [BZ #174]
12932         * manual/locale.texi (setlocale): Document LOCPATH.
12933
12934 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12935
12936         [BZ #10210]
12937         * manual/process.texi (execle): Move @dots{} before last argument.
12938
12939 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12940
12941         [BZ #12047]
12942         * manual/charset.texi (Generic Charset Conversion): Fix typo
12943         (LC_TYPE -> LC_CTYPE).
12944
12945 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12946
12947         [BZ #5805]
12948         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12949         (scalbnf): Likewise.
12950         (scalbnl): Likewise.
12951         (scalbln): Likewise.
12952         (scalblnf): Likewise.
12953         (scalblnl): Likewise.
12954         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12955         (vwarnx): Likewise.
12956         (verr): Likewise.
12957         (verrx): Likewise.
12958         * manual/filesys.texi (telldir): Use braces around return type.
12959         * manual/llio.texi (mmap): Add space after comma.
12960         (mmap64): Likewise.
12961         * manual/math.texi (jn): Use @var{} on parameter names.
12962         (jnf): Likewise.
12963         (jnl): Likewise.
12964         (yn): Likewise.
12965         (ynf): Likewise.
12966         (ynl): Likewise.
12967         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12968         line.
12969         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12970         "...".
12971         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12972         (sched_get_priority_max): Likewise.
12973         * manual/signal.texi (sigvec): Add space after comma.
12974         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12975         names.
12976         (if_indextoname): Likewise.
12977         (if_freenameindex): Likewise.
12978         (sendto): Use ',' instead of '.' in prototype.
12979         * manual/startup.texi (syscall): Use @dots{} instead of literal
12980         "...".
12981         * manual/stdio.texi (__fpending): Separate initial words of
12982         paragraph from @deftypefun line.
12983         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12984         "...".
12985         (vsyslog): Use @var{} on parameter names.
12986         * manual/terminal.texi (stty): Use @var{} on parameter names.
12987         * manual/users.texi (getutmp): Use @var{} on parameter names.
12988         (getutmpx): Likewise.
12989
12990 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12991
12992         [BZ #6884]
12993         * manual/stdio.texi (fopen): Fix typos in description of
12994         ",ccs=STRING".
12995
12996 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12997
12998         [BZ #4026]
12999         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13000         get clock_id definition.
13001
13002 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13003
13004         [BZ #4822]
13005         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13006         (madvise): Cast every argument to void on its own.
13007
13008 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13009
13010         [BZ #9902]
13011         * manual/startup.texi (Exit Status): Fix typo.
13012
13013 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13014
13015         [BZ #10140]
13016         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13017         * manual/examples/argp-ex2.c: Likewise.
13018         * manual/examples/argp-ex3.c: Likewise.
13019
13020 2012-02-16  Richard Henderson  <rth@redhat.com>
13021
13022         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13023         * sysdeps/s390/s390-32/initfini.c: Remove.
13024         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13025         * sysdeps/s390/s390-64/initfini.c: Remove.
13026
13027 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13028
13029         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13030         compiler output for sysdeps/generic/initfini.c.
13031         * sysdeps/sh/elf/initfini.c: Remove file.
13032
13033 2012-02-16  David S. Miller  <davem@davemloft.net>
13034
13035         [BZ #11494]
13036         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13037
13038         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13039         * sysdeps/sparc/crti.S: New file.
13040         * sysdeps/sparc/crtn.S: New file.
13041         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13042         * sysdeps/sparc/sparc64/Makefile: Likewise.
13043
13044 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13045
13046         [BZ #3335]
13047         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13048
13049 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13050
13051         [BZ #4822]
13052         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13053
13054         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13055         (write, read, close): Likewise.
13056         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13057
13058 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13059
13060         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13061         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13062         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13063         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13064         <bits/signalfd.h>.
13065         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13066         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13067         bits/signalfd.h.
13068
13069 2012-02-14  Marek Polacek  <polacek@redhat.com>
13070
13071         * sysdeps/x86_64/crti.S: New file.
13072         * sysdeps/x86_64/crtn.S: New file.
13073         * sysdeps/x86_64/elf/initfini.c: Remove file.
13074
13075 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13076
13077         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13078         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13079         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13080         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13081         <bits/inotify.h>.
13082         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13083         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13084         bits/inotify.h.
13085
13086 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13087
13088         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13089         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13090         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13091         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13092         <bits/eventfd.h>.
13093         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13094         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13095         bits/eventfd.h.
13096
13097 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13098
13099         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13100         __feraiseexcept instead of feraiseexcept.
13101
13102         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13103         nanosleep invocations.
13104         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13105         strings, and add error checking for a nanosleep invocations.
13106
13107 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13108
13109         Replace FSF snail mail address with URLs, as per GNU coding standards.
13110         Most of the snail mail addresses were wrong anyway, and omitting
13111         them makes the source code easier to maintain.  Almost all of the
13112         changes are to license notices and to locale LC_IDENTIFICATION
13113         addresses, except for this one:
13114         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13115         not its snail mail address.
13116
13117 2012-02-09  Richard Henderson  <rth@twiddle.net>
13118
13119         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13120         of kernel-features.h.
13121
13122         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13123
13124 2012-02-08  Marek Polacek  <polacek@redhat.com>
13125
13126         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13127         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13128         * sysdeps/gnu/_G_config.h: Likewise.
13129         * sysdeps/generic/_G_config.h: Likewise.
13130
13131 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13132
13133         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13134         tests.
13135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13136
13137         * sysdeps/powerpc/powerpc32/crti.S: New file.
13138         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13139         * sysdeps/powerpc/powerpc64/crti.S: New file.
13140         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13141
13142         * Makeconfig (have-initfini): Don't set.
13143         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13144         * configure.in (nopic_initfini): Don't substitute.
13145         * config.h.in (HAVE_INITFINI): Don't #undef.
13146         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13147         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13148
13149 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13150
13151         Support crti.S and crtn.S provided directly by architectures.
13152         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13153         [crti.S in sysdirs] (omit-deps): Likewise.
13154         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13155         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13156         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13157         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13158         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13159         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13160         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13161         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13162         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13163         compiler output for sysdeps/generic/initfini.c.
13164         * sysdeps/i386/elf/Makefile: Remove file.
13165         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13166
13167 2012-02-07  Marek Polacek  <polacek@redhat.com>
13168
13169         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13170         * sysdeps/gnu/_G_config.h: Likewise.
13171         * sysdeps/mach/hurd/_G_config.h: Likewise.
13172
13173 2012-02-07  Marek Polacek  <polacek@redhat.com>
13174
13175         * math/Makefile (tests): Add tst-CMPLX2.
13176         * math/tst-CMPLX2.c: New file.
13177
13178 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13179
13180         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13181
13182         * math/libm-test.inc (jn_test): Add missing L suffix.
13183
13184 2012-02-06  Marek Polacek  <polacek@redhat.com>
13185
13186         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13187         * sysdeps/i386/fpu/e_powf.S: Likewise.
13188         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13189         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13190         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13191         * sysdeps/i386/fpu/e_pow.S: Likewise.
13192         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13193         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13194         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13195         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13196         * sysdeps/i386/fpu/e_log2.S: Likewise.
13197         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13198         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13199         * sysdeps/i386/fpu/e_powl.S: Likewise.
13200         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13201         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13202         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13203         * sysdeps/i386/fpu/e_logl.S: Likewise.
13204         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13205         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13206         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13207         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13208         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13209         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13210         * sysdeps/i386/fpu/e_log.S: Likewise.
13211         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13212         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13213         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13214         * sysdeps/i386/fpu/e_logf.S: Likewise.
13215         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13216         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13217         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13218         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13219         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13220         * sysdeps/i386/fpu/e_log10.S: Likewise.
13221         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13222         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13223         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13224         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13225         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13226         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13227         * sysdeps/i386/asm-syntax.h: Likewise.
13228         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13229         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13230         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13231         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13232         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13233         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13234         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13235         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13236         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13237         * sysdeps/powerpc/sysdep.h: Likewise.
13238         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13239         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13240
13241 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13242
13243         [BZ #411]
13244         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13245
13246 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13247
13248         * sysdeps/i386/sysdep.h: Include <features.h>.
13249         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13250         version.
13251
13252 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13253
13254         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13255         Define.
13256         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13257         LOAD_PIC_REG_STR.
13258
13259 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13260
13261         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13262         (SETUP_PIC_REG): Use GET_PC_THUNK.
13263         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13264         macro.
13265
13266 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13267
13268         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13269         for non-PIC compilation.
13270         (SETUP_PIC_REG): Add .p2align directive.
13271         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13272         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13273         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13274         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13275         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13276         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13277         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13278         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13279         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13280         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13281         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13282         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13283         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13284         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13285         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13286         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13287         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13288         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13289         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13290         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13291         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13292         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13293         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13294         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13295         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13296         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13297         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13298         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13299         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13300         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13301         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13302         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13303         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13304         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13305         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13306         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13307         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13308         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13309         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13310         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13311         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13312
13313 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13314
13315         * math/tst-CMPLX.c: Include <stdio.h>.
13316
13317 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13320         float.
13321         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13322         * sysdeps/sparc/bits/mathdef.h: Likewise.
13323
13324 2012-01-31  Marek Polacek  <polacek@redhat.com>
13325
13326         * libio/libio.h: Don't define _PARAMS.
13327         * locale/programs/config.h: Don't define PARAMS.
13328         * stdlib/strtol_l.c: Likewise.
13329         (__strtol_l): Remove PARAMS from the prototype.
13330
13331 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13332
13333         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13334         names.  Just use the correct names.  Remove unnecessary wrapper
13335         functions.
13336         * malloc/arena.c: Likewise.
13337         * malloc/hooks.c: Likewise.
13338
13339         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13340         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13341         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13342
13343 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13344
13345         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13346         into tail calls.
13347         (update_get_addr): New function.
13348         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13349         GET_ADDR_MODULE parameter.
13350
13351 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13352
13353         * crypt/cert.c: Remove __STDC__ conditionals.
13354         * crypt/crypt-entry.c: Likewise.
13355         * crypt/crypt_util.c: Likewise.
13356         * libio/filedoalloc.c: Likewise.
13357         * libio/fileops.c: Likewise.
13358         * libio/genops.c: Likewise.
13359         * libio/iofclose.c: Likewise.
13360         * libio/iofdopen.c: Likewise.
13361         * libio/iofopen.c: Likewise.
13362         * libio/iofopen64.c: Likewise.
13363         * libio/iogetdelim.c: Likewise.
13364         * libio/iopopen.c: Likewise.
13365         * libio/obprintf.c: Likewise.
13366         * libio/oldfileops.c: Likewise.
13367         * libio/oldiofclose.c: Likewise.
13368         * libio/oldiofdopen.c: Likewise.
13369         * libio/oldiofopen.c: Likewise.
13370         * libio/oldiopopen.c: Likewise.
13371         * libio/wfiledoalloc.c: Likewise.
13372         * libio/wgenops.c: Likewise.
13373         * locale/programs/xmalloc.c: Likewise.
13374         * misc/syslog.c: Likewise.
13375         * stdio-common/xbug.c: Likewise.
13376         * string/memchr.c: Likewise.
13377         * string/memcmp.c: Likewise.
13378         * string/memrchr.c: Likewise.
13379         * string/rawmemchr.c: Likewise.
13380         * sysdeps/posix/getcwd.c: Likewise.
13381         * time/strftime_l.c: Likewise.
13382
13383 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13384
13385         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13386         * config.make.in (config-cflags-sse2avx): Define.
13387         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13388         Fix typo.
13389
13390 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13391
13392         * scripts/config.guess: Update from upstream config git repository.
13393         * scripts/config.sub: Likewise.
13394
13395 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13396
13397         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13398         (EM_NUM): Update.
13399         (R_TILEPRO_*, R_TILEGX_*): New macros.
13400
13401         * scripts/firstversions.awk: Fix bug in version range handling.
13402
13403         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13404
13405         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13406
13407         * include/sys/epoll.h: New file.
13408         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13409         libc_hidden_def.
13410
13411 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13412
13413         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13414         Avoid unnecessary __WORDSIZE == 64 test.
13415         (fmaxf): Use VEX format if possible.
13416         (fmax): Likewise.
13417         (fminf): Likewise.
13418         (fmin): Likewise.
13419
13420         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13421         * math/math_private.h: Remove libc_fegetround* and
13422         libc_fesetround*.
13423         * sysdeps/i386/configure.in: Check for -msse2avx.
13424         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13425         also if SSE2AVX is defined.
13426         Remove libc_fegetround* and libc_fesetround*.
13427         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13428         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13429         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13430         of HAS_YMM_USABLE.
13431         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13432         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13433         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13434         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13435         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13436
13437         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13438
13439 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13440
13441         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13442         size is not set.
13443         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13444
13445 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13446
13447         [BZ #13618]
13448         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13449         relocation.
13450         * Makeconfig (libm): Define.
13451         * elf/Makefile: Add rules to build and run tst-relsort1.
13452         * elf/tst-relsort1.c: New file.
13453         * elf/tst-relsort1mod1.c: New file.
13454         * elf/tst-relsort1mod2.c: New file.
13455
13456 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13457
13458         * math/s_ldexp.c: Remove __STDC__ conditionals.
13459         * math/s_ldexpf.c: Likewise.
13460         * math/s_ldexpl.c: Likewise.
13461         * math/s_nextafter.c: Likewise.
13462         * math/s_nexttowardf.c: Likewise.
13463         * math/s_significand.c: Likewise.
13464         * math/s_significandf.c: Likewise.
13465         * math/s_significandl.c: Likewise.
13466         * math/w_jnl.c: Likewise.
13467         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13468         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13469         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13470         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13471         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13472         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13473         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13474         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13475         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13476         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13477         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13479         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13480         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13481         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13482         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13483         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13484         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13485         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13486         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13487         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13488         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13489         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13490         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13491         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13492         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13493         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13494         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13495         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13496         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13497         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13498         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13499         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13500         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13501         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13502         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13503         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13504         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13505         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13506         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13507         * sysdeps/ieee754/k_standard.c: Likewise.
13508         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13512         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13517         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13526         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13527         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13534         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13538         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13540         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13543         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13545         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13547         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13550         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13552         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13553         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13555         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13556         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13557         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13558         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13559         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13560         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13561         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13562         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13563         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13564         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13565         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13566         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13567         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13568         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13569         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13570         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13571         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13572         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13573         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13574         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13575         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13576         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13577         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13578         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13579         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13580         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13581         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13582         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13583         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13584         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13585         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13586         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13587         * sysdeps/ieee754/s_matherr.c: Likewise.
13588         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13589         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13590         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13591         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13592
13593 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13594
13595         * crypt/md5.h: Remove __STDC__ conditionals.
13596         * libio/libioP.h: Likewise.
13597         * locale/programs/config.h: Likewise.
13598         * sysdeps/generic/sysdep.h: Likewise.
13599         * sysdeps/i386/asm-syntax.h: Likewise.
13600         * sysdeps/s390/asm-syntax.h: Likewise.
13601         * sysdeps/unix/sysdep.h: Likewise.
13602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13604
13605 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13606
13607         * libio/libio.h: Remove __STDC__ conditionals.
13608         * malloc/obstack.h: Likewise.
13609         * math/complex.h: Likewise.
13610         * math/math.h: Likewise.
13611         * sysdeps/generic/_G_config.h: Likewise.
13612         * sysdeps/gnu/_G_config.h: Likewise.
13613         * sysdeps/mach/hurd/_G_config.h: Likewise.
13614         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13615         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13616         * sysdeps/sparc/bits/mathdef.h: Likewise.
13617
13618 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13619
13620         [BZ #13583]
13621         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13622         Clean up HAS_* macros.
13623         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13624         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13625         possible.
13626         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13627         HAS_AVX.
13628         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13629         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13630         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13631         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13632         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13633
13634 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * elf/tst-unique3.cc (gets): Remove declaration.
13637         * elf/tst-unique3lib.cc (gets): Likewise.
13638         * elf/tst-unique3lib2.cc (gets): Likewise.
13639         * elf/tst-unique4.cc (gets): Likewise.
13640
13641 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13642
13643         * include/stdio.h: Add C++ protection.  Add gets declarations and
13644         definitions.
13645         * debug/tst-chk1.c: Don't declare gets here.
13646         * stdio-common/tst-gets.c: Likewise.
13647
13648 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13649
13650         * posix/glob: Remove directory.
13651
13652 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13653
13654         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13655
13656 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13657
13658         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13659         of the non-standard EPFNOSUPPORT.
13660
13661 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13662
13663         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13664         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13665         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13666
13667 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13668
13669         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13670
13671 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13672
13673         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13674         transient errors.
13675         * nscd/grpcache.c (cache_addgr): Likewise.
13676         * nscd/hstcache.c (cache_addhst): Likewise.
13677         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13678         * nscd/pwdcache.c (cache_addpw): Likewise.
13679         * nscd/servicescache.c (cache_addserv): Likewise.
13680
13681 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13682
13683         * malloc/malloc.c: Various cleanups.
13684         * malloc/hooks.c: Likewise.
13685
13686         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13687         * stdlib/bug-fmtmsg1.c: New file.
13688
13689         * stdlib/fmtmsg.c (init): Add missing unlock.
13690         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13691
13692 2012-01-12  Marek Polacek  <polacek@redhat.com>
13693
13694         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13695         and _GNU_SOURCE.
13696
13697 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13698
13699         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13700         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13701         macro to ensure uniqueness of label name.
13702         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13703         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13704
13705 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13706
13707         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13708
13709         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13710         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13711         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13712         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13713
13714 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13715
13716         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13717
13718         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13719         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13720         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13721
13722         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13723
13724         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13725         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13726         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13727         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13728
13729         * math/bits/math-finite.h: Add ldexp support.
13730
13731 2012-01-10  Marek Polacek  <polacek@redhat.com>
13732
13733         * locale/programs/localedef.h (show_archive_content): Add noreturn
13734         attribute.
13735
13736 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13737
13738         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13739
13740 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13741
13742         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13743
13744         * io/Makefile (headers): Add bits/poll2.h.
13745
13746 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13747
13748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13749         typo #include statement.
13750
13751 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13752
13753         * include/sys/cdefs.h: Define __attribute_alloc_size.
13754         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13755         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13756         * elf/pldd.c: Likewise.
13757         * iconv/iconv_charmap.c: Likewise.
13758         * iconv/iconvconfig.c: Likewise.
13759         * iconv/strtab.c: Likewise.
13760         * locale/programs/locale.c: Likewise.
13761         * locale/programs/localedef.h: Likewise.
13762         * locale/programs/simple-hash.c: Likewise.
13763         * nscd/nscd.h: Likewise.
13764         * nss/makedb.c: Likewise.
13765         * sysdeps/generic/ldconfig.h: Likewise.
13766         * locale/programs/localedef.c: Remove xmalloc prototype.
13767         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13768
13769 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13770
13771         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13772         appropriate.
13773
13774 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13775
13776         * math/Makefile (tests): Add tst-CMPLX.
13777         * math/tst-CMPLX.c: New file.
13778
13779         * math/complex.h (CMPLXL): Fix typo.
13780
13781         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13782         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13783         GLIBC_2.16.
13784         * debug/tst-chk1.c: Add poll and ppoll tests.
13785         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13786         * include/sys/poll.h: Add hidden proto for ppoll.
13787         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13788         * sysdeps/mach/hurd/ppoll.c: Likewise.
13789         * io/ppoll.c: Likewise.
13790         * debug/poll_chk.c: New file.
13791         * debug/ppoll_chk.c: New file.
13792         * include/bits/poll2.h: New file.
13793         * io/bits/poll2.h: New file.
13794
13795         [BZ #1350]
13796         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13797
13798         * configure.in: static is always set to yes.  Remove.
13799         * config.make.in: Don't set build-static.
13800         * Makeconfig: Remove use of build-static.
13801         * dlfcn/Makefile: Likewise.
13802         * elf/Makefile: Likewise.
13803         * math/Makefile: Likewise.
13804         * misc/Makefile: Likewise.
13805         * nptl/Makefile: Likewise.
13806         * sysdeps/mach/hurd/Makefile: Likewise.
13807
13808         * configure.in: PWD_P is not used anymore.
13809         * config.make.in: Remove PWD_P entry.
13810
13811         * configure.in: Remove last remnants of RANLIB.
13812         No need to check for signed size_t anymore.
13813         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13814         and IA-64.
13815         Remove __builtin_expect test because we require at least gcc 3.4.
13816         * aclocal.m4: Likewise.
13817
13818         * wcsmbs/mbrtoc16.c: Implement using towc function.
13819         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13820         * wcsmbs/wcsmbsload.c: Likewise.
13821         * iconv/gconv_simple.c: Likewise.
13822         * iconv/gconv_int.h: Likewise.
13823         * iconv/gconv_builtin.h: Likewise.
13824         * iconv/iconv_prog.c: Remove CHAR16 handling.
13825
13826         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13827
13828         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13829
13830         * configure.in: Remove --with-elf and --enable-bounded options.
13831         Dont set base_machine for ia64.  More non-ELF conditions removed.
13832         Remove testing and setting of leading underscore information.
13833         * config.make.in (build-bounded): Set to no.
13834         * config.h.in: Remove NO_UNDERSCORES entry.
13835         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13836         them.
13837         * csu/start.c: Remove !NO_UNDERSCORE code.
13838         * locale/localeinfo.h: Likewise.
13839         * sysdeps/generic/machine-gmon.h: Likewise.
13840         * sysdeps/generic/sysdep.h: Likewise.
13841         * sysdeps/i386/sysdep.h: Likewise.
13842         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13843         * sysdeps/mach/sysdep.h: Likewise.
13844         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13845         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13846         * sysdeps/sh/sysdep.h: Likewise.
13847         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13848         * sysdeps/unix/i386/sysdep.S: Likewise.
13849         * sysdeps/unix/sparc/start.c: Likewise.
13850         * sysdeps/unix/sparc/sysdep.S: Likewise.
13851         * sysdeps/unix/sparc/sysdep.h: Likewise.
13852         * sysdeps/unix/start.c: Likewise.
13853         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13854         * sysdeps/x86_64/sysdep.h: Likewise.
13855
13856 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13857
13858         [BZ #13553]
13859         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13860         for non-gcc.
13861         * argp/argp-fmtstream.h: Use const instead __const.
13862         * argp/argp.h: Likewise.
13863         * assert/assert.h: Likewise.
13864         * bits/fenv.h: Likewise.
13865         * bits/sched.h: Likewise.
13866         * bits/sigset.h: Likewise.
13867         * bits/sigthread.h: Likewise.
13868         * catgets/nl_types.h: Likewise.
13869         * conform/data/pthread.h-data: Likewise.
13870         * crypt/crypt-private.h: Likewise.
13871         * crypt/crypt.h: Likewise.
13872         * crypt/crypt_util.c: Likewise.
13873         * ctype/ctype.h: Likewise.
13874         * debug/execinfo.h: Likewise.
13875         * debug/mbsnrtowcs_chk.c: Likewise.
13876         * debug/mbsrtowcs_chk.c: Likewise.
13877         * debug/wcsnrtombs_chk.c: Likewise.
13878         * debug/wcsrtombs_chk.c: Likewise.
13879         * debug/wcstombs_chk.c: Likewise.
13880         * dirent/dirent.h: Likewise.
13881         * dlfcn/dlfcn.h: Likewise.
13882         * elf/neededtest4.c: Likewise.
13883         * grp/grp.h: Likewise.
13884         * gshadow/gshadow.h: Likewise.
13885         * iconv/gconv.h: Likewise.
13886         * iconv/gconv_int.h: Likewise.
13887         * iconv/gconv_simple.c: Likewise.
13888         * iconv/iconv.h: Likewise.
13889         * iconv/loop.c: Likewise.
13890         * iconv/skeleton.c: Likewise.
13891         * include/aio.h: Likewise.
13892         * include/aliases.h: Likewise.
13893         * include/argz.h: Likewise.
13894         * include/arpa/inet.h: Likewise.
13895         * include/assert.h: Likewise.
13896         * include/dirent.h: Likewise.
13897         * include/dlfcn.h: Likewise.
13898         * include/execinfo.h: Likewise.
13899         * include/fcntl.h: Likewise.
13900         * include/fenv.h: Likewise.
13901         * include/glob.h: Likewise.
13902         * include/grp.h: Likewise.
13903         * include/libintl.h: Likewise.
13904         * include/mntent.h: Likewise.
13905         * include/netdb.h: Likewise.
13906         * include/pwd.h: Likewise.
13907         * include/rpc/netdb.h: Likewise.
13908         * include/sched.h: Likewise.
13909         * include/search.h: Likewise.
13910         * include/shadow.h: Likewise.
13911         * include/signal.h: Likewise.
13912         * include/stdio.h: Likewise.
13913         * include/stdlib.h: Likewise.
13914         * include/string.h: Likewise.
13915         * include/sys/socket.h: Likewise.
13916         * include/sys/stat.h: Likewise.
13917         * include/sys/statfs.h: Likewise.
13918         * include/sys/statvfs.h: Likewise.
13919         * include/sys/syslog.h: Likewise.
13920         * include/sys/time.h: Likewise.
13921         * include/sys/uio.h: Likewise.
13922         * include/time.h: Likewise.
13923         * include/unistd.h: Likewise.
13924         * include/utmp.h: Likewise.
13925         * include/wchar.h: Likewise.
13926         * include/wctype.h: Likewise.
13927         * inet/aliases.h: Likewise.
13928         * inet/arpa/inet.h: Likewise.
13929         * inet/netinet/ether.h: Likewise.
13930         * inet/netinet/in.h: Likewise.
13931         * intl/libintl.h: Likewise.
13932         * io/bits/fcntl2.h: Likewise.
13933         * io/fcntl.h: Likewise.
13934         * io/ftw.h: Likewise.
13935         * io/sys/poll.h: Likewise.
13936         * io/sys/stat.h: Likewise.
13937         * io/sys/statfs.h: Likewise.
13938         * io/sys/statvfs.h: Likewise.
13939         * io/utime.h: Likewise.
13940         * libio/bits/stdio.h: Likewise.
13941         * libio/bits/stdio2.h: Likewise.
13942         * libio/libio.h: Likewise.
13943         * libio/libioP.h: Likewise.
13944         * libio/stdio.h: Likewise.
13945         * locale/lc-ctype.c: Likewise.
13946         * locale/locale.h: Likewise.
13947         * login/utmp.h: Likewise.
13948         * malloc/arena.c: Likewise.
13949         * malloc/malloc.c: Likewise.
13950         * malloc/malloc.h: Likewise.
13951         * malloc/mcheck.c: Likewise.
13952         * malloc/mtrace.c: Likewise.
13953         * math/bits/mathcalls.h: Likewise.
13954         * math/fenv.h: Likewise.
13955         * math/math_private.h: Likewise.
13956         * misc/bits/error.h: Likewise.
13957         * misc/bits/syslog.h: Likewise.
13958         * misc/err.h: Likewise.
13959         * misc/error.h: Likewise.
13960         * misc/fstab.h: Likewise.
13961         * misc/mntent.h: Likewise.
13962         * misc/regexp.h: Likewise.
13963         * misc/search.h: Likewise.
13964         * misc/sgtty.h: Likewise.
13965         * misc/sys/mman.h: Likewise.
13966         * misc/sys/syslog.h: Likewise.
13967         * misc/sys/uio.h: Likewise.
13968         * misc/sys/xattr.h: Likewise.
13969         * misc/ttyent.h: Likewise.
13970         * nis/rpcsvc/ypclnt.h: Likewise.
13971         * nss/nss.h: Likewise.
13972         * posix/bits/unistd.h: Likewise.
13973         * posix/fnmatch.h: Likewise.
13974         * posix/glob.h: Likewise.
13975         * posix/sched.h: Likewise.
13976         * posix/spawn.h: Likewise.
13977         * posix/sys/wait.h: Likewise.
13978         * posix/unistd.h: Likewise.
13979         * posix/wordexp.h: Likewise.
13980         * pwd/pwd.h: Likewise.
13981         * resolv/netdb.h: Likewise.
13982         * resource/sys/resource.h: Likewise.
13983         * rt/aio.h: Likewise.
13984         * rt/bits/mqueue2.h: Likewise.
13985         * rt/mqueue.h: Likewise.
13986         * shadow/shadow.h: Likewise.
13987         * signal/signal.h: Likewise.
13988         * socket/send.c: Likewise.
13989         * socket/sendto.c: Likewise.
13990         * socket/sys/socket.h: Likewise.
13991         * stdio-common/printf.h: Likewise.
13992         * stdlib/bits/stdlib.h: Likewise.
13993         * stdlib/fmtmsg.h: Likewise.
13994         * stdlib/monetary.h: Likewise.
13995         * stdlib/stdlib.h: Likewise.
13996         * stdlib/ucontext.h: Likewise.
13997         * streams/stropts.h: Likewise.
13998         * string/argz.h: Likewise.
13999         * string/bits/string2.h: Likewise.
14000         * string/string.h: Likewise.
14001         * string/strings.h: Likewise.
14002         * sunrpc/rpc/auth.h: Likewise.
14003         * sunrpc/rpc/auth_des.h: Likewise.
14004         * sunrpc/rpc/clnt.h: Likewise.
14005         * sunrpc/rpc/netdb.h: Likewise.
14006         * sunrpc/rpc/pmap_clnt.h: Likewise.
14007         * sunrpc/rpc/xdr.h: Likewise.
14008         * sysdeps/generic/inttypes.h: Likewise.
14009         * sysdeps/generic/net/if.h: Likewise.
14010         * sysdeps/generic/sys/swap.h: Likewise.
14011         * sysdeps/gnu/net/if.h: Likewise.
14012         * sysdeps/gnu/utmpx.h: Likewise.
14013         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14014         * sysdeps/i386/i486/bits/string.h: Likewise.
14015         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14016         * sysdeps/s390/bits/string.h: Likewise.
14017         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14018         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14019         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14020         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14021         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14022         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14023         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14024         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14025         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14026         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14027         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14028         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14029         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14030         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14031         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14032         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14033         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14034         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14035         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14036         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14037         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14038         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14039         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14040         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14041         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14042         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14043         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14044         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14045         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14046         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14047         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14048         * sysvipc/sys/ipc.h: Likewise.
14049         * sysvipc/sys/msg.h: Likewise.
14050         * sysvipc/sys/sem.h: Likewise.
14051         * sysvipc/sys/shm.h: Likewise.
14052         * termios/termios.h: Likewise.
14053         * time/sys/time.h: Likewise.
14054         * time/time.h: Likewise.
14055         * wcsmbs/bits/wchar2.h: Likewise.
14056         * wcsmbs/uchar.h: Likewise.
14057         * wcsmbs/wchar.h: Likewise.
14058         * wctype/wctype.h: Likewise.
14059
14060         [BZ #13551]
14061         * Makeconfig: Remove all but ELF support including AIX support.
14062         * Makerules: Likewise.
14063         * config.h.in: Likewise.
14064         * config.make.in: Likewise.
14065         * configure: Likewise.
14066         * configure.in: Likewise.
14067         * csu/Makefile: Likewise.
14068         * csu/version.c: Likewise.
14069         * debug/Makefile: Likewise.
14070         * dlfcn/Makefile: Likewise.
14071         * elf/Makefile: Likewise.
14072         * extra-lib.mk: Likewise.
14073         * iconv/Makefile: Likewise.
14074         * include/libc-symbols.h: Likewise.
14075         * include/shlib-compat.h: Likewise.
14076         * resolv/Makefile: Likewise.
14077         * resolv/res_libc.c: Likewise.
14078         * rt/Makefile: Likewise.
14079         * sysdeps/i386/asm-syntax.h: Likewise.
14080         * sysdeps/i386/sysdep.h: Likewise.
14081         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14082         * sysdeps/mach/sysdep.h: Likewise.
14083         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14084         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14085         * sysdeps/s390/asm-syntax.h: Likewise.
14086         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14087         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14088         * sysdeps/sh/sysdep.h: Likewise.
14089         * sysdeps/unix/sparc/sysdep.h: Likewise.
14090         * sysdeps/wordsize-32/divdi3.c: Likewise.
14091         * sysdeps/x86_64/sysdep.h: Likewise.
14092
14093         * argp/Versions: Remove _argp_unlock_xxx.
14094
14095         [BZ #13559]
14096         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14097         * abilist/libBrokenLocale.abilist: Likewise.
14098         * abilist/libanl.abilist: Likewise.
14099         * abilist/libc.abilist: Likewise.
14100         * abilist/libcrypt.abilist: Likewise.
14101         * abilist/libdl.abilist: Likewise.
14102         * abilist/libm.abilist: Likewise.
14103         * abilist/libnsl.abilist: Likewise.
14104         * abilist/libpthread.abilist: Likewise.
14105         * abilist/libresolv.abilist: Likewise.
14106         * abilist/librt.abilist: Likewise.
14107         * abilist/libthread_db.abilist: Likewise.
14108         * abilist/libutil.abilist: Likewise.
14109         * abilist/libnss_db.abilist: New file.
14110
14111         * scripts/abilist.awk: Add support for indirect functions.
14112
14113         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14114
14115         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14116
14117         * shlib-versions: Remove entries for ports architectures.
14118
14119         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14120         files in ports.
14121         * elf/stackguard-macros.h: Remove support for IA-64.
14122         * elf/tst-auditmod1.c: Likewise.
14123         * sysdeps/generic/ldsodefs.h: Likewise.
14124
14125         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14126         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14127         configure files.
14128
14129         [BZ #13552]
14130         * configure.in: Remove --enable-omitfp support.
14131         * FAQ.in: Adjust.
14132         * config.make.in: Likewise.
14133         * Makeconfig: Likewise.
14134         * manual/install.texi: Likewise.
14135
14136         In case anyone cares, the IA-64 architecture could move to ports.
14137         * sysdeps/ia64/*: Removed.
14138         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14139         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14140
14141         [BZ #13555]
14142         * configure.in: Remove entries for unsupported architectures.
14143
14144         [BZ #13533]
14145         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14146         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14147         routines.
14148         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14149         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14150         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14151         fall back to using wcrtomb.
14152         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14153         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14154         renaming.
14155         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14156         * wcsmbs/tst-c16c32-1.c: New file.
14157
14158         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14159         local variable.
14160
14161         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14162
14163         * elf/tst-unique3.cc: Add explicit declaration of gets.
14164         * elf/tst-unique3lib.cc: Likewise.
14165         * elf/tst-unique3lib2.cc: Likewise.
14166         * elf/tst-unique4.cc: Likewise.
14167
14168         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14169
14170 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14171
14172         [BZ #13566]
14173         * assert/assert.h (static_assert): Don't define for C++.
14174         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14175         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14176
14177 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14178
14179         * iconv/loop.c (single loop): Fix assertion in storing of
14180         remaining bytes.
14181
14182         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14183
14184 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14185
14186         * posix/getconf.c: Update copyright year.
14187         * nss/getent.c: Likewise.
14188         * nss/makedb.c: Likewise.
14189         * iconv/iconvconfig.c: Likewise.
14190         * iconv/iconv_prog.c: Likewise.
14191         * elf/ldconfig.c: Likewise.
14192         * elf/pldd.c: Likewise.
14193         * elf/sotruss.ksh: Likewise.
14194         * catgets/gencat.c: Likewise.
14195         * csu/version.c: Likewise.
14196         * elf/ldd.bash.in: Likewise.
14197         * elf/sprof.c (print_version): Likewise.
14198         * locale/programs/locale.c: Likewise.
14199         * locale/programs/localedef.c: Likewise.
14200         * login/programs/pt_chown.c: Likewise.
14201         * nscd/nscd.c (print_version): Likewise.
14202         * debug/xtrace.sh: Likewise.
14203         * malloc/memusage.sh: Likewise.
14204         * malloc/mtrace.pl: Likewise.
14205         * debug/catchsegv.sh: Likewise.
14206
14207 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14208
14209         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14210         pure attribute.
14211
14212 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14213
14214         [BZ #13533]
14215         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14216         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14217         transformations.
14218         * iconv/gconv_int.h: Likewise.
14219         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14220         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14221         from libc for GLIBC_2.16.
14222         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14223         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14224         * wcsmbs/uchar.h: Really define mbstate_t.
14225         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14226         * wcsmbs/c16rtomb.c: New file.
14227         * wcsmbs/mbrtoc16.c: New file.
14228         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14229         for C/POSIX locale.
14230         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14231         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14232
14233         * wcsmbs/wchar.h: Add missing __restrict.
14234
14235 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14236
14237         [BZ #13532]
14238         * time/Makefile (routines): Add timespec_get.
14239         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14240         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14241         timespec for ISO C11.
14242         * time/timespec_get.c: New file.
14243         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14244         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14245
14246         [BZ #13531]
14247         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14248         * stdlib/stdlib.h: Declare aligned_alloc.
14249         * Versions.def: Add GLIBC_2.16 for libc.
14250         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14251
14252         [BZ 13527]
14253         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14254         ISO C11.
14255
14256         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14257         code.
14258
14259         [BZ #13528]
14260         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14261
14262         [BZ #13529]
14263         * assert/assert.h (static_assert): Define.
14264
14265         * version.h: Update for 2.16 development version.
14266
14267         [BZ #13526]
14268         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14269         _ISOC11_SOURCE.
14270
14271         * version.h (RELEASE): Bump for 2.15 release.
14272         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14273
14274         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14275         Patch by Marek Polacek <mpolacek@redhat.com>.
14276
14277         * bits/byteswap.h: Protect long long constants with __extension__.
14278         * sysdeps/i386/bits/byteswap.h: Likewise.
14279         * sysdeps/ia64/bits/byteswap.h: Likewise.
14280         * sysdeps/s390/bits/byteswap.h: Likewise.
14281         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14282
14283 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14284
14285         [BZ #13540]
14286         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14287         destination buffer.
14288         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14289
14290 2011-12-23  Marek Polacek  <polacek@redhat.com>
14291
14292         * elf/dl-addr.c (determine_info): Add inline keyword.
14293         * elf/tst-auditmod4b.c (check_avx): Likewise.
14294         * elf/tst-auditmod6b.c (check_avx): Likewise.
14295         * elf/tst-auditmod6c.c (check_avx): Likewise.
14296         * elf/tst-auditmod7b.c (check_avx): Likewise.
14297
14298 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14299
14300         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14301         !__SSE_MATH__.
14302
14303 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14304
14305         [BZ #13540]
14306         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14307         processing for last bytes.
14308
14309 2011-08-06  Bruno Haible  <bruno@clisp.org>
14310
14311         [BZ #13061]
14312         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14313         U+0385, not to U+1FEE.
14314
14315         [BZ #13062]
14316         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14317         entry for U+00A5 U+0301.
14318
14319 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14320
14321         [BZ #13166]
14322         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14323         buffer for the output is too small.
14324
14325         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14326         optimization.
14327
14328         [BZ #13185]
14329         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14330         SSE flags if possible.
14331
14332 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14333
14334         [BZ #13540]
14335         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14336         processing for last bytes.
14337
14338 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14341         (syscall-list-default-options, syscall-list-default-condition)
14342         (syscall-list-includes): Define.
14343         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14344         list of ABIs and options and #if conditions for each ABI.  Do not
14345         handle common syscalls between ABIs specially.
14346         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14347         Remove.
14348         (syscall-list-variants, syscall-list-32bit-options)
14349         (syscall-list-32bit-condition, syscall-list-64bit-options)
14350         (syscall-list-64bit-condition): Define.
14351         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14352         (syscall-list-variants, syscall-list-32bit-options)
14353         (syscall-list-32bit-condition, syscall-list-64bit-options)
14354         (syscall-list-64bit-condition): Define.
14355         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14356         Remove.
14357         (syscall-list-variants, syscall-list-32bit-options)
14358         (syscall-list-32bit-condition, syscall-list-64bit-options)
14359         (syscall-list-64bit-condition): Define.
14360         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14361         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
14366 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14367
14368         * locale/iso-639.def: Add brx entry.
14369
14370         [BZ #13328]
14371         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14372         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14373
14374         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14375         __feraiseexcept_renamed.
14376
14377 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14378
14379         [BZ #13538]
14380         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14381         EPOLLET with unsigned values.
14382         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14383         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14384
14385         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14386         to large cancellation.
14387         * math/s_cacoshf.c: Likewise.
14388         * math/s_cacoshl.c: Likewise.
14389
14390 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14391
14392         [BZ #13305]
14393         [BZ #12786]
14394         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14395         * math/s_cacoshf.c: Likewise.
14396         * math/s_cacoshl.c: Likewise.
14397
14398 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14399
14400         [BZ #13439]
14401         * iconv/gconv.h: Define __GCONV_SWAP.
14402         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14403         * iconvdata/utf-16.c: Likewise.
14404         * iconvdata/utf-32.c: Likewise.
14405
14406 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14407
14408         [BZ #13524]
14409         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14410         numerator after shifting it by one limb.
14411
14412 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14413
14414         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14415         under [__USE_EXTERN_INLINES].
14416
14417 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14418
14419         [BZ #13446]
14420         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14421
14422 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14423
14424         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14425         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14426         optimized code.
14427         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14428         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14429         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14430         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14431         for strncasecmp/strncasecmp_l compilation.
14432         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14433         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14434
14435 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14436
14437         [BZ #13484]
14438         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14439         of __asm__.
14440
14441 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14442
14443         [BZ #13506]
14444         * time/tzfile.c (__tzfile_read): Check values from file header.
14445
14446 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14447
14448         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14449         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14450         * powerpc/powerpc32/dl-start.S: Likewise.
14451         * powerpc/powerpc32/elf/start.S: Likewise.
14452         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14453         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14454         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14455         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14456         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14457         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14458         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14459         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14460         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14461         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14462         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14463         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14464         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14465         * powerpc/powerpc32/memset.S: Likewise.
14466         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14467         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14468         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14469         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14470         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14471         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14472         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14473         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14474         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14475         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14476         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14477         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14478         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14479
14480 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14481
14482         * math/libm-test.inc: Added more nearbyint tests.
14483         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14484         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14485         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14486         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14487
14488 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14489
14490         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14491         FD_CLOEXEC.
14492
14493 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14494
14495         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14496         Add wcscpy-ssse3 wcscpy-c.
14497         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14498         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14499         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14500         * sysdeps/x86_64/wcschr.S: New file.
14501         * sysdeps/x86_64/wcsrchr.S: New file.
14502         * string/test-strcmp.c: Remove checking of wcscmp function for
14503         wrong alignments.
14504         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14505         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14506         wcsrchr-sse2 wcsrchr-c.
14507         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14508         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14509         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14510         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14511         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14512         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14513         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14514         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14515         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14516         * wcsmbc/wcschr.c (WCSCHR): New macro.
14517
14518 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14519
14520         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14521         * wcsmbs/test-wcsrchr.c: New file.
14522         * string/test-strrchr.c: Add wcsrchr support.
14523         (WIDE): New macro.
14524         * wcsmbs/test-wcscpy.c: New file.
14525         * string/test-strcpy.c: Add wcscpy support.
14526         (WIDE): New macro.
14527
14528 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14529
14530         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14531         the inner loop.
14532
14533 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14534
14535         [BZ #13472]
14536         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14537
14538 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14539
14540         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14541         Minor optimizations.
14542
14543         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14544         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14545         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14546
14547 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14548
14549         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14550         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14551         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14552         for gcc to avoid warnings.
14553         * inet/Makefile (tests): Add tst-checks.
14554         * inet/tst-checks.c: New file.
14555
14556         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14557         warning.
14558
14559         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14560         __wmemcmp_sse2.
14561
14562         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14563         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14564
14565         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14566
14567 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14568
14569         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14570         problem.
14571
14572         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14573
14574 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14575
14576         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14577         conditional on GCC version.
14578         (__arch_compare_and_exchange_val_8_acq)
14579         (__arch_compare_and_exchange_val_16_acq)
14580         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14581         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14582         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14583
14584 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14585
14586         * sysdeps/sh/backtrace.c: New file.
14587
14588 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14589
14590         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14591         parenthesis.
14592
14593 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14594
14595         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14596         falling back to utime.
14597
14598 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14599
14600         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14601         expectations for float.
14602
14603 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14604
14605         * locale/weight.h (findidx): Add parameter len.
14606         * locale/weightwc.h (findidx): Likewise.
14607         * posix/fnmatch_loop.c (FCT): Adjust caller.
14608         * posix/regcomp.c (build_equiv_class): Likewise.
14609         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14610         * posix/regexec.c (check_node_accept_bytes): Likewise.
14611         * string/strcoll_l.c (STRCOLL): Likewise.
14612         * string/strxfrm_l.c (STRXFRM): Likewise.
14613
14614 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14615
14616         * Makefile.in: Remove CVSOPT handling.
14617         * configure.in: Remove use of AC_REVISION.
14618         * iconvdata/Makefile (distribute): No need to filter out CVS.
14619         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14620         handling.
14621
14622 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14623
14624         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14625         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14626         [USE_AS_STRNCASECMP_L]: Likewise.
14627         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14628         NO_TLS_DIRECT_SEG_REFS.
14629         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14630         Fix argument offsets for non-PIC.
14631         [USE_AS_STRNCASECMP_L]: Likewise.
14632         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14633         NO_TLS_DIRECT_SEG_REFS.
14634
14635 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14636
14637         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14638         O_CLOEXEC.
14639         * locale/loadlocale.c (_nl_load_locale): Likewise.
14640
14641 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14642
14643         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14644         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14645         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14646         (SYSCALL_GETTIME): Set errno on error.
14647
14648         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14649         count references to noai6ai_cached.
14650
14651 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14652
14653         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14654
14655         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14656         FD_CLOEXEC for /proc/self/maps.
14657
14658         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14659         FD_CLOEXEC for /proc/meminfo.
14660
14661         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14662         gai.conf.
14663
14664         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14665         FD_CLOEXEC for given file.
14666
14667         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14668
14669         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14670         FD_CLOEXEC for /etc/hosts.
14671         (_gethtent): Likewise.
14672
14673         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14674
14675         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14676         cancellation and set FD_CLOEXEC for /etc/netgroup.
14677
14678         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14679         reading /etc/publickey.
14680
14681         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14682         allow cancellation when reading /etc/group.
14683
14684         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14685         cancellation.
14686         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14687
14688         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14689         when using data file.
14690
14691         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14692
14693         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14694         (write_nis_obj): Use "c" and "e" in fopen.
14695
14696         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14697
14698         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14699
14700         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14701
14702         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14703
14704         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14705         locale.alias.
14706
14707         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14708
14709         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14710
14711         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14712
14713         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14714         file parsing and set FD_CLOEXEC.
14715
14716 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14717
14718         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14719
14720 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14721
14722         * malloc/arena.c (arena_get2): Don't call reused_arena when
14723         _int_new_arena failed.
14724
14725 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14726
14727         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14728         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14729         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14730         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14731         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14732         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14733         to compile strcasecmp and strncasecmp.
14734         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14735         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14736
14737         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14738
14739 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14740
14741         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14742         locale-defines.sym to gen-as-const-headers.
14743         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14744         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14745         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14746         to compile strcasecmp and strncasecmp.
14747         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14748         strcasecmp_l and strncasecmp_l.
14749         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14750         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14751         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14752         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14753         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14754         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14755         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14756         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14757         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14758         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14759         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14760
14761 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14762
14763         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14764         result of SYSDEP_GETTIME_CPU to retval.
14765         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14766         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14767
14768         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14769         variable.
14770
14771         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14772         mantissa words.
14773         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14774
14775         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14776         from unused variable.
14777
14778         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14779         DWARF definitions.
14780         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14781         for assembling.
14782
14783         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14784         over namespaces.
14785
14786         * sunrpc/rpc_prot.c (rejected): Fix case value.
14787
14788         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14789         unsigned long long int to avoid warnings in shift.
14790
14791         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14792         of use of trans.
14793         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14794         variable tmp.
14795
14796         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14797         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14798         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14799
14800         * nis/nis_table.c (nis_list): Use variable of correct type for
14801         result of __follow_path call.
14802
14803 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14804
14805         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14806         of math functions ceil, trunc, floor, round, and sqrt, when
14807         avaliable on the platform.
14808         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14809         name clash.
14810         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14811         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14812         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14813
14814 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14815
14816         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14817         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14818
14819 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14820
14821         * include/unistd.h: Fix __readlink return type.
14822         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14823
14824 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14825
14826         * stdlib/ucontext.h: Undo last change for makecontext.
14827
14828 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14829
14830         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14831
14832         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14833         * setjmp/setjmp.h: Mark functions as non-leaf.
14834         * setjmp/bits/setjmp2.h: Likewise.
14835         * stdlib/ucontext.h: Likewise.
14836
14837 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14838
14839         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14840         (reused_arena): Don't check arena limit.
14841         (arena_get2): Atomically check arena limit.
14842
14843 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14844
14845         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14846         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14847
14848         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14849         instructions.
14850
14851 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14852
14853         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14854         handler when locking.
14855
14856         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14857         Fix size of allocated buffer.
14858
14859 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14860
14861         [BZ #10103]
14862         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14863         declarations for long double functions.
14864         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14865
14866         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14867
14868 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14869
14870         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14871         installed.
14872
14873         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14874         is disabled.
14875
14876 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14877
14878         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14879
14880 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14881
14882         * include/alloca.h (stackinfo_alloca_round): Define.
14883         (extend_alloca): Use it.
14884         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14885         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14886         here.
14887
14888         * scripts/check-local-headers.sh: Ignore libaudit.h.
14889
14890         * nscd/Makefile (extra-objs): Make recursively expanded.
14891
14892 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14893
14894         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14895         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14896
14897         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14898         * posix/tst-rfc3484-2.c: Likewise.
14899         * posix/tst-rfc3484-3.c: Likewise.
14900
14901         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14902         process_vm_writev.
14903         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14904         process_vm_writev.
14905         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14906         process_vm_writev from libc using GLIBC_2.15 version.
14907
14908         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14909
14910 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14911
14912         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14913         stack usage.
14914
14915 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14916
14917         [BZ #13367]
14918         * nss/getent.c (initgroups_keys): Show error message in case no group
14919         names are given.
14920
14921         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14922         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14923         __bump_nl_timestamp.
14924         * nscd/connections (nscd_init): When host database is served open
14925         netlink socket and request notification about configuration changes.
14926         (main_loop_poll): Track netlink file descriptor and bump timestamp
14927         in case data becomes available.
14928         (main_loop_epoll): Likewise.
14929         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14930         (database_pers_head): Add extra_data fileds.
14931         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14932         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14933         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14934         Adjust caller.
14935         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14936         in6ai data, call __free_in6ai.
14937         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14938         Add -DHAVE_NETLINK.
14939         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14940         interface information.  Reuse previous data if netlink timestamp
14941         is not changed.
14942         (__bump_nl_timestamp): New function.
14943         (__free_in6ai): New function.
14944
14945 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14946
14947         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14948         close_not_cancel_no_status here.
14949         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14950
14951 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14952
14953         [BZ #13276]
14954         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14955         return value.
14956
14957         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14958         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14959         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14960
14961 2011-07-03  Andreas Jaeger  <aj@suse.de>
14962
14963         [BZ #10709]
14964         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14965         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14966         * math/libm-test.inc (sin_test): Add test case.
14967
14968 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14969
14970         [BZ #13337]
14971         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14972         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14973
14974         * elf/chroot_canon.c (chroot_canon): Cleanups.
14975
14976         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14977
14978         [BZ #13335]
14979         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14980         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14981
14982         * string/test-strchr.c: Make usable for strchrnul testing.
14983         * string/test-strchrnul.c: New file.
14984         * string/Makefile (strop-tests): Add strchrnul.
14985
14986         * po/it.po: Update from translation team.
14987         * po/es.po: Likewise.
14988
14989 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14990
14991         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14992         the three constants needed as parameters.  Drop the others.
14993         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14994         __m128i_strloadu_tolower.
14995         Create and initialize variable zero and use it in all the places
14996         where _mm_setzero_si128 was used.
14997
14998         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14999         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15000         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15001         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15002         anymore.
15003         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15004         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15005         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15006         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15007         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15008         __mpranred, __mptan.
15009         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15010         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15011         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15012         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15013         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15014         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15015         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15016         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15017         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15018
15019 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15020
15021         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15022         redefine if SHARED.
15023         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15024
15025         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15026         wide char related routines to wcsmbs subdir.
15027
15028 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15029
15030         [BZ #13344]
15031         * misc/sys/cdefs.h (__THROWNL): Define.
15032         * posix/unistd.h: Use __THREADNL instead of __THREAD
15033         for memory synchronization functions.
15034
15035 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15036
15037         [BZ #13349]
15038         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15039         doesn't exist.
15040         * manual/stdio.texi (Obstack Streams): Node removed.
15041
15042 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15043
15044         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15045         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15046         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15047
15048         * math/math_private.h (math_force_eval): Allow non-addressable
15049         arguments.
15050         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15051
15052 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15053
15054         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15055         file is not needed.
15056
15057         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15058         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15059         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15060         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15061         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15062         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15063         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15064         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15065         Add AVX variants.
15066         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15067         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15068         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15069         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15070         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15071         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15072         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15073         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15074         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15075         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15076         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15077         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15078         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15079         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15080         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15081         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15082         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15083         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15084         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15085
15086         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15087         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15088
15089         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15090         place.  Use VEX encoding when compiling for AVX.
15091
15092 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15093
15094         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15095         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15096
15097         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15098
15099 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15100
15101         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15102         useless if() expression.
15103         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15104         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15105         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15106         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15107         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15108         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15109         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15110         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15111         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15112         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15113         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15114         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15115         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15116         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15117         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15118         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15119         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15120         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15121         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15122
15123         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15124
15125 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15126
15127         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15128         condition.
15129         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15130
15131 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15132
15133         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15134         .text section.  Avoid duplicate constants.
15135         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15136         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15137         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15138         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15139         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15140         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15141         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15142         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15143         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15144         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15145         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15146         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15147         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15150         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15152         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15155         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15157         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15158         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15159         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15160         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15161         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15162         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15163         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15164         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15165         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15166         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15167         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15168         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15169         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15170         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15171         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15172         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15173         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15174         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15175         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15176         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15177         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15178         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15179         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15180
15181 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15182
15183         * sysdeps/x86_64/dla.h: Move to ...
15184         * sysdeps/x86_64/fpu/dla.h: ...here.
15185         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15186         situations.  Use __builtin_fma only for gcc 4.6 and up.
15187
15188         * config.make.in: Add have-mfma4 entry.
15189         * configure.in: Substitute libc_cv_cc_fma4.
15190         * math/Makefile (dbl-only-routines): Add sincostab.
15191         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15192         Use __sincostab not sincos.
15193         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15194         name is a macro.
15195         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15196         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15197         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15198         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15199         using __copysign.
15200         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15201         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15202         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15203         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15204         and __inv.
15205         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15206         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15207         __copysign.
15208         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15209         define aliases when function name is a macro.
15210         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15211         sysdeps/ieee754/dbl-64/sincos.tbl.
15212         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15213         fma4-enabled routines.
15214         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15215         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15216         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15217         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15218         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15219         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15220         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15221         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15222         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15223         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15224         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15225         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15226         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15227         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15228         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15229         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15230         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15231         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15232         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15233         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15234         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15235         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15236         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15237         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15238         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15239         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15240         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15241         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15242         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15243         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15244
15245         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15246         rename.
15247         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15248         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15249         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15250         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15251         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15252         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15253         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15254         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15255
15256 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15257
15258         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15259
15260 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15261
15262         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15263
15264         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15265         prediction.
15266         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15267
15268         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15269         Remove unused variable magic_bits.
15270         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15271
15272         * string/strnlen.c: Define and use STRNLEN macro.
15273         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15274         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15275         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15276         * wcsmbs/wcslen.c: Define and use WCSLEN.
15277         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15278         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15279         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15280         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15281         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15282         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15283         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15284
15285 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15286
15287         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15288         strnlen-sse2-no-bsf.
15289         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15290         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15291         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15292         Add strnlen support.
15293         (USE_AS_STRNLEN): New macro.
15294         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15295         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15296         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15297         * sysdeps/x86_64/wcslen.S: New file.
15298
15299 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15300
15301         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15302         XMM-moves are used for copying on small sizes.
15303
15304 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15305
15306         * wcsmbs/Makefile (strop-tests): Add wcschr.
15307         * wcsmbs/test-wcschr.c: New file.
15308         * string/test-strchr.c: Update.
15309         Add wcschr support.
15310         (WIDE): New macro.
15311
15312 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15313
15314         * wcsmbs/Makefile (strop-tests): Add wcslen.
15315         * wcsmbs/test-wcslen.c: New file.
15316         * string/test-strlen.c: Update.
15317         Add wcslen support.
15318         (WIDE): New macro.
15319
15320 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15321
15322         * po/it.po: Update from translation team.
15323
15324 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15325
15326         * sysdeps/x86_64/wcscmp.S: Update.
15327         Fix wrong comparison semantics.
15328         wcscmp shall use signed comparison not unsigned.
15329         Don't use substraction to avoid overflow bug.
15330         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15331         * wcsmbc/wcscmp.c: Likewise.
15332         * string/test-strcmp.c: Likewise.
15333         Add new tests to check cases with negative values.
15334
15335 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15336
15337         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15338         * sysdeps/x86_64/dla.h: ...here.  New file.
15339         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15340         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15341         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15342         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15346         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15347         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15348
15349 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15350
15351         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15352         __ynl_finite aliases.
15353
15354 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15355
15356         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15357
15358         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15359         define DLA_FMA.
15360         [DLA_FMA] (EMULV): Use DLA_FMA.
15361         [DLA_FMA] (MUL12): Use EMULV.
15362         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15363         that are not needed.
15364         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15365         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15366         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15367         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15368         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15369         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15370         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15371
15372 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15373
15374         * math/s_nan.c: Undef __nan.
15375         * math/s_nanf.c: Undef __nanf.
15376         * math/s_nanl.c: Undef __nanl.
15377         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15378         "math_private.h".
15379
15380 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15381
15382         * math/s_catan.c: Add branch predictions.
15383         * math/s_catanf.c: Likewise.
15384         * math/s_catanh.c: Likewise.
15385         * math/s_catanhf.c: Likewise.
15386         * math/s_catanhl.c: Likewise.
15387         * math/s_catanl.c: Likewise.
15388         * math/s_cexp.c: Likewise.
15389         * math/s_cexpf.c: Likewise.
15390         * math/s_cexpl.c: Likewise.
15391         * math/s_clog.c: Likewise.
15392         * math/s_clog10.c: Likewise.
15393         * math/s_clog10f.c: Likewise.
15394         * math/s_clog10l.c: Likewise.
15395         * math/s_clogf.c: Likewise.
15396         * math/s_clogl.c: Likewise.
15397         * math/s_csqrt.c: Likewise.
15398         * math/s_csqrtf.c: Likewise.
15399         * math/s_csqrtl.c: Likewise.
15400         * math/s_ctanf.c: Likewise.
15401         * math/s_ctanh.c: Likewise.
15402         * math/s_ctanhf.c: Likewise.
15403         * math/s_ctanhl.c: Likewise.
15404         * math/s_ctanl.c: Likewise.
15405
15406         * math/math_private.h: Define __nan, __nanf, __nanl.
15407         * math/s_cacosh.c: Include <math_private.h>.
15408         * math/s_cacoshl.c: Likewise.
15409         * math/s_casinh.c: Likewise.
15410         * math/s_casinhf.c: Likewise.
15411         * math/s_casinhl.c: Likewise.
15412         * math/s_ccos.c: Rely entire on ccosh.
15413         * math/s_ccosf.c: Rely entire on ccoshf.
15414         * math/s_ccosl.c: Rely entirely on ccoshl.
15415         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15416         Remove tests for FE_INVALID.
15417         * math/s_ccoshf.c: Likewise.
15418         * math/s_ccoshl.c: Likewise.
15419         * math/s_csin.c: Likewise.
15420         * math/s_csinf.c: Likewise.
15421         * math/s_csinh.c Likewise.
15422         * math/s_csinhf.c: Likewise.
15423         * math/s_csinhl.c: Likewise.
15424         * math/s_csinl.c: Likewise.
15425         * math/s_ctan.c: Likewise.
15426         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15427         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15428         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15429
15430 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15431
15432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15433         compilation problems.
15434
15435         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15436         __builtin_expect.
15437
15438 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15439
15440         * sysdeps/i386/configure.in: Test for -mfma4 option.
15441         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15442         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15443         COMMON_CPUID_INDEX_80000001.
15444         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15445         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15446         use it if FMA3 is not supported.
15447         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15448
15449         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15450         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15451
15452 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15453
15454         [BZ #12892]
15455         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15456         it would create a cycle with a link time dependency.
15457
15458 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15459
15460         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15461         instruction.
15462         * string/Makefile (strop-tests): Add rawmemchr.
15463         * string/test-rawmemchr.c: New file.
15464
15465         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15466         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15467         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15468         when compiling str{,n}casecmp and when AVX is available.  Hook up
15469         new optimized code in initializers.
15470
15471 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15472
15473         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15474         __feraiseexcept instead of feraiseexcept.
15475
15476 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15477
15478         * math/math_private.h: Define defaults for libc_fetestexcept and
15479         libc_feupdateenv.
15480         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15481         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15482         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15483         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15484         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15485         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15486         libc_fetestexcept and libc_feupdateenv.
15487
15488         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15489         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15490         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15491         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15492         libc_feholdexcept_setround.
15493
15494         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15495         Add s_nearbyint-c and s_nearbyintf-c.
15496         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15497         nearbyintf inlines.
15498         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15499         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15500         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15501         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15502
15503         * math/math_private.h: Define defaults for libc_fegetround,
15504         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15505         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15506         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15507         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15508         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15509         standard functions.
15510         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15511         Remove comments and hacks for old compiler versions.
15512         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15513         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15514         libc_feholdexceptl.
15515
15516 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15517
15518         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15519         (__feraiseexcept_renamed): Add __NTH.
15520         (feraiseexcept): Add __NTH.  Rename local variables to fix
15521         namespace violations.
15522
15523 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15524
15525         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15526
15527         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15528
15529         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15530         recently added interfaces.
15531         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15532
15533         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15534         about macro parameter expansion.
15535
15536         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15537         __NO_MATH_INLINES is defined.  Cleanups.
15538
15539         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15540         and __floorf is target has SSE4.1.
15541         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15542         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15543         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15544         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15545
15546         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15547         name.
15548         (floorf): Likewise.
15549
15550         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15551
15552 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15553
15554         * misc/sys/cdefs.h: Fix last change.
15555
15556         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15557         database lookup.
15558
15559 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15560
15561         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15562
15563         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15564         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15565         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15566         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15567         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15568         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15569         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15570         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15571         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15572         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15573         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15574         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15575         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15576         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15577         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15578         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15579         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15580         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15581         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15582         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15583         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15584         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15585
15586         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15587         ceil, ceilf, floor, floorf.
15588
15589         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15590         Perform IRELATIVE relocations last.
15591
15592         * elf/do-rel.h: Add another parameter nrelative, replacing the
15593         local variable with the same name.  Change name of the function
15594         to end in Rel or Rela (uppercase).
15595         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15596         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15597         elf_dynamic_do_##reloc function.
15598
15599 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15602         is sufficient, at least on modern CPUs.
15603
15604         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15605
15606         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15607         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15608
15609         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15610         __expl_finite.
15611         * math/bits/math-finite.h: Add entries for exp.
15612         * math/e_expl.c: Add __*_finite alias.
15613         * sysdeps/i386/fpu/e_exp.S: Likewise.
15614         * sysdeps/i386/fpu/e_expf.S: Likewise.
15615         * sysdeps/i386/fpu/e_expl.c: Likewise.
15616         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15617         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15618         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15619         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15620         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15621         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15622         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15623
15624         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15625         is sufficient, at least on modern CPUs.
15626
15627         * ctype/ctype-info.c (__ctype_init): Define.
15628         * include/ctype.h (__ctype_init): Declare.
15629         (__ctype_b_loc): The variable is always initialized.
15630         (__ctype_toupper_loc): Likewise.
15631         (__ctype_tolower_loc): Likewise.
15632         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15633         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15634
15635 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15636
15637         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15638
15639         * configure.in: Also look in $cxxmachine/include for C++ system
15640         headers.
15641
15642 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15643
15644         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15645         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15646         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15647         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15648         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15649         (USE_AS_WMEMCMP): New macro.
15650         Fixing indents.
15651         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15652         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15653         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15654         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15655         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15656         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15657         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15658         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15659         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15660         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15661         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15662         (USE_AS_WMEMCMP): New macro.
15663         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15664         * sysdeps/string/test-memcmp.c: Update.
15665         Fix simple_wmemcmp.
15666         Add new tests.
15667         * wcsmbs/wmemcmp.c: Update.
15668         (WMEMCMP): New macro.
15669         Fix overflow bug.
15670
15671 2011-10-12  Andreas Jaeger  <aj@suse.de>
15672
15673         [BZ #13268]
15674         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15675
15676 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15677
15678         * libio/iofwide.c (do_length): Avoid warning.
15679
15680         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15681
15682 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15683
15684         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15685
15686         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15687         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15688         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15689         * sysdeps/i386/i686/fpu/e_log.S: New file.
15690         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15691         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15692
15693         * ctype/ctype.h: Add support for inlined isXXX functions when
15694         compiling C++ code.
15695
15696 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15697
15698         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15699
15700         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15701
15702 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15703
15704         [BZ #13291]
15705         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15706
15707 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15708
15709         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15710         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15711         feraiseexcept.
15712
15713         * sysdeps/x86_64/memrchr.S: Check for zero size.
15714
15715         * string/stratcliff.c: Add memrchr tests.
15716
15717 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15718
15719         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15720         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15721         rawmemchr-sse2 rawmemchr-sse2-bsf.
15722         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15723         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15724         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15725         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15726         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15727         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15728         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15729         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15730         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15731         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15732         * string/memrchr.c (MEMRCHR): New macro.
15733
15734 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15735
15736         Add integration with gcc's -ffinite-math-only and optimize wrapper
15737         functions in libm.
15738         * Versions.def: Define GLIBC_2.15 version for libm.
15739         * math/Makefile (headers): Add bits/math-finite.h.
15740         * math/bits/math-finite.h: New file.
15741         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15742         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15743         * math/e_acoshl.c: Add __*_finite alias.
15744         * math/e_acosl.c: Likewise.
15745         * math/e_asinl.c: Likewise.
15746         * math/e_atan2l.c: Likewise.
15747         * math/e_atanhl.c: Likewise.
15748         * math/e_coshl.c: Likewise.
15749         * math/e_exp10.c: Likewise.
15750         * math/e_exp10f.c: Likewise.
15751         * math/e_exp10l.c: Likewise.
15752         * math/e_exp2l.c: Likewise.
15753         * math/e_fmodl.c: Likewise.
15754         * math/e_gammal_r.c: Likewise.
15755         * math/e_hypotl.c: Likewise.
15756         * math/e_j0l.c: Likewise.
15757         * math/e_j1l.c: Likewise.
15758         * math/e_jnl.c: Likewise.
15759         * math/e_lgammal_r.c: Likewise.
15760         * math/e_log10l.c: Likewise.
15761         * math/e_log2l.c: Likewise.
15762         * math/e_logl.c: Likewise.
15763         * math/e_powl.c: Likewise.
15764         * math/e_sinhl.c: Likewise.
15765         * math/e_sqrtl.c: Likewise.
15766         * math/e_scalb.c: Completely rewritten and optimized.
15767         * math/e_scalbf.c: Likewise.
15768         * math/e_scalbl.c: Likewise.
15769         * math/w_acos.c: Likewise.
15770         * math/w_acosf.c: Likewise.
15771         * math/w_acosl.c: Likewise.
15772         * math/w_acosh.c: Likewise.
15773         * math/w_acoshf.c: Likewise.
15774         * math/w_acoshl.c: Likewise.
15775         * math/w_asin.c: Likewise.
15776         * math/w_asinf.c: Likewise.
15777         * math/w_asinl.c: Likewise.
15778         * math/w_atan2.c: Likewise.
15779         * math/w_atan2f.c: Likewise.
15780         * math/w_atan2l.c: Likewise.
15781         * math/w_atanh.c: Likewise.
15782         * math/w_atanhf.c: Likewise.
15783         * math/w_atanhl.c: Likewise.
15784         * math/w_exp10.c: Likewise.
15785         * math/w_exp10f.c: Likewise.
15786         * math/w_exp10l.c: Likewise.
15787         * math/w_fmod.c: Likewise.
15788         * math/w_fmodf.c: Likewise.
15789         * math/w_fmodl.c: Likewise.
15790         * math/w_j0.c: Likewise.
15791         * math/w_j0f.c: Likewise.
15792         * math/w_j0l.c: Likewise.
15793         * math/w_j1.c: Likewise.
15794         * math/w_j1f.c: Likewise.
15795         * math/w_j1l.c: Likewise.
15796         * math/w_jn.c: Likewise.
15797         * math/w_jnf.c: Likewise.
15798         * math/w_log.c: Likewise.
15799         * math/w_logf.c: Likewise.
15800         * math/w_logl.c: Likewise.
15801         * math/w_log10.c: Likewise.
15802         * math/w_log10f.c: Likewise.
15803         * math/w_log10l.c: Likewise.
15804         * math/w_log2.c: Likewise.
15805         * math/w_log2f.c: Likewise.
15806         * math/w_log2l.c: Likewise.
15807         * math/w_pow.c: Likewise.
15808         * math/w_powf.c: Likewise.
15809         * math/w_powl.c: Likewise.
15810         * math/w_remainder.c: Likewise.
15811         * math/w_remainderf.c: Likewise.
15812         * math/w_remainderl.c: Likewise.
15813         * math/w_scalb.c: Likewise.
15814         * math/w_scalbf.c: Likewise.
15815         * math/w_scalbl.c: Likewise.
15816         * math/w_sqrt.c: Likewise.
15817         * math/w_sqrtf.c: Likewise.
15818         * math/w_sqrtl.c: Likewise.
15819         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15820         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15821         used.
15822         * math/math_private.h: Declare __kernel_standard_f.
15823         * math/w_cosh.c: Remove cruft and optimize a bit.
15824         * math/w_coshf.c: Likewise.
15825         * math/w_coshl.c: Likewise.
15826         * math/w_exp2.c: Likewise.
15827         * math/w_exp2f.c: Likewise.
15828         * math/w_exp2l.c: Likewise.
15829         * math/w_hypot.c: Likewise.
15830         * math/w_hypotf.c: Likewise.
15831         * math/w_hypotl.c: Likewise.
15832         * math/w_lgamma.c: Likewise.
15833         * math/w_lgamma_r.c: Likewise.
15834         * math/w_lgammaf.c: Likewise.
15835         * math/w_lgammaf_r.c: Likewise.
15836         * math/w_lgammal.c: Likewise.
15837         * math/w_lgammal_r.c: Likewise.
15838         * math/w_sinh.c: Likewise.
15839         * math/w_sinhf.c: Likewise.
15840         * math/w_sinhl.c: Likewise.
15841         * math/w_tgamma.c: Likewise.
15842         * math/w_tgammaf.c: Likewise.
15843         * math/w_tgammal.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15845         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15846         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15847         Minor optimizations.  Pretty printing.  Remove cruft.
15848         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15849         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15850         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15851         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15852         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15853         * sysdeps/i386/fpu/e_asin.S: Likewise.
15854         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15855         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15856         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15857         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15858         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15859         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15860         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15861         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15862         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15863         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15864         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15865         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15866         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15867         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15868         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15869         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15870         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15871         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15872         * sysdeps/i386/fpu/e_log.S: Likewise.
15873         * sysdeps/i386/fpu/e_log10.S: Likewise.
15874         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15875         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15876         * sysdeps/i386/fpu/e_log2.S: Likewise.
15877         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15878         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15879         * sysdeps/i386/fpu/e_logf.S: Likewise.
15880         * sysdeps/i386/fpu/e_logl.S: Likewise.
15881         * sysdeps/i386/fpu/e_pow.S: Likewise.
15882         * sysdeps/i386/fpu/e_powf.S: Likewise.
15883         * sysdeps/i386/fpu/e_powl.S: Likewise.
15884         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15885         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15886         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15887         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15888         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15889         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15890         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15891         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15892         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15893         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15894         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15895         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15896         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15897         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15898         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15899         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15900         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15901         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15902         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15903         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15904         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15905         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15906         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15907         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15908         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15909         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15910         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15911         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15912         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15913         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15914         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15915         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15916         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15917         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15918         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15919         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15920         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15921         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15922         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15923         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15924         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15925         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15926         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15927         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15928         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15929         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15930         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15931         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15932         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15933         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15934         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15935         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15936         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15937         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15938         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15939         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15940         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15941         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15942         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15943         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15944         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15945         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15946         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15948         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15949         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15950         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15951         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15952         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15953         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15954         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15955         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15956         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15957         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15958         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15960         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15962         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15963         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15964         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15965         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15966         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15967         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15968         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15969         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15970         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15971         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15972         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15973         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15974         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15975         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15976         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15977         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15978         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15979         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15980         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15981         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15982         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15983         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15984         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15985         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15986         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15987         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15988         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15989         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15990         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15991         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15992         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15993         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15994         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15995         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15996         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15997         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15998         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15999         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16000         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16001         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16002         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16003         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16004         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16005         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16006         (__isnanf): Likewise.
16007         (__isinf_ns): Likewise.
16008         (__isinf_nsf): Likewise.
16009         (__finite): Likewise.
16010         (__finitef): Likewise.
16011         (__ieee754_sqrt): Define as macro.
16012         (__ieee754_sqrtf): Define as macro.
16013         (__ieee754_sqrtl): Define as macro.
16014         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16015         inlined copy.
16016         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16017         __FINITE_MATH_ONLY__ consistent.
16018         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16019
16020 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16021
16022         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16023         of rawmemchr.
16024
16025         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16026
16027 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16028
16029         * po/ja.po: Update from translation team.
16030
16031 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16032
16033         * locale/programs/locarchive.c (prepare_address_space): New function.
16034         (create_archive, enlarge_archive, open_archive): Use it.
16035
16036         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16037         inside [SHARED], where it is used.
16038
16039         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16040
16041         * nss/getent.c (netgroup_keys): Remove unused variable.
16042         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16043
16044 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16045
16046         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16047         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16048         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16049         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16050         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16051         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16052         * math/Makefile (libm-calls): Add s_isinf_ns.
16053         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16054         * math/multc3.c: Likewise.
16055         * math/s_casin.c: Likewise.
16056         * math/s_casinf.c: Likewise.
16057         * math/s_casinl.c: Likewise.
16058         * math/s_ccos.c: Likewise.
16059         * math/s_ccosf.c: Likewise.
16060         * math/s_ccosl.c: Likewise.
16061         * math/s_ctan.c: Likewise.
16062         * math/s_ctanf.c: Likewise.
16063         * math/s_ctanh.c: Likewise.
16064         * math/s_ctanhf.c: Likewise.
16065         * math/s_ctanhl.c: Likewise.
16066         * math/s_ctanl.c: Likewise.
16067         * math/w_fmod.c: Likewise.
16068         * math/w_fmodf.c: Likewise.
16069         * math/w_fmodl.c: Likewise.
16070         * math/w_remainder.c: Likewise.
16071         * math/w_remainderf.c: Likewise.
16072         * math/w_remainderl.c: Likewise.
16073         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16074         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16075         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16076         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16077         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16078         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16079         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16080         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16081
16082         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16083         of the number.
16084         * stdio-common/printf_fphex.c: Likewise.
16085         * stdio-common/printf_size.c: Likewise.
16086
16087         * math/e_exp10.c: Include math_private.h using <...> not "...".
16088         * math/e_exp10f.c: Likewise.
16089         * math/e_exp10l.c: Likewise.
16090         * math/e_exp2l.c: Likewise.
16091         * math/e_j0l.c: Likewise.
16092         * math/e_j1l.c: Likewise.
16093         * math/e_jnl.c: Likewise.
16094         * math/e_lgammal_r.c: Likewise.
16095         * math/e_rem_pio2l.c: Likewise.
16096         * math/e_scalb.c: Likewise.
16097         * math/e_scalbf.c: Likewise.
16098         * math/e_scalbl.c: Likewise.
16099         * math/k_cosl.c: Likewise.
16100         * math/k_sinl.c: Likewise.
16101         * math/k_tanl.c: Likewise.
16102         * math/s_cacoshf.c: Likewise.
16103         * math/s_catan.c: Likewise.
16104         * math/s_catanf.c: Likewise.
16105         * math/s_catanh.c: Likewise.
16106         * math/s_catanhf.c: Likewise.
16107         * math/s_catanhl.c: Likewise.
16108         * math/s_catanl.c: Likewise.
16109         * math/s_ccosh.c: Likewise.
16110         * math/s_ccoshf.c: Likewise.
16111         * math/s_ccoshl.c: Likewise.
16112         * math/s_cexp.c: Likewise.
16113         * math/s_cexpf.c: Likewise.
16114         * math/s_cexpl.c: Likewise.
16115         * math/s_clog.c: Likewise.
16116         * math/s_clog10.c: Likewise.
16117         * math/s_clog10f.c: Likewise.
16118         * math/s_clog10l.c: Likewise.
16119         * math/s_clogf.c: Likewise.
16120         * math/s_clogl.c: Likewise.
16121         * math/s_csin.c: Likewise.
16122         * math/s_csinf.c: Likewise.
16123         * math/s_csinh.c: Likewise.
16124         * math/s_csinhf.c: Likewise.
16125         * math/s_csinhl.c: Likewise.
16126         * math/s_csinl.c: Likewise.
16127         * math/s_csqrt.c: Likewise.
16128         * math/s_csqrtf.c: Likewise.
16129         * math/s_csqrtl.c: Likewise.
16130         * math/s_ctan.c: Likewise.
16131         * math/s_ctanf.c: Likewise.
16132         * math/s_ctanh.c: Likewise.
16133         * math/s_ctanhf.c: Likewise.
16134         * math/s_ctanhl.c: Likewise.
16135         * math/s_ctanl.c: Likewise.
16136         * math/s_ldexp.c: Likewise.
16137         * math/s_ldexpf.c: Likewise.
16138         * math/s_ldexpl.c: Likewise.
16139         * math/s_significand.c: Likewise.
16140         * math/s_significandf.c: Likewise.
16141         * math/s_significandl.c: Likewise.
16142         * math/w_acos.c: Likewise.
16143         * math/w_acosf.c: Likewise.
16144         * math/w_acosh.c: Likewise.
16145         * math/w_acoshf.c: Likewise.
16146         * math/w_acoshl.c: Likewise.
16147         * math/w_acosl.c: Likewise.
16148         * math/w_asin.c: Likewise.
16149         * math/w_asinf.c: Likewise.
16150         * math/w_asinl.c: Likewise.
16151         * math/w_atan2.c: Likewise.
16152         * math/w_atan2f.c: Likewise.
16153         * math/w_atan2l.c: Likewise.
16154         * math/w_atanh.c: Likewise.
16155         * math/w_atanhf.c: Likewise.
16156         * math/w_atanhl.c: Likewise.
16157         * math/w_cosh.c: Likewise.
16158         * math/w_coshf.c: Likewise.
16159         * math/w_coshl.c: Likewise.
16160         * math/w_dremf.c: Likewise.
16161         * math/w_exp10.c: Likewise.
16162         * math/w_exp10f.c: Likewise.
16163         * math/w_exp10l.c: Likewise.
16164         * math/w_exp2.c: Likewise.
16165         * math/w_exp2f.c: Likewise.
16166         * math/w_fmod.c: Likewise.
16167         * math/w_fmodf.c: Likewise.
16168         * math/w_fmodl.c: Likewise.
16169         * math/w_hypot.c: Likewise.
16170         * math/w_hypotf.c: Likewise.
16171         * math/w_hypotl.c: Likewise.
16172         * math/w_j0.c: Likewise.
16173         * math/w_j0f.c: Likewise.
16174         * math/w_j0l.c: Likewise.
16175         * math/w_j1.c: Likewise.
16176         * math/w_j1f.c: Likewise.
16177         * math/w_j1l.c: Likewise.
16178         * math/w_jn.c: Likewise.
16179         * math/w_jnf.c: Likewise.
16180         * math/w_jnl.c: Likewise.
16181         * math/w_lgamma.c: Likewise.
16182         * math/w_lgamma_r.c: Likewise.
16183         * math/w_lgammaf.c: Likewise.
16184         * math/w_lgammaf_r.c: Likewise.
16185         * math/w_lgammal.c: Likewise.
16186         * math/w_lgammal_r.c: Likewise.
16187         * math/w_log.c: Likewise.
16188         * math/w_log10.c: Likewise.
16189         * math/w_log10f.c: Likewise.
16190         * math/w_log10l.c: Likewise.
16191         * math/w_log2.c: Likewise.
16192         * math/w_log2f.c: Likewise.
16193         * math/w_log2l.c: Likewise.
16194         * math/w_logf.c: Likewise.
16195         * math/w_logl.c: Likewise.
16196         * math/w_pow.c: Likewise.
16197         * math/w_powf.c: Likewise.
16198         * math/w_powl.c: Likewise.
16199         * math/w_remainder.c: Likewise.
16200         * math/w_remainderf.c: Likewise.
16201         * math/w_remainderl.c: Likewise.
16202         * math/w_scalb.c: Likewise.
16203         * math/w_scalbf.c: Likewise.
16204         * math/w_scalbl.c: Likewise.
16205         * math/w_sinh.c: Likewise.
16206         * math/w_sinhf.c: Likewise.
16207         * math/w_sinhl.c: Likewise.
16208         * math/w_sqrt.c: Likewise.
16209         * math/w_sqrtf.c: Likewise.
16210         * math/w_sqrtl.c: Likewise.
16211         * math/w_tgamma.c: Likewise.
16212         * math/w_tgammaf.c: Likewise.
16213         * math/w_tgammal.c: Likewise.
16214
16215         * po/ja.po: Update from translation team.
16216
16217 2011-09-29  Andreas Jaeger  <aj@suse.de>
16218
16219         [BZ #13179]
16220         * sunrpc/netname.c (netname2host): Fix logic.
16221
16222         [BZ #6779]
16223         [BZ #6783]
16224         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16225         correctly.
16226         * math/w_remainder.c (__remainder): Likewise.
16227         * math/w_remainderf.c (__remainderf): Likewise.
16228         * math/libm-test.inc (remainder_test): Add test cases.
16229
16230 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16231
16232         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16233         sdiv_qrnnd.
16234
16235 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16236
16237         * string/test-memcmp.c: Avoid unncessary #defines.
16238         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16239
16240 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16241
16242         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16243         Use new sse2 version for core i3 - i7 as it's faster
16244         than sse42 version.
16245         (bit_Prefer_PMINUB_for_stringop): New.
16246         * sysdeps/x86_64/rawmemchr.S: Update.
16247         Replace with faster SSE2 version.
16248         * sysdeps/x86_64/memrchr.S: New file.
16249         * sysdeps/x86_64/memchr.S: Update.
16250         Replace with faster SSE2 version.
16251
16252 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16253
16254         * elf/dl-load.c (lose): Add cast to avoid warning.
16255
16256 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16257
16258         * po/ca.po: Update from translation team.
16259
16260         * inet/getnetgrent_r.c: Hook up nscd.
16261         * nscd/Makefile (routines): Add nscd_netgroup.
16262         (nscd-modules): Add netgroupcache.
16263         (CFLAGS-netgroupcache.c): Define.
16264         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16265         (cache_search): Add const to second parameter.
16266         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16267         INNETGR.
16268         (dbs): Add netgrdb entry.
16269         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16270         (verify_persistent_db): Handle netgrdb.
16271         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16272         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16273         GETFDNETGR.
16274         (netgroup_response_header): Define.
16275         (innetgroup_response_header): Define.
16276         (datahead): Add netgroup_response_header and innetgroup_response_header
16277         elements.
16278         * nscd/nscd.conf: Add entries for netgroup cache.
16279         * nscd/nscd.h (dbtype): Add netgrdb.
16280         (_PATH_NSCD_NETGROUP_DB): Define.
16281         (netgroup_iov_disabled): Declare.
16282         (xmalloc, xcalloc, xrealloc): Move declarations here.
16283         (cache_search): Adjust prototype.
16284         Add netgroup-related prototypes.
16285         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16286         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16287         (__nscd_innetgr): Declare.
16288         * nscd/selinux.c (perms): Use access_vector_t as element type and
16289         add netgroup-related initializers.
16290         * nscd/netgroupcache.c: New file.
16291         * nscd/nscd_netgroup.c: New file.
16292         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16293         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16294         For four parameters use innetgr.
16295         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16296         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16297         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16298         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16299
16300         * nscd/connections.c (register_traced_file): Don't register file
16301         for disabled databases.
16302
16303 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16304
16305         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16306
16307         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16308         from tree and freeing node.
16309
16310 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16311
16312         * nss/nsswitch.c (__nss_database_lookup): Handle
16313         nss_parse_service_list out of memory case.
16314
16315 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16316
16317         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16318         out of memory case.
16319
16320 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16321
16322         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16323         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16324         pass it down.
16325         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16326         elf_machine_rela, elf_machine_lazy_rel.
16327         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16328         (ELF_DYNAMIC_DO_REL): Likewise.
16329         (ELF_DYNAMIC_DO_RELA): Likewise.
16330         (ELF_DYNAMIC_RELOCATE): Likewise.
16331         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16332         to ELF_DYNAMIC_DO_REL.
16333         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16334         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16335         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16336         elf_machine_rela.
16337         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16338         skip_ifunc, don't call ifunc function if non-zero.
16339         (elf_machine_rela): Likewise.
16340         (elf_machine_lazy_rel): Likewise.
16341         (elf_machine_lazy_rela): Likewise.
16342         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16343         (elf_machine_lazy_rel): Likewise.
16344         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16345         Likewise.
16346         (elf_machine_lazy_rel): Likewise.
16347         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16348         Likewise.
16349         (elf_machine_lazy_rel): Likewise.
16350         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16351         (elf_machine_lazy_rel): Likewise.
16352         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16353         (elf_machine_lazy_rel): Likewise.
16354         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16355         (elf_machine_lazy_rel): Likewise.
16356         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16357         (elf_machine_lazy_rel): Likewise.
16358         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16359         (elf_machine_lazy_rel): Likewise.
16360         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16361         (elf_machine_lazy_rel): Likewise.
16362
16363 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16364
16365         * nss/nss_files/files-init.c (_nss_files_init): Use static
16366         initialization for all the *_traced_file variables.
16367
16368 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16369
16370         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16371
16372 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16373
16374         [BZ #13226]
16375         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16376
16377 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16378
16379         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16380         Reread the line before reparsing it.
16381
16382 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16383
16384         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16385
16386 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16387             Maxim Kuvyrkov  <maxim@codesourcery.com>
16388             Joseph Myers  <joseph@codesourcery.com>
16389
16390         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16391         if needed for __stack_chk_guard.
16392
16393 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16394
16395         * sysdeps/posix/spawni.c (script_execute): Always define it.
16396         It will be optimized away if unused.
16397         (maybe_script_execute): New function.
16398         (__spawni): Call it.
16399
16400         * Makerules: Don't include tls.make.
16401         (config-tls): Always set to thread.
16402         * tls.make.c: File removed.
16403
16404 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16405
16406         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16407         * config.make.in (CPPFLAGS-config): New substituted variable.
16408
16409 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16410
16411         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16412
16413         [BZ #13192]
16414         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16415         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16416
16417 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16418
16419         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16420         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16421         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16422         (CALL_FAIL): Likewise.
16423         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16424         (CALL_FAIL): Macro removed.
16425         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16426
16427 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16428
16429         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16430         for __FINITE_MATH_ONLY__ == 1.
16431
16432 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16433
16434         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16435         __ieee754_sqrt instead of sqrt.
16436         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16437         __ieee754_sqrtf instead of sqrtf.
16438         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16439         __floorf instead of floorf.
16440         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16441         __floorf, __truncf instead of floorf, truncf.
16442
16443 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16444
16445         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16446
16447         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16448         __extern_always_inline.
16449         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16450         32-bit.
16451
16452 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16453
16454         * elf/rtld.c (dl_main): Also relocate in dependency order when
16455         doing symbol dependency testing.
16456
16457 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16458
16459         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16460         Always define `refsym'.
16461
16462 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16463
16464         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16465         (__FD_ELT): Renamed from __FDELT.
16466         * misc/bits/select2.h (__FD_ELT): Likewise.
16467         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16468         __FD_MASK instead of __FDELT, __FDMASK.
16469         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16470         Likewise.
16471         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16472         Likewise.
16473
16474         * elf/Makefile (gen-ldd): Fix pattern.
16475
16476         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16477         (init_tls): Likewise.
16478
16479 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16480
16481         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16482
16483 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16484
16485         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16486         `struct cmsghdr *' instead of `void *'.
16487         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16488         Likewise.
16489
16490 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16491
16492         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16493         if non-absolute.
16494         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16495         ldd_rewrite_script.
16496
16497 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16498
16499         * configure.in: Remove --with-tls option.
16500         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16501         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16502         out in case it is missing.
16503         * sysdeps/ia64/elf/configure.in: Likewise.
16504         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16505         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16506         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16507         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16508         * sysdeps/sh/elf/configure.in: Likewise.
16509         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16510         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16511         * sysdeps/x86_64/elf/configure.in: Likewise.
16512         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16513         * sysdeps/mach/hurd/tls.h: Likewise.
16514
16515         [BZ #13067]
16516         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16517
16518         [BZ #13090]
16519         * configure.in: Fix use of AC_INIT.
16520
16521         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16522
16523 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16524
16525         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16526         __set_errno.
16527         * malloc/hooks.c: Likewise.
16528
16529         [BZ #11929]
16530         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16531         variables statically.
16532         (narenas): Initialize.
16533         (list_lock): Initialize.
16534         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16535         initializtion of main_arena and list_lock.  Small cleanups.
16536         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16537         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16538         Add initializers to main_arena and mp_.
16539         (malloc_state): Remove pagesize member.  Change all users to use
16540         GLRO(dl_pagesize).
16541
16542         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16543         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16544         is always initialized.
16545
16546         * malloc/malloc.c: Removed unused configurations and dead code.
16547         * malloc/arena.c: Likewise.
16548         * malloc/hooks.c: Likewise.
16549         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16550
16551         * include/tls.h: Removed.  USE___THREAD must always be defined.
16552         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16553         * elf/dl-libc.c: Likewise.
16554         * elf/dl-tsd.c: Likewise.
16555         * include/errno.h: Likewise.
16556         * include/netdb.h: Likewise.
16557         * include/resolv.h: Likewise.
16558         * inet/herrno-loc.c: Likewise.
16559         * inet/herrno.c: Likewise.
16560         * malloc/arena.c: Likewise.
16561         * malloc/hooks.c: Likewise.
16562         * malloc/malloc.c: Likewise.
16563         * resolv/res-state.c: Likewise.
16564         * resolv/res_libc.c: Likewise.
16565         * sysdeps/i386/dl-machine.h: Likewise.
16566         * sysdeps/ia64/dl-machine.h: Likewise.
16567         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16568         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16569         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16570         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16571         * sysdeps/sh/dl-machine.h: Likewise.
16572         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16573         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16574         * sysdeps/unix/i386/sysdep.S: Likewise.
16575         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16576         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16577         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16578         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16579         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16580         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16581         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16582         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16583         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16584         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16585         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16586         * sysdeps/x86_64/dl-machine.h: Likewise.
16587         * tls.make.c: Likewise.
16588
16589         * configure.in: Remove --with-__thread option.  Make tests for
16590         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16591         tls_model attribute fail if no support is available.  Remove
16592         USE_IN_LIBIO.
16593         * Makeconfig: Adjust for dropped configure option.  All features are
16594         now mandatory.
16595         * Makerules: Likewise.
16596         * Versions.def: Likewise.
16597         * argp/argp-fmtstream.c: Likewise.
16598         * argp/argp-fmtstream.h: Likewise.
16599         * argp/argp-help.c: Likewise.
16600         * assert/assert.c: Likewise.
16601         * config.h.in: Likewise.
16602         * config.make.in: Likewise.
16603         * configure: Likewise.
16604         * configure.in: Likewise.
16605         * csu/Versions: Likewise.
16606         * csu/init.c: Likewise.
16607         * elf/tst-audit2.c: Likewise.
16608         * elf/tst-tls10.c: Likewise.
16609         * elf/tst-tls10.h: Likewise.
16610         * elf/tst-tls11.c: Likewise.
16611         * elf/tst-tls12.c: Likewise.
16612         * elf/tst-tls14.c: Likewise.
16613         * elf/tst-tlsmod11.c: Likewise.
16614         * elf/tst-tlsmod12.c: Likewise.
16615         * elf/tst-tlsmod13.c: Likewise.
16616         * elf/tst-tlsmod13a.c: Likewise.
16617         * elf/tst-tlsmod14a.c: Likewise.
16618         * elf/tst-tlsmod15b.c: Likewise.
16619         * elf/tst-tlsmod16a.c: Likewise.
16620         * elf/tst-tlsmod16b.c: Likewise.
16621         * elf/tst-tlsmod7.c: Likewise.
16622         * elf/tst-tlsmod8.c: Likewise.
16623         * elf/tst-tlsmod9.c: Likewise.
16624         * gmon/gmon.c: Likewise.
16625         * grp/fgetgrent_r.c: Likewise.
16626         * grp/putgrent.c: Likewise.
16627         * hurd/fopenport.c: Likewise.
16628         * include/libc-symbols.h: Likewise.
16629         * include/tls.h: Likewise.
16630         * intl/gettextP.h: Likewise.
16631         * intl/loadinfo.h: Likewise.
16632         * locale/global-locale.c: Likewise.
16633         * locale/localeinfo.h: Likewise.
16634         * mach/devstream.c: Likewise.
16635         * malloc/arena.c: Likewise.
16636         * malloc/set-freeres.c: Likewise.
16637         * misc/err.c: Likewise.
16638         * misc/getttyent.c: Likewise.
16639         * misc/mntent_r.c: Likewise.
16640         * posix/getopt.c: Likewise.
16641         * posix/wordexp.c: Likewise.
16642         * pwd/fgetpwent_r.c: Likewise.
16643         * resolv/Versions: Likewise.
16644         * resolv/res_hconf.c: Likewise.
16645         * shadow/fgetspent_r.c: Likewise.
16646         * shadow/putspent.c: Likewise.
16647         * stdio-common/printf_fphex.c: Likewise.
16648         * stdio-common/tmpfile.c: Likewise.
16649         * stdlib/abort.c: Likewise.
16650         * stdlib/fmtmsg.c: Likewise.
16651         * sunrpc/auth_unix.c: Likewise.
16652         * sunrpc/clnt_perr.c: Likewise.
16653         * sunrpc/clnt_tcp.c: Likewise.
16654         * sunrpc/clnt_udp.c: Likewise.
16655         * sunrpc/clnt_unix.c: Likewise.
16656         * sunrpc/openchild.c: Likewise.
16657         * sunrpc/svc_simple.c: Likewise.
16658         * sunrpc/svc_tcp.c: Likewise.
16659         * sunrpc/svc_udp.c: Likewise.
16660         * sunrpc/svc_unix.c: Likewise.
16661         * sunrpc/xdr.c: Likewise.
16662         * sunrpc/xdr_array.c: Likewise.
16663         * sunrpc/xdr_rec.c: Likewise.
16664         * sunrpc/xdr_ref.c: Likewise.
16665         * sunrpc/xdr_stdio.c: Likewise.
16666
16667 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16668
16669         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16670
16671 2011-07-03  Andreas Jaeger  <aj@suse.de>
16672
16673         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16674         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16675         regenerate with gen-libm-tests.pl.
16676
16677 2010-05-12  Petr Baudis  <pasky@suse.cz>
16678
16679         [BZ #11589]
16680         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16681         around j0() zero points by switching to j1().
16682         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16683         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16684         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16685         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16686
16687 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16688
16689         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16690         instead of 0.
16691         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16692         instead of 0.                              .
16693         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16694         Patch in part by Pavel Roskin <proski@gnu.org>.
16695
16696         [BZ #13138]
16697         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16698         realloc.
16699         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16700         Free memory block if necessary.
16701
16702         [BZ #12847]
16703         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16704         be NULL.  Don't lock in this case.
16705
16706 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16707
16708         * elf/elf.h (ELFOSABI_GNU): New macro.
16709         (ELFOSABI_LINUX): Define to that.
16710
16711 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16712
16713         * string/strncat.c (strncat): Undef the symbol in case it has been
16714         defined in bits/string.h.
16715
16716 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16717
16718         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16719
16720         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16721         link map.
16722
16723 2011-08-17  Andreas Jaeger  <aj@suse.de>
16724
16725         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16726
16727 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16728             Ian Lance Taylor  <iant@google.com>
16729
16730         * math/libm-test.inc (lround_test): New testcase.
16731         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16732
16733 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16734
16735         * Makefile: Remove support for automatic cvs check-ins.
16736         * Makerules: Likewise.
16737         * config.make.in: Likewise.
16738         * configure.in: Likewise.
16739         * intl/Makefile: Likewise.
16740         * locale/Makefile: Likewise.
16741         * po/Makefile: Likewise.
16742         * posix/Makefile: Likewise.
16743         * sysdeps/gnu/Makefile: Likewise.
16744         * sysdeps/mach/hurd/Makefile: Likewise.
16745         * sysdeps/sparc/sparc32/Makefile: Likewise.
16746
16747         [BZ #13118]
16748         * posix/Makefile (bug-regex32-ENV): Define.
16749         Patch by John Stanley <jpsinthemix@verizon.net>.
16750
16751         * misc/Makefile (headers): Add bits/select2.h.
16752         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16753         * misc/bits/select2.h: New file.
16754         * include/bits/select2.h: New file.
16755         * debug/Makefile (routines): Add fdelt_chk.
16756         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16757         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16758         FD_ISSET.
16759         * debug/fdelt_chk.c: New file.
16760
16761         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16762         * wcsmbs/test-wmemcmp.c: Likewise.
16763         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16764         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16765
16766 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16767
16768         * string/Makefile (strop-tests): Add memcmp.
16769         * string/test-wmemcmp.c: New file.
16770         * string/test-memcmp.c: Add wmemcmp support.
16771
16772 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16773
16774         [BZ #13153]
16775         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16776         2011-07-19 change.
16777
16778         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16779         garbage value in a __mach_port_mod_refs call in the cases of the
16780         task-self and thread-self ports.
16781
16782 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16783
16784         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16785
16786 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16787
16788         * elf/dl-load.c (lose): Check for non-null L.
16789
16790 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16791
16792         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16793
16794         * elf/dl-libc.c (dlerror_run): Pass back error code from
16795         dl_catch_error.
16796
16797         [BZ #13123]
16798         * elf/dl-load.c (lose): Free l_origin if it is valid.
16799
16800         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16801         names.
16802         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16803         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16804         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16805         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16806         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16807         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16808
16809 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16810
16811         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16812         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16813         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16814         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16815         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16816         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16817         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16818         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16819         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16820         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16821
16822 2011-08-15  Alan Modra  <amodra@gmail.com>
16823
16824         [BZ #13092]
16825         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16826         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16827         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16828         ppc_mcount to static-only-routines.
16829         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16830         __mcount_internal.
16831         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16832         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16833
16834 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16835
16836         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16837         for finite and infinity parameters.
16838
16839 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16840
16841         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16842         and add nop instructions for throughput optimization.
16843         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16844
16845 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16846
16847         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16848         aligned copy for power7 with vector-scalar instructions.
16849         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16850
16851 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16852
16853         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16854         AVX check.
16855
16856 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16857
16858         [BZ #13144]
16859         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16860         last change.
16861
16862 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16863
16864         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16865         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16866         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16867         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16868         clock_gettime.
16869
16870 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16871
16872         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16873         Forgot to demangle the pointer.
16874
16875         * sysdeps/i386/sysdep.h: Define atom_text_section.
16876         * sysdeps/x86_64/sysdep.h: Likewise.
16877         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16878         section with atom_text_section.
16879         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16880         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16881         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16882         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16883         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16884
16885         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16886         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16887         already be defined.  Change to take two parameters and don't assign
16888         result to variable.  Adjust all users.
16889         Define INTERNAL_GETTIME if not already defined.
16890         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16891         call.
16892         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16893         HAVE_CLOCK_GETTIME_VSYSCALL.
16894         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16895
16896         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16897         gettimeofday vsyscall, just use time.
16898
16899 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16900
16901         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16902         <errno.h>.
16903
16904 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16905
16906         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16907         syscall on x86-64.
16908         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16909         syscall.
16910         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16911         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16912         syscall if possible.
16913
16914 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16915
16916         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16917         e_ident.  Don't pass to find_mapsXX.
16918         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16919
16920 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16921
16922         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16923         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16924         * sysdeps/x86_64/multiarch/strchr.S: Update.
16925         Check bit_slow_BSF bit.
16926         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16927         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16928         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16929
16930 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16931
16932         [BZ #13134]
16933         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16934         before glibc 2.15.
16935         (tryshell): Define.
16936         (__spawni): Change last parameter to be flag.  Test
16937         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16938         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16939         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16940         * posix/spawni.c: Likewise.
16941         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16942         * posix/spawnp.c: Likewise.  Change normal version to use
16943         SPAWN_XFLAGS_USE_PATH.
16944         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16945         SPAWN_XFLAGS_TRY_SHELL.
16946
16947         [BZ #13150]
16948         * posix/glob.h: Remove gcc 1.x support.
16949
16950         [BZ #13068]
16951         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16952
16953 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16954
16955         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16956         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16957         strrchr-sse2-bsf
16958         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16959         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16960         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16961         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16962         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16963         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16964
16965 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16966
16967         * sysdeps/x86_64/wcscmp.S: New file.
16968
16969         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16970         wcscmp-c wcscmp-sse2
16971         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16972         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16973         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16974         * wcsmbs/wcscmp.c: Allow renaming.
16975
16976 2011-09-05  David S. Miller  <davem@davemloft.net>
16977
16978         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16979         stack slot, rather than the struct return pointer slot.
16980         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16981         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16983         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16984
16985 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16986
16987         * po/ja.po: Update from translation team.
16988
16989         [BZ #13144]
16990         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16991         kernel in 64-bit binaries.
16992
16993 2011-09-01  David S. Miller  <davem@davemloft.net>
16994
16995         * elf/elf.h (HWCAP_SPARC_*): Move to..
16996         * sysdeps/sparc/sysdep.h: this new file and add new values.
16997         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16998         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16999         _DL_HWCAP_COUNT to 24.
17000         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17001         entries.
17002         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17003         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17004         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17005         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17006         instead of magic constants.
17007         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17008
17009 2011-08-31  David S. Miller  <davem@davemloft.net>
17010
17011         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17012         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17013         Reimplement to do errno handling inline.
17014         (SYSCALL_ERROR_HANDLER): New macro.
17015         (__SYSCALL_STRING): Do not do errno handling in asm.
17016         (__CLONE_SYSCALL_STRING): Delete.
17017         (__INTERNAL_SYSCALL_STRING): Delete.
17018         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17019         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17020         (PSEUDO): Reimplement to do errno handling inline.
17021         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17022         (SYSCALL_ERROR_HANDLER): New macro.
17023         (__SYSCALL_STRING): Do not do errno handling in asm.
17024         (__CLONE_SYSCALL_STRING): Delete.
17025         (__INTERNAL_SYSCALL_STRING): Delete.
17026         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17027         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17028         i386.
17029         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17030         (inline_syscall*): Add 'err' argument.
17031         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17032         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17033         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17034         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17035
17036         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17037         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17038
17039 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17040
17041         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17042
17043 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17044
17045         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17046         directive.
17047
17048 2011-08-24  David S. Miller  <davem@davemloft.net>
17049
17050         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17051
17052 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17053
17054         * elf/Makefile: Add rules to build and run unload8 test.
17055         * elf/unload8.c: New file.
17056         * elf/unload8mod1.c: New file.
17057         * elf/unload8mod1x.c: New file.
17058         * elf/unload8mod2.c: New file.
17059         * elf/unload8mod3.c: New file.
17060
17061         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17062         it wasn't used.
17063
17064 2011-08-23  David S. Miller  <davem@davemloft.net>
17065
17066         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17067         subtract stack bias.
17068         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17069         %sp not %fp in calculations.
17070         (_JMPBUF_UNWINDS_ADJ): Likewise.
17071
17072         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17073         (aio_suspend): Call it to force an exception region around the
17074         AIO_MISC_WAIT() invocation.
17075
17076 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17077
17078         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17079         backslash.
17080
17081 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17082
17083         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17084         protection macro.
17085         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17086         and <dl-machine.h>.
17087         (Elf64_FuncDesc): Remove.
17088
17089 2011-08-22  David S. Miller  <davem@davemloft.net>
17090
17091         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17092         sigaltstack check, add missing cfi directives.
17093         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17094         missing cfi directives, and sigaltstack handling.
17095
17096 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17097
17098         [BZ #11724]
17099         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17100         object is seen twice.
17101         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17102
17103         * elf/Makefile (distribute): Add tst-initorder2.c.
17104         (tests): Add tst-initorder2.
17105         (modules-names): Add tst-initorder2a tst-initorder2b
17106         tst-initorder2c tst-initorder2d.  Add rules to build them.
17107         ($(objpfx)tst-initorder2.out): New rule.
17108         * elf/tst-initorder2.c: New file.
17109         * elf/tst-initorder2.exp: New file.
17110
17111 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17112
17113         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17114
17115         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17116         dependencies back to end of function.
17117
17118         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17119         $(elfobjdir)/ld.so.
17120
17121 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17122
17123         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17124         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17125         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17126         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17127         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17128         of __vdso_gettimeofday.
17129         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17130         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17131         attribute_hidden.
17132         (_libc_vdso_platform_setup): Remove initialization of
17133         __vdso_gettimeofday and __vdso_time.
17134
17135 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17136
17137         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17138         and fgetc_unlocked.
17139         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17140         getc_unlocked.
17141
17142         * elf/dl-open.c (add_to_global): Report additions to the global scope
17143         for LD_DEBUG=scopes.
17144         (dl_open_worker): Also print scope of newly loaded dependencies.
17145         (_dl_show_scope): Indicate if there is no scope.
17146
17147         [BZ #13114]
17148         * stdio-common/Makefile (tests): Add bug24.
17149         * stdio-common/bug24.c: New file.
17150
17151 2011-08-19  Andreas Jaeger  <aj@suse.de>
17152
17153         [BZ #13114]
17154         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17155         non-existant file when using close-on-exec mode.
17156
17157 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17158
17159         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17160         the very first instruction.
17161
17162         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17163         the CFI state in the end.
17164         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17165         inclusion of dl-trampoline.h.
17166         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17167
17168 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17169
17170         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17171         expectations for long double.
17172
17173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17174         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17175
17176 2011-08-14  David S. Miller  <davem@davemloft.net>
17177
17178         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17179         artificual limit depends upon the system page size.
17180
17181 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17182
17183         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17184         * resolv/Makefile: Define CFLAGS-libresolv.
17185
17186 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17187
17188         * nss/makedb.c (compute_tables): Make variables used in nested
17189         function static.
17190
17191 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17192
17193         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17194         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17195         if buffer was too small.
17196
17197         * elf/pldd.c (main): Attach to all threads in the process.
17198         Rewrite /proc handling to use *at functions.
17199
17200 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17201
17202         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17203         specifies first scope to show.
17204         (dl_open_worker): Update callers.  Move printing scope of new
17205         object to before the relocation.
17206         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17207         * sysdeps/generic/ldsodefs.h: Update declaration.
17208
17209         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17210         string for the scope number.
17211
17212 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17213
17214         * nscd/servicescache.c (cache_addserv): Make sure written is always
17215         initialized.
17216
17217 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17218
17219         * sysdeps/i386/i486/bits/atomic.h
17220         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17221         statement expression, so as to suppress "set but not used" warning.
17222         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17223
17224         * string/strncat.c (STRNCAT): Use prototype definition.
17225
17226         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17227         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17228         -Iprograms here.
17229         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17230         (localedef-modules): Add localedef.
17231         (locale-modules): Add locale.
17232
17233         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17234         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17235         to avoid a warning.
17236
17237 2011-08-14  David S. Miller  <davem@davemloft.net>
17238
17239         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17240         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17241
17242 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17243
17244         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17245         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17246         * elf/rtld.c (dl_main): Set l_name of vDSO.
17247         Call _dl_show_scope when DL_DEBUG_SCOPES.
17248         (process_dl_debug): Recognize scopes flag and also set it for all.
17249         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17250         Declare _dl_show_scope.
17251
17252         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17253         (do_dlopen): Pass caller_dlopen to dl_open.
17254         (__libc_dlopen_mode): Initialize caller_dlopen.
17255
17256         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17257         of libc.  Make tolower call locale-independent.  Optimize a bit by
17258         using isdigit instead of isalnum.
17259         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17260
17261 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17262
17263         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17264         was a dependency or dynamically loaded.
17265
17266 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17267
17268         * intl/l10nflist.c: Allow architecture-specific pop function.
17269         * sysdeps/x86_64/l10nflist.c: New file.
17270
17271         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17272         classification.
17273
17274 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17275
17276         * include/dirent.h: Add libc_hidden_proto for scandirat and
17277         scandirat64.  Don't declare __scandirat64.
17278         * dirent/scandirat.c: Add libc_hidden_def.
17279         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17280         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17281
17282 2011-08-10  David S. Miller  <davem@davemloft.net>
17283
17284         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17285         enum.
17286         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17287         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17288         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17289
17290 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17291
17292         * Versions.def [libc]: Add GLIBC_2.15.
17293         * dirent/Makefile (routines): Add scandirat and scandirat64.
17294         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17295         GLIBC_2.15.
17296         * dirent/dirent.h: Declare scandirat and scandirat64.
17297         * dirent/scandirat.c: New file.
17298         * dirent/scandirat64.c: New file.
17299         * sysdeps/wordsize-64/scandirat.c: New file.
17300         * sysdeps/wordsize-64/scandirat64.c: New file.
17301         * dirent/opendir.c: Define opendirat.
17302         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17303         using scandirat.
17304         * dirent/scandir64.c: Adjust for scandir.c change.
17305         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17306         __scandirat64, and __scandir_cancel_handler.
17307         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17308         additional parameter and use openat instead of open (outside of ld.so).
17309         Add new __opendir as wrapper around __opendirat.
17310         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17311         here without requiring old scandirat implementation.
17312
17313 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17314
17315         * dirent/scandir.c (cancel_handler): Renamed to
17316         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17317         defined.  Adjust users.
17318         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17319         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17320
17321 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17322
17323         * string/test-string.h (IMPL): Use __STRING to expand name and then
17324         stringify it.
17325
17326         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17327         of cleanups.
17328
17329 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17330
17331         * string/Makefile: Update.
17332         (strop-tests): Append strncat.
17333         * string/test-wcscmp.c: New file.
17334         New comprehensive test for wcscmp.
17335         * string/test-strcmp.c: Update.
17336         (WIDE): New define.
17337
17338 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17339
17340         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17341         line.
17342
17343 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17344
17345         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17346         encoding to ACE if AI_IDN.
17347
17348 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17349
17350         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17351         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17352
17353 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17354
17355         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17356         Fix overflow bug in strncat.
17357         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17358
17359         * string/test-strncat.c: Update.
17360         Add new tests for checking overflow bugs.
17361
17362 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17363
17364         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17365         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17366         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17367         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17368         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17369         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17370         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17371         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17372         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17373
17374         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17375         (USE_AS_STRCAT): Define.
17376         Add strcat and strncat support.
17377         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17378
17379 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17380
17381         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17382         __n bigger than INT_MAX+1.
17383         (__strncmp_g): Likewise.
17384
17385 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17386
17387         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17388         * libio/stido.h: Likewise.
17389
17390         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17391         (AF_NFC): Define.
17392         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17393         (AF_NFC): Define.
17394
17395         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17396         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17397         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17398         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17399         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17400
17401         [BZ #13021]
17402         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17403         installed.
17404
17405         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17406         typo.
17407         (_dl_x86_64_save_sse): Likewise.
17408
17409 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17410
17411         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17412         OSXSAVE.
17413         (_dl_x86_64_save_sse): Likewise.
17414
17415         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17416
17417         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17418
17419 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17420
17421         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17422         change.
17423         (_dl_x86_64_save_sse): Use correct AVX check.
17424
17425 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17426
17427         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17428         bug in strncpy/strncat.
17429         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17430
17431 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17432
17433         * string/tester.c (test_strcat): Add tests for different alignments
17434         of source and destination.
17435         (test_strncat): Likewise.
17436
17437 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17438
17439         [BZ #12852]
17440         * posix/glob.c (glob): Check passed in values before using them in
17441         expressions to avoid some overflows.
17442         (glob_in_dir): Likewise.
17443
17444         [BZ #13007]
17445         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17446         check for AVX enablement so that we don't crash with old kernels and
17447         new hardware.
17448         * elf/tst-audit4.c: Add same checks here.
17449         * elf/tst-audit6.c: Likewise.
17450
17451         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17452
17453 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17454
17455         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17456
17457 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17458
17459         * po/cs.po: Update from translation team.
17460         * po/bg.po: Likewise.
17461
17462 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17463
17464         * misc/sys/cdefs.h: Add support for const attribute.
17465         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17466         to gnu_dev_{major,minor,makedev} functions.
17467
17468 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17469
17470         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17471
17472 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17473
17474         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17475         strlen results.
17476
17477 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17478
17479         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17480         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17481         register in order to avoid conflicts with the soft frame pointer
17482         being held in r11 when necessary.
17483         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17484         (INTERNAL_VSYSCALL_NCS): Likewise.
17485
17486 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17487
17488         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17489         * elf/dl-fini.c (_dl_fini): Adjust caller.
17490         * elf/dl-close.c (_dl_close_worker): Likewise.
17491         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17492
17493 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17494
17495         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17496         "aux_cache->nlibs < 0".
17497
17498         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17499         in the reload-count case.
17500
17501 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17502
17503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17504         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17505         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17506         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17507         * sysdeps/x86_64/multiarch/strcat.S: New file.
17508         * sysdeps/x86_64/multiarch/strncat.S: New file.
17509         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17510         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17511         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17512         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17513         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17514         (USE_AS_STRCAT): Define.
17515         Add strcat and strncat support.
17516         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17517         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17518         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17519         * string/strncat.c: Update.
17520         (USE_AS_STRNCAT): Define.
17521         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17522         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17523         and i7.
17524         * sysdeps/x86_64/multiarch/init-arch.h
17525         (bit_Prefer_PMINUB_for_stringop): New.
17526         (index_Prefer_PMINUB_for_stringop): Likewise.
17527         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17528         bit_Prefer_PMINUB_for_stringop.
17529
17530 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17531
17532         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17533         buffer64.
17534         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17535         of casting of buffer.
17536         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17537         buffer32 and buffer64.
17538         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17539         writes instead of casting of buffer.
17540         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17541         buffer32.
17542         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17543         casting of buffer.
17544
17545 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17546
17547         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17548
17549 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17550
17551         * nscd/nscd.c (termination_handler): Don't do anything for a database
17552         if it has not yet been initialized.
17553
17554 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17555
17556         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17557
17558 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17559
17560         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17561
17562 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17563
17564         * po/nl.po: Update from translation team.
17565         * po/sv.po: Likewise.
17566
17567 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17568
17569         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17570         now disallowed by GCC.
17571
17572         * configure.in (use-default-link): Default to yes if a test -shared
17573         link meets our qualifications.
17574         * configure: Regenerated.
17575
17576         * config.make.in (output-format): New variable.
17577         * configure.in: Check for ld --print-output-format support.
17578         * configure: Regenerated.
17579         * Makerules ($(common-objpfx)format.lds)
17580         [$(output-format) != unknown]: Just use $(output-format),
17581         instead of the linker-script munging.
17582
17583 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17584
17585         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17586         of $(common-objpfx)shlib.lds.
17587         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17588
17589         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17590         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17591
17592         * configure.in (-z relro check): Adjust test code to add a large
17593         writable data section after it.
17594         * configure: Regenerated.
17595
17596 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17597
17598         * configure.in (-z relro check): Fix test code to make the variable
17599         truly const.
17600         * configure: Regenerated.
17601
17602 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17603
17604         * nscd/nscd.h (struct traced_file): Define.
17605         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17606         elements.  Add traced_files.
17607         (inotify_fd): Declare.
17608         (register_traced_file): Declare.
17609         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17610         (inotify_fd): Export.
17611         (resolv_conf_descr): Remove.
17612         (nscd_init): Move inotify descriptor creation to main.
17613         Don't register files for notification here.
17614         (register_traced_file): New function.
17615         (invalidate_cache): Don't use reset_res to determine whether to call
17616         res_init, go through the list of registered files.
17617         (main_loop_poll): The inotify descriptors are now stored in the
17618         structures for the traced files.
17619         (main_loop_epoll): Likewise
17620         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17621         to __nss_disable_nscd.
17622         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17623         for a database anymore.  Check the records for all the registered
17624         files instead.
17625         * nss/Makefile (libnss_files-routines): Add files-init.
17626         (libnss_db-routines): Add db-init.
17627         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17628         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17629         * nss/nss_db/db-init.c: New file.
17630         * nss/nss_files/files-init.c: New file.
17631         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17632         __nss_lookup_function.
17633         (__nss_lookup_function): Call nss_load_library.
17634         (nss_load_all_libraries): New function.
17635         (__nss_disable_nscd): Take parameter with callback function for files
17636         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17637         used for the cached services.
17638         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17639         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17640         options for features to all the files in nscd.
17641
17642         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17643
17644 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17645
17646         * csu/elf-init.c (__libc_csu_init): Comment typo.
17647
17648 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17649
17650         * po/pl.po: Update from translation team.
17651         * po/ja.po: Likewise.
17652         * po/ru.po: Likewise.
17653         * po/ko.po: Likewise.
17654         * po/fr.po: Likewise.
17655
17656 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17657
17658         * configure.in (.ctors/.dtors header and trailer check):
17659         Use an empirical test on a built program.
17660         * configure: Regenerated.
17661
17662         * configure.in (-z relro check): Use an empirical test on a built DSO.
17663         Detect, but do not require, on ia64.
17664         * configure: Regenerated.
17665
17666         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17667         Update tests that use readelf to use $READELF instead.
17668         * configure: Regenerated.
17669
17670 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17671
17672         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17673         if the result is not used.
17674
17675 2011-07-05  Andreas Jaeger  <aj@suse.de>
17676
17677         [BZ#9696]
17678         * stdlib/tst-strtod.c: Add testcase.
17679
17680 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17681
17682         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17683         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17684         The latter has a higher limit.  Take additional parameter to pass to
17685         the new function.
17686         (__pathconf): Pass file to __statfs_link_max.
17687         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17688         __statfs_link_max.
17689         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17690         __statfs_link_max.
17691
17692         [BZ #12868]
17693         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17694         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17695         Handle Lustre.
17696         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17697         (__statfs_filesize_max): Likewise.
17698         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17699
17700 2011-07-05  Andreas Jaeger  <aj@suse.de>
17701
17702         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17703
17704 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17705
17706         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17707         `status' variable.
17708         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17709         Likewise.
17710
17711 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17712
17713         * Makefile (strop-tests): Add strncat.
17714         * string/test-strncat.c: New file.
17715
17716 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17717
17718         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17719
17720 2011-06-21  Andreas Jaeger  <aj@suse.de>
17721
17722         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17723         Copy rule from iconvdata/Makefile.
17724
17725 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17726
17727         [BZ #12922]
17728         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17729         but no long options are defined, just return 'W'.
17730
17731 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17732
17733         [BZ #9696]
17734         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17735
17736 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17737
17738         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17739         netgroups to read.
17740         (innetgr): Likewise.
17741
17742 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17743
17744         * config.make.in (install_root): Default to $(DESTDIR).
17745
17746 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17747
17748         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17749
17750 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17751
17752         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17753
17754         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17755         containing directory rather than embedding absolute directory names.
17756
17757         * scripts/check-local-headers.sh: Rewritten using awk.
17758         Match by word, not by line.  Print error messages for matches.
17759         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17760
17761         * Makerules [shlib-lds-flags empty]:
17762         ($(common-objpfx)libc_pic.opts): New target.
17763         ($(common-objpfx)libc_pic.os.clean): New target.
17764         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17765
17766         * config.make.in (OBJCOPY): New variable.
17767         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17768         * configure: Regenerated.
17769
17770         * config.make.in (use-default-link): New variable.
17771         * configure.in (use_default_link): Grok --with-default-link to set it.
17772         * configure: Regenerated.
17773         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17774         (shlib-lds, shlib-lds-flags): Define to empty.
17775
17776         * Makerules (shlib-lds): New variable.
17777         (shlib-lds-flags): New variable.
17778         (build-shlib, build-moduile, build-module-asneeded): Use it.
17779         ($(common-objpfx)libc.so): Use $(shlib-lds).
17780         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17781         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17782
17783         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17784         DT_FLAGS/DT_FLAGS_1 with zero flags.
17785
17786         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17787         linker script munging.
17788
17789 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17790
17791         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17792         as 128-bit value.
17793         * crypt/sha512.c (sha512_process_block): Perform total addition using
17794         128-bit if possible.
17795         (__sha512_finish_ctx): Likewise.
17796         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17797         as 64-bit value.
17798         * crypt/sha256.c (SWAP64): Define.
17799         (sha256_process_block): Perform total addition using 64-bit if
17800         possible.
17801         (__sha256_finish_ctx): Likewise.
17802
17803 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17804
17805         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17806         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17807         * nscd/hstcache.c (cache_addhst): Likewise.
17808         * nscd/grpcache.c (cache_addgr): Likewise.
17809         * nscd/aicache.c (addhstaiX): Likewise
17810         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17811
17812 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17813
17814         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17815         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17816         * nscd/hstcache.c (cache_addhst): Likewise.
17817         * nscd/grpcache.c (cache_addgr): Likewise.
17818         * nscd/aicache.c (addhstaiX): Likewise
17819
17820 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17821
17822         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17823         domain only when needed.
17824
17825 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17826
17827         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17828         is always restored.
17829
17830 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17831
17832         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17833         are re-adding the entry.
17834         * nscd/servicescache.c (cache_addserv): Likewise.
17835
17836 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17837
17838         * sysdeps/generic/dl-irel.h: fix protection against multiple
17839         inclusions.
17840         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17841
17842 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17843
17844         [BZ #12935]
17845         * malloc/memusage.sh: Fix quoting in message.
17846         * debug/xtrace.sh: Likewise.
17847
17848         * configure.in: Remove support for --experimental-malloc option, make
17849         it the default.
17850         * config.make.in: Likewise.
17851         * malloc/Makefile: Likewise.
17852
17853 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17854
17855         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17856         two-byte characters.
17857
17858 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17859
17860         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17861         AC_CACHE_CHECK invocation.
17862         * configure: Regenerated.
17863
17864         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17865
17866 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17867
17868         [BZ #12350]
17869         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17870         bit from old_res_options.
17871
17872         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17873
17874         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17875         value type for setfct.
17876
17877 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17878
17879         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17880         __gettimeofday instead of gettimeofday.
17881
17882 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17883
17884         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17885
17886 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17887
17888         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17889
17890         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17891         info.
17892
17893 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17894
17895         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17896         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17897         strcpy-sse2-unaligned strncpy-sse2-unaligned
17898         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17899         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17900         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17901         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17902         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17903         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17904         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17905         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17906         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17907         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17908         (STRCPY): Support SSE2 and SSSE3 versions.
17909
17910 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17911
17912         [BZ #12874]
17913         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17914         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17915         kernels which artificially limit size of requests.
17916
17917 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17918
17919         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17920         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17921         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17922         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17923         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17924         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17925         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17926         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17927         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17928         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17929         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17930         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17931         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17932         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17933         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17935         Enable unaligned load optimization for Intel Core i3, i5 and i7
17936         processors.
17937         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17938         Define.
17939         (index_Fast_Unaligned_Load): Define.
17940         (HAS_FAST_UNALIGNED_LOAD): Define.
17941
17942 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17943
17944         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17945
17946 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17947
17948         [BZ #12907]
17949         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17950         until it is clear that the information is realy needed.
17951         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17952
17953 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17954
17955         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17956
17957 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17958
17959         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17960         /sys/devices/system/cpu/online if it is usable.
17961
17962         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17963         reading the information from the /proc filesystem to once a second.
17964
17965 2011-06-21  Andreas Jaeger  <aj@suse.de>
17966
17967         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17968         NULL after inclusion of kernel headers.
17969
17970 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17971
17972         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17973         calls to internal_setent.
17974
17975         [BZ #12885]
17976         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17977         addresses using gethostbyname4_r ignore IPv4 addresses.
17978
17979         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17980         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17981
17982         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17983
17984 2011-06-20  David S. Miller  <davem@davemloft.net>
17985
17986         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17987         inclusions.
17988         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17989
17990         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17991         (elf_irel): Use it.
17992         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17993         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17994         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17995         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17996         * sysdeps/x86_64/dl-irel.h: Likewise.
17997
17998         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17999         * elf/dl-sym.c: Likewise.
18000
18001 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18002
18003         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18004         need to dereference resplen2.
18005
18006 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18007
18008         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18009
18010 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18011
18012         * Makeconfig: Define vardbdir and inst_vardbdir.
18013         * nss/Makefile: Add rules to install db-Makefile.
18014
18015         * nss/nss_db/db-XXX.c: Cleanup.
18016
18017         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18018         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18019         GLIBC_PRIVATE.
18020         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18021         * nss/makedb.c: Implement -g option to specify that value strings
18022         are generated and should not be added to table iterated over for
18023         get*ent calls.
18024         * nss/nss_db/db-initgroups.c: New file.
18025
18026         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18027         interface.
18028
18029         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18030         (internal_getgrouplist): Adjust to name change.
18031         Update use_initgroups_entry if this is not the first call.
18032         * nss/databases.def: Add initgroups entry.
18033
18034         * nss/makedb.c (compute_tables): Check result of multiple hash table
18035         sizes to minimize maximum chain length.
18036
18037 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18038
18039         * Versions.def: Add entry for libnss_db.
18040         * shlib-versions: Likewise.
18041         * nss/Makefile: Add rules to build libnss_db.
18042         * nss/Versions: Add libnss_db information.  Organize libnss_files
18043         entries better.
18044         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18045         makedb progra.  Some minor improvements to generate smaller files.
18046         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18047         here from...
18048         * nss/makedb.c: ...here.
18049         Improve database format to be smaller and require less memory at
18050         runtime.
18051         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18052         db anymore.
18053         * nss/nss_db/db-netgrp.c: Likewise.
18054         * nss/nss_db/db-open.c: Likewise.
18055         * nss/nss_files/flies-XXX.x: Adjust comments.
18056         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18057         * nss/nss_files/files-grp.c: Likewise.
18058         * nss/nss_files/files-hosts.c: Likewise.
18059         * nss/nss_files/files-network.c: Likewise.
18060         * nss/nss_files/files-proto.c: Likewise.
18061         * nss/nss_files/files-pwd.c: Likewise.
18062         * nss/nss_files/files-rpc.c: Likewise.
18063         * nss/nss_files/files-service.c: Likewise.
18064         * nss/nss_files/files-sgrp.c: Likewise.
18065         * nss/nss_files/files-spwd.c: Likewise.
18066         * nss/nss_db/db-alias.c: Removed.
18067         * nss/nss_db/dummy-db.h: Removed.
18068
18069 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18070
18071         * nss/makedb.c: Rewritten to not use database library.
18072         * nss/Makefile: Update to build new makedb program.
18073
18074 2011-06-14  Andreas Jaeger  <aj@suse.de>
18075
18076         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18077         memset declaration.
18078
18079 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18080
18081         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18082         tmpbuf.
18083
18084 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18085
18086         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18087         * elf/Makefile ($(objpfx)ld.so): Likewise.
18088
18089         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18090         Don't list ld.so twice in dependencies.
18091
18092         * posix/bug-regex31.c: Include <stdlib.h>.
18093
18094         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18095
18096         * nis/nss_compat/compat-spwd.c
18097         (getspent_next_nss_netgr): Remove unused variable.
18098         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18099
18100         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18101         nonmembers" output to use the right array.
18102
18103         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18104
18105         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18106
18107         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18108         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18109         * catgets/gencat.c (read_input_file): Likewise.
18110         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18111
18112         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18113         variable definition inside #if's controlling its use.
18114
18115         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18116
18117         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18118
18119         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18120
18121         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18122         unreachable code.
18123
18124         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18125
18126         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18127         * configure: Regenerated.
18128
18129         * Makerules: Revert last change.
18130         * elf/Makefile: Likewise.
18131
18132 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18133
18134         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18135         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18136         (reloc-link): Likewise.
18137
18138 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18139
18140         * elf/Makefile: Add rules to build pldd.
18141         * elf/pldd.c: New file.
18142         * elf/pldd-xx.c: New file.
18143
18144 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18145
18146         * version.h: Update for 2.15 development version.
18147
18148 2011-06-07  David S. Miller  <davem@davemloft.net>
18149
18150         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18151         ifuncs.
18152         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18153         elf_machine_lazy_rel): Likewise.
18154         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18155         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18156         elf_machine_lazy_rel): Likewise.
18157         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18158         dl_hwcap via passed in argument.
18159         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18160         Likewise.
18161
18162 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18163
18164         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18165
18166 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18167
18168         [BZ #12849]
18169         * manual/fdl-1.1.texi: New file, verbatim from:
18170         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18171         * manual/lgpl-2.1.texi: New file, verbatim from:
18172         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18173         * manual/Makefile (licenses): New variable, list those new file names.
18174         (texis): Use it.
18175         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18176
18177         * manual/fdl.texi: File removed.
18178         * manual/lesser.texi: File removed.
18179         * manual/libc.texinfo (Copying, Documentation License):
18180         Use new @include file names, put @appendix directive before @include.
18181
18182 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18183
18184         [BZ #12841]
18185         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18186         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18187         (mq_open): Add __NTH.
18188
18189 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18190
18191         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18192         Assume Intel Core i3/i5/i7 processor if AVX is available.
18193
18194 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18195
18196         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18197         typo.
18198
18199 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18200
18201         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18202         memory.  Use alloca_account.  Fix memory leak when retrying.
18203
18204 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18205
18206         * version.h (RELEASE): Bump for 2.14 release.
18207         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18208
18209         * config.make.in (RANLIB): Remove entry.
18210
18211 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18212
18213         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18214         (libc.pot): Work around missing support for .ksh extension in xgettext.
18215
18216         [BZ #12684]
18217         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18218         if both request failed.
18219         (send_dg): In case of server errors clear resplen or *resplen2.
18220
18221         [BZ #12454]
18222         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18223         when there are multiple maps.
18224         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18225         (_dl_fini): Remove test here.
18226
18227         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18228
18229 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18230
18231         [BZ #12350]
18232         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18233         bit from old_res_options.
18234         (gaih_inet): Likewise.
18235
18236         [BZ #11099]
18237         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18238         as signed.
18239
18240         * resolv/res_init.c (res_setoptions): Make the code more compact.
18241
18242         [BZ #11558]
18243         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18244         set RES_USEVC.
18245
18246         [BZ #11634]
18247         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18248
18249         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18250
18251         [BZ #11781]
18252         * malloc/malloc.h: Declare malloc hook variables as volatile.
18253
18254         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18255         in last patch.
18256
18257         [BZ #11799]
18258         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18259         raise in the comment.
18260         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18261         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18262         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18263
18264 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18265
18266         [BZ #12811]
18267         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18268         grow the buffers more if it already has to be sufficient.
18269         (build_wcs_upper_buffer): Likewise.
18270         * posix/regexec.c (check_matching): Likewise.
18271         (clean_state_log_if_needed): Likewise.
18272         (extend_buffers): Don't enlarge buffers beyond size of the input
18273         buffer.
18274         Patches mostly by Emil Wojak <emil@wojak.eu>.
18275         * posix/bug-regex32.c: New file.
18276         * posix/Makefile (tests): Add bug-regex32.
18277
18278         * locale/findlocale.c (_nl_find_locale): Return right away if
18279         _nl_explode_name failed.
18280         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18281
18282         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18283
18284         * debug/xtrace.sh: Unify messages.
18285         * malloc/memusage.sh: Likewise.
18286
18287         [BZ #12813]
18288         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18289         time symbol from vDSO.  Substitute with vsyscall if not available.
18290         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18291         __vdso_time.
18292
18293         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18294         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18295         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18296         Add sendmmsg and internal_sendmmsg.
18297         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18298         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18299         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18300
18301         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18302         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18303         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18304
18305 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18306
18307         [BZ #12813]
18308         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18309         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18310         available.
18311         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18312         __vdso_getcpu.
18313
18314         [BZ #12814]
18315         * iconvdata/Makefile (tests): Add bug-iconv9.
18316         * iconvdata/bug-iconv9.c: New file.
18317
18318 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18319
18320         [BZ #12814]
18321         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18322
18323 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18324
18325         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18326         (struct user_regs_struct): Change intcs field back to cs.
18327
18328 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18329
18330         * po/ja.po: Update from translation team.
18331
18332 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18333
18334         [BZ #12795]
18335         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18336         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18337
18338 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18339
18340         * stdlib/longlong.h: Update from GCC.
18341
18342 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18343
18344         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18345         parameter name.
18346         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18347         Add parameter name.
18348         (__sysconf): Pass it down.
18349
18350 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18351
18352         [BZ #12671]
18353         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18354         some situations.
18355         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18356         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18357         add in in __libc_use_alloca calls.  Adjust callers.
18358         (glob): Use malloc in some situations.
18359
18360         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18361         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18362         pltexit.
18363
18364 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18365
18366         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18367         and CLOCK_BOOTTIME_ALARM.
18368
18369         [BZ #12782]
18370         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18371         is returned.
18372
18373         * string/_strerror.c (__strerror_r): Print negative errors as signed
18374         numbers.
18375
18376         [BZ #12777]
18377         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18378         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18379         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18380
18381         * configure.in: Fix typo in redirection and correct removal of test
18382         files in two cases.
18383
18384         [BZ #12788]
18385         * locale/setlocale.c (new_composite_name): Fix test to check for
18386         identical name of all categories.
18387
18388         [BZ #12792]
18389         * libio/filedoalloc.c (local_isatty): New function.
18390         (_IO_file_doallocate): Use local_isatty.
18391         * stdio-common/perror.c (perror): In case a new stream is used
18392         forward the stream error.
18393         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18394         error flag.
18395
18396 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18397
18398         [BZ #11869]
18399         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18400         alloca.
18401         * include/alloca.h (extend_alloca_account): Define.
18402
18403         [BZ #11857]
18404         * posix/regex.h: Fix comments with documentation of user-accessible
18405         fields after compilation and describe correct free'ing of pattern
18406         after re_compile_pattern.
18407         Patch by Reuben Thomas <rrt@sc3d.org>.
18408
18409 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18410
18411         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18412         and -mno-altivec to prevent the compiler from using Altivec and/or
18413         VSX instructions when the corresponding registers are not available.
18414
18415 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18416
18417         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18418
18419 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18420
18421         * libio/freopen.c (freopen): Use __dup2, not dup2.
18422         * libio/freopen64.c (freopen64): Likewise.
18423
18424 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18425
18426         [BZ #12775]
18427         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18428         * math/Makefile (tests): Add test-powl.
18429         (CFLAGS-test-powl.c): Define.
18430         * math/test-powl.c: New file.
18431
18432 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18433
18434         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18435
18436 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18437
18438         [BZ #11837]
18439         * iconvdata/gb18030.c: Update to GB18020-2005.
18440
18441 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18442
18443         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18444         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18445         Patch by Aharon Robbins <arnold@skeeve.com>.
18446
18447         [BZ #11892]
18448         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18449         on the stack.
18450
18451         [BZ #11895]
18452         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18453         through underflows.
18454
18455         [BZ #12766]
18456         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18457         point to strings before performing equality test for error_one_per_line
18458         mode.
18459
18460         [BZ #11697]
18461         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18462
18463         [BZ #11820]
18464         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18465         (struct user_fpregs_struct): Avoid __uint*_t types.
18466
18467         [BZ #6420]
18468         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18469         symbol info.  Use it instead of calling _dl_addr locally.
18470         (lock_and_info): New function.
18471         (tr_freehook): Call lock_and_info and pass symbol info as additional
18472         parameter to tr_where.
18473         (tr_mallochook): Likewise.
18474         (tr_reallochook): Likewise.
18475         (tr_memalignhook): Likewise.
18476
18477         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18478         used and couldn't be at all thread-safe.
18479
18480 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18481
18482         * libio/freopen.c (freopen): Don't close old file descriptor
18483         before the new one is opened.  Instead dup the new file descriptor
18484         to the old one after the new stream is created.
18485         * libio/freopen64.c (freopen64): Likewise.
18486         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18487         * libio/fileops.c (_IO_new_file_close_it): Handle new
18488         _IO_FLAGS2_NOCLOSE flag.
18489         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18490         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18491         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18492         _IO_FLAGS2_NOCLOSE flag.
18493         * include/unistd.h: Add hidden_proto for dup3.
18494         Define __have_dup3.
18495         * io/dup3.c: Define hidden symbol.
18496         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18497
18498         [BZ #7101]
18499         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18500         when an incomplete long option is used.
18501         * posix/tst-getopt_long1.c: New file.
18502         * posix/Makefile (tests): Add tst-getopt_long1.
18503
18504         [BZ #10138]
18505         * scripts/config.guess: Update from autoconf-2.68.
18506         * scripts/config.sub: Likewise.
18507
18508         [BZ #10157]
18509         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18510         tests into ...
18511         (has_cpuclock): ...this.  New function.
18512         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18513         macro here based on has_cpuclock code.
18514
18515         [BZ #10149]
18516         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18517         First byte (not low byte) is now always NUL.
18518         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18519
18520         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18521         Use non-cancelable interfaces.
18522
18523         [BZ #9809]
18524         * locale/iso-639.def: Add entry for Sorani.
18525
18526         [BZ #11901]
18527         * include/stdlib.h: Move include protection to the right place.
18528         Define abort_msg_s.  Declare __abort_msg with it.
18529         * stdlib/abort.c (__abort_msg): Adjust type.
18530         * assert/assert.c (__assert_fail_base): New function.  Majority
18531         of code from __assert_fail.  Allocate memory for __abort_msg with
18532         mmap.
18533         (__assert_fail): Now call __assert_fail_base.
18534         * assert/assert-perr.c: Remove bulk of implementation.  Use
18535         __assert_fail_base.
18536         * include/assert.hL Declare __assert_fail_base.
18537         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18538         mmap.
18539         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18540
18541 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18542
18543         [BZ #11952]
18544         [BZ #12453]
18545         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18546         until all modules are registered in the DTV.
18547         * elf/Makefile: Add rules to build and run tst-tls19.
18548         * elf/tst-tls19.c: New file.
18549         * elf/tst-tls19mod1.c: New file.
18550         * elf/tst-tls19mod2.c: New file.
18551         * elf/tst-tls19mod3.c: New file.
18552         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18553
18554         [BZ #12083]
18555         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18556         correctly.
18557
18558         [BZ #12601]
18559         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18560         two-byte sequence errors.
18561         * iconvdata/Makefile (tests): Add bug-iconv8.
18562         * iconvdata/bug-iconv8.c: New file.
18563
18564         [BZ #12626]
18565         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18566         buf2 definition.
18567
18568         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18569
18570         [BZ #12432]
18571         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18572         (dummy_getcfa): New function.
18573         (init): Get _Unwind_GetCFA address, use dummy if not found.
18574         (backtrace_helper): In recursion check, also check whether CFA changes.
18575         (__backtrace): Completely initialize arg.
18576
18577         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18578         storing incomplete byte sequence in state object.  Avoid testing for
18579         guaranteed too small input if we know there is enough data available.
18580
18581 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18582
18583         * Makeconfig (+link-pie): Indent.
18584         * Rules (binaries-pie): Define if $(have-fpie) and
18585         $(build-shared).
18586         (binaries-shared): Also filter out $(binaries-pie).
18587         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18588         * nscd/Makefile (others-pie): Add nscd.
18589         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18590         ($(objpfx)nscd): Remove command override.
18591         * login/Makefile (others-pie): Add pt_chown.
18592         ($(objpfx)pt_chown): Remove command override.
18593         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18594         remove command overrides.
18595
18596 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18597
18598         * libio/tst_putwc.c: Fix error messages.
18599
18600         [BZ #12724]
18601         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18602         currently writing and seek to current position when not.
18603         * libio/Makefile (tests): Add bug-fclose1.
18604         * libio/bug-fclose1.c: New file.
18605
18606 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18607
18608         [BZ #12511]
18609         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18610         don't set DF_1_NODELETE here.
18611         (do_lookup_x): When entering new entry test for copy relocation
18612         and if necessary set DF_1_NODELETE flag.
18613         * elf/tst-unique4.cc: New file.
18614         * elf/tst-unique4.h: New file.
18615         * elf/tst-unique4lib.cc: New file.
18616         * elf/Makefile: Add rules to build and run tst-unique4.
18617         Patch by Piotr Bury <pbury@goahead.com>.
18618
18619 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18620
18621         [BZ #12052]
18622         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18623
18624         [BZ #12625]
18625         * misc/mntent_r.c (addmntent): Flush the stream after the output
18626
18627         [BZ #12393]
18628         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18629         (is_trusted_path_normalize): Skip initial colon.  Append slash
18630         to empty buffer.  Duplicate is_trusted_path code but allow
18631         constructed patch to be prefix.
18632         (is_dst): Allow $ORIGIN followed by /.
18633         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18634         Correct testing of result of is_trusted_path_normalize
18635         (decompose_rpath): Fix warning.
18636
18637 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18638
18639         [BZ #11257]
18640         * grp/initgroups.c (internal_getgrouplist): When we found the service
18641         list through the initgroups entry in nsswitch.conf do not always
18642         continue on a successful lookup.  Don't always use the
18643         __nss_group_database value if it is set.
18644         * nss/nsswitch.conf (initgroups): Change action for successful db
18645         lookup to continue for compatibility.
18646
18647 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18648
18649         [BZ #11532]
18650         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18651         and CP774 modules.
18652         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18653         and CP774 modules.
18654         * iconvdata/tst-tables.sh: Likewise.
18655         * iconvdata/cp770.c: New file.
18656         * iconvdata/cp771.c: New file.
18657         * iconvdata/cp772.c: New file.
18658         * iconvdata/cp773.c: New file.
18659         * iconvdata/cp774.c: New file.
18660         * iconvdata/testdata/CP770: New file.
18661         * iconvdata/testdata/CP770..UTF8: New file.
18662         * iconvdata/testdata/CP771: New file.
18663         * iconvdata/testdata/CP771..UTF8: New file.
18664         * iconvdata/testdata/CP772: New file.
18665         * iconvdata/testdata/CP772..UTF8: New file.
18666         * iconvdata/testdata/CP773: New file.
18667         * iconvdata/testdata/CP773..UTF8: New file.
18668         * iconvdata/testdata/CP774: New file.
18669         * iconvdata/testdata/CP774..UTF8: New file.
18670
18671         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18672         END CHARMAP line.
18673         * iconvdata/gen-8bit-gap.sh: Likewise.
18674         * iconvdata/gen-8bit.sh: Likewise.
18675
18676         * locale/iso-639.def: Add ary entry.
18677
18678         [BZ #11258]
18679         * locale/C-translit.h.in: Add U20A1 transliteration.
18680
18681         [BZ #12178]
18682         * locale/iso-639.def: Add wae entry.
18683         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18684
18685         [BZ #12545]
18686         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18687         for n.
18688
18689         [BZ #12711]
18690         * locale/C-translit.h.in: Add entry for U20B9.
18691         Patch by pravin.d.s@gmail.com.
18692
18693 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18694
18695         [BZ #12713]
18696         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18697         ENAMETOOLONG use generic getcwd.
18698         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18699         in rtld.  Use *stat64.
18700         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18701         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18702         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18703         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18704         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18705         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18706         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18707         __fstatat64 macros.
18708         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18709         * dirent/rewinddir.c: Add libc_hidden_def.
18710         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18711         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18712
18713         * include/dirent.h (__alloc_dir): Add flags parameter.
18714         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18715         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18716         __alloc_dir.
18717         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18718         from fdopendir if O_CLOEXEC is already set.
18719
18720 2011-03-15  Alan Modra  <amodra@gmail.com>
18721
18722         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18723         l_tls_firstbyte_offset non-zero.  Save padding offset in
18724         l_tls_firstbyte_offset for later use.
18725         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18726         freeing static tls block.
18727
18728 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18729
18730         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18731         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18732         being defined by the kernel headers.
18733
18734 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18735
18736         [BZ #12734]
18737         * resolv/resolv.h: Define RES_NOTLDQUERY.
18738         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18739         no-tld-query and set RES_NOTLDQUERY.
18740         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18741         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18742         modern BIND to search name as TLD unless forbidden.
18743
18744 2011-05-07  Petr Baudis  <pasky@suse.cz>
18745             Ulrich Drepper  <drepper@gmail.com>
18746
18747         [BZ #12393]
18748         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18749         (is_trusted_path): ...to here.
18750         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18751         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18752         using is_trusted_path_normalize() in setuid scripts.
18753
18754 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18755
18756         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18757         __BEGIN/__END_DECLS.
18758
18759 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18760
18761         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18762         NSS_STATUS_NOTFOUND if no record was found.
18763
18764 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18765
18766         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18767         (headers-not-in-tirpc): Remove rpc/netdb.h
18768         * resolv/netdb.h: Revert last change.
18769
18770 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18771
18772         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18773         circular dependency between libgcc.a and libc.a.
18774
18775 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18776
18777         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18778         * nis/Makefile: Don't install rpcsvc/*.
18779         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18780         instead of <rpc/types.h>.
18781         (MAXHOSTNAMELEN): Define.
18782
18783 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18784
18785         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18786
18787 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18788
18789         [BZ #12714]
18790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18791         gethostbyname4_r when IPv6 results are possible.
18792
18793 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18794
18795         [BZ #12723]
18796         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18797         _PC_PIPE_BUF handling.
18798
18799 2011-04-30  Bruno Haible  <bruno@clisp.org>
18800
18801         [BZ #12717]
18802         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18803         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18804         to 'int'.
18805         * inet/getnameinfo.c (getnameinfo): Likewise.
18806
18807 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18808
18809         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18810         to groups setting in database lookup.
18811         * nss/nsswitch.conf: Add initgroups entry.
18812
18813 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18814
18815         [BZ #12685]
18816         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18817         mode string.
18818         Patch by Eric Blake <eblake@redhat.com>.
18819
18820 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18821
18822         * sunrpc/Makefile (need-export-routines): Add svc_run.
18823         (routines): Remove svc_run.
18824         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18825         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18826         * sunrpc/svc_run.c (svc_run): Likewise.
18827         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18828
18829 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18830
18831         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18832         problem in reallocation in last patch.
18833
18834 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18835
18836         * sunrpc/Makefile: Move inclusion of Rules.
18837
18838 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18839
18840         * nss/nss_files/files-initgroups.c: New file.
18841         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18842         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18843         _nss_files_initgroups_dyn.
18844
18845 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18846
18847         * elf/elf.h (R_ARM_IRELATIVE): Define.
18848
18849 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18850
18851         * po/ru.po: Update from translation team.
18852
18853 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18854
18855         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18856         dependencies.
18857
18858 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18859
18860         [BZ #12653]
18861         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18862         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18863         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18864         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18865         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18866
18867 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18868
18869         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18870         differing bytes.
18871         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18872         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18873         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18874
18875 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18876
18877         [BZ #12420]
18878         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18879         storing it.
18880         * stdlib/bug-getcontext.c: New file.
18881         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18882
18883 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18884
18885         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18886         instructions into .machine "z9-109".
18887         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18888         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18889
18890 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18891
18892         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18893         between environment variables and auxiliary vector.
18894
18895 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18896
18897         * Makefile: Add rules to build linkobj/libc.so.
18898         * include/libc-symbols.h: Define libc_hidden_nolink.
18899         * include/rpc/auth.h: Mark functions which are to be hidden.
18900         * include/rpc/auth_des.h: Likewise.
18901         * include/rpc/auth_unix.h: Likewise.
18902         * include/rpc/clnt.h: Likewise.
18903         * include/rpc/des_crypt.h: Likewise.
18904         * include/rpc/key_prot.h: Likewise.
18905         * include/rpc/pmap_clnt.h: Likewise.
18906         * include/rpc/pmap_prot.h: Likewise.
18907         * include/rpc/pmap_rmt.h: Likewise.
18908         * include/rpc/rpc_msg.h: Likewise.
18909         * include/rpc/svc.h: Likewise.
18910         * include/rpc/svc_auth.h: Likewise.
18911         * include/rpc/xdr.h: Likewise.
18912         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18913         * nss/Makefile: Likewise.
18914         * sunrpc/Makefile: Don't install headers.  Build library with normal
18915         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18916         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18917         for the compat linking library.  Remove use of INTDEF/INTUSE.
18918         * sunrpc/auth_none.c: Likewise.
18919         * sunrpc/auth_unix.c: Likewise.
18920         * sunrpc/authdes_prot.c: Likewise.
18921         * sunrpc/authuxprot.c: Likewise.
18922         * sunrpc/clnt_gen.c: Likewise.
18923         * sunrpc/clnt_perr.c: Likewise.
18924         * sunrpc/clnt_raw.c: Likewise.
18925         * sunrpc/clnt_simp.c: Likewise.
18926         * sunrpc/clnt_tcp.c: Likewise.
18927         * sunrpc/clnt_udp.c: Likewise.
18928         * sunrpc/clnt_unix.c: Likewise.
18929         * sunrpc/des_crypt.c: Likewise.
18930         * sunrpc/des_soft.c: Likewise.
18931         * sunrpc/get_myaddr.c: Likewise.
18932         * sunrpc/key_call.c: Likewise.
18933         * sunrpc/key_prot.c: Likewise.
18934         * sunrpc/netname.c: Likewise.
18935         * sunrpc/pm_getmaps.c: Likewise.
18936         * sunrpc/pm_getport.c: Likewise.
18937         * sunrpc/pmap_clnt.c: Likewise.
18938         * sunrpc/pmap_prot.c: Likewise.
18939         * sunrpc/pmap_prot2.c: Likewise.
18940         * sunrpc/pmap_rmt.c: Likewise.
18941         * sunrpc/publickey.c: Likewise.
18942         * sunrpc/rpc_cmsg.c: Likewise.
18943         * sunrpc/rpc_common.c: Likewise.
18944         * sunrpc/rpc_dtable.c: Likewise.
18945         * sunrpc/rpc_prot.c: Likewise.
18946         * sunrpc/rpc_thread.c: Likewise.
18947         * sunrpc/rtime.c: Likewise.
18948         * sunrpc/svc.c: Likewise.
18949         * sunrpc/svc_auth.c: Likewise.
18950         * sunrpc/svc_authux.c: Likewise.
18951         * sunrpc/svc_raw.c: Likewise.
18952         * sunrpc/svc_run.c: Likewise.
18953         * sunrpc/svc_simple.c: Likewise.
18954         * sunrpc/svc_tcp.c: Likewise.
18955         * sunrpc/svc_udp.c: Likewise.
18956         * sunrpc/svc_unix.c: Likewise.
18957         * sunrpc/svcauth_des.c: Likewise.
18958         * sunrpc/xcrypt.c: Likewise.
18959         * sunrpc/xdr.c: Likewise.
18960         * sunrpc/xdr_array.c: Likewise.
18961         * sunrpc/xdr_float.c: Likewise.
18962         * sunrpc/xdr_intXX_t.c: Likewise.
18963         * sunrpc/xdr_mem.c: Likewise.
18964         * sunrpc/xdr_rec.c: Likewise.
18965         * sunrpc/xdr_ref.c: Likewise.
18966         * sunrpc/xdr_sizeof.c: Likewise.
18967         * sunrpc/xdr_stdio.c: Likewise.
18968
18969 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18970
18971         [BZ #12650]
18972         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18973         * sysdeps/ia64/dl-tls.h: Likewise.
18974         * sysdeps/powerpc/dl-tls.h: Likewise.
18975         * sysdeps/s390/dl-tls.h: Likewise.
18976         * sysdeps/sh/dl-tls.h: Likewise.
18977         * sysdeps/sparc/dl-tls.h: Likewise.
18978         * sysdeps/x86_64/dl-tls.h: Likewise.
18979         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18980
18981 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18982
18983         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18984         rpath element also skip the following colon.
18985         (expand_dynamic_string_token): Add is_path parameter and pass
18986         down to DL_DST_REQUIRED and _dl_dst_substitute.
18987         (decompose_rpath): Call expand_dynamic_string_token with
18988         non-zero is_path.  Ignore empty rpaths.
18989         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18990         with zero is_path.
18991
18992 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18993
18994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18995         Make cancelable.
18996
18997 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18998
18999         [BZ #12655]
19000         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19001         Patch by Filipe David Manana <fdmanana@apache.org>.
19002
19003 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19004
19005         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19006         Maintain aligned stack.
19007         (CHECK_RSP): Remove unused macro.
19008
19009 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19010
19011         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19012         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19013
19014 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19015
19016         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19017
19018         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19019
19020 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19021
19022         [BZ #12518]
19023         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19024         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19025         * sysdeps/x86_64/memmove.c: New file.
19026         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19027         (memcpy): Renamed to ...
19028         (__new_memcpy): This.
19029         (memcpy): Provide GLIBC_2_14 memcpy.
19030         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19031         (memcpy): Provide GLIBC_2_2_5 memcpy.
19032
19033 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19034
19035         [BZ #12631]
19036         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19037
19038 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19039
19040         * misc/syncfs.c: New file.
19041         * misc/Makefile (routines): Add syncfs.
19042         * posix/unistd.h: Declare syncfs.
19043         * sysdeps/unix/syscalls.list: Add syncfs.
19044
19045 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19046
19047         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19048         open_by_handle_at.
19049         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19050         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19051         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19052         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19053         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19054         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19055         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19056
19057 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19058
19059         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19060         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19061         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19062         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19063         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19066
19067         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19068         sync_file_range.c with -fexceptions.
19069         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19070         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19071         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19072         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19073         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19074         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19075         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19076         sync_file_range as cancellation point
19077         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19078         now a wrapper around __call_sync_file_range with cancellation handling.
19079         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19080         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19081         function name to __call_sync_file_range.
19082         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19083         Add call_sync_file_range.
19084
19085 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19086
19087         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19088         bits/timex.h.
19089
19090 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19091
19092         * iconv/iconv.h: Fix typo in comment.
19093         * io/fcntl.h: Likewise.
19094         * libio/stdio.h: Likewise.
19095         * posix/spawn.h: Likewise.
19096         * posix/unistd.h: Likewise.
19097         * stdlib/stdlib.h: Likewise.
19098         * time/time.h: Likewise.
19099         * wcsmbs/wchar.h: Likewise.
19100
19101         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19102         open_by_handle): Add.
19103         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19104         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19105         Augment a few comments.
19106         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19107         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19108         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19110         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19111         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19112         open_by_handle.
19113
19114         * io/fcntl.h (AT_EMPTY_PATH): Define.
19115
19116 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19117
19118         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19119         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19120         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19121         to...
19122         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19123         * Versions.def: Add GLIBC_2.14.
19124         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19125         Export.
19126
19127 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19128
19129         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19130         round counter.
19131         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19132
19133 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19134
19135         [BZ #12597]
19136         * string/test-strncmp.c (do_page_test): New function.
19137         (check2): Likewise.
19138         (test_main): Call check2.
19139         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19140
19141 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19142
19143         [BZ #12587]
19144         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19145         Handle cache information in CPU leaf 4.
19146         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19147
19148 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19149
19150         [BZ #12583]
19151         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19152         character representation.
19153         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19154
19155 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19156
19157         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19158         END(__isnan) to END(__isnanf) to match function entry point/label
19159         EALIGN(__isnanf,...).
19160
19161 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19162
19163         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19164
19165 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19166
19167         [BZ #12510]
19168         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19169         copy from the symbol referenced in the relocation to initialize the
19170         used variable.
19171         Patch by Piotr Bury <pbury@goahead.com>.
19172         * elf/Makefile: Add rules to build and tst-unique3.
19173         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19174         * elf/tst-unique3.cc: New file.
19175         * elf/tst-unique3.h: New file.
19176         * elf/tst-unique3lib.cc: New file.
19177         * elf/tst-unique3lib2.cc: New file.
19178
19179         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19180
19181 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19182
19183         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19184         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19185         to _start.
19186
19187 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19188
19189         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19190         to-be-loaded object along a path to loader is ld.so.
19191
19192 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19193             Ulrich Drepper  <drepper@gmail.com>
19194
19195         * sysdeps/x86_64/memset.S: After aligning destination, code
19196         branches to different locations depending on the value of
19197         misalignment, when multiarch is enabled. Fix this.
19198
19199 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19200
19201         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19202         Set _x86_64_preferred_memory_instruction for AMD processsors.
19203         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19204         Set bit_Prefer_SSE_for_memop for AMD processors.
19205
19206 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19207
19208         * libio/fmemopen.c (fmemopen): Optimize a bit.
19209
19210 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19211
19212         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19213
19214 2011-03-03  Roland McGrath  <roland@redhat.com>
19215
19216         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19217
19218 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19219
19220         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19221         __bzero_ultra1 instead of __memset_ultra1.
19222
19223 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19224             Ulrich Drepper  <drepper@gmail.com>
19225
19226         [BZ #12509]
19227         * include/link.h (struct link_map): Add l_orig_initfini.
19228         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19229         returning unsuccessfully.
19230         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19231         close of a file loaded at startup, restore the original l_initfini
19232         list.
19233         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19234         list, store the pointer.
19235         * elf/Makefile ($(objpfx)noload-mem): New rule.
19236         (noload-ENV): Define.
19237         (tests): Add $(objpfx)noload-mem.
19238         * elf/noload.c: Include <memcheck.h>.
19239         (main): Call mtrace.  Close all opened handles.
19240
19241 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19242
19243         [BZ #12454]
19244         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19245         dependencies are missing.
19246
19247 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19248
19249         Fix __if_freereq crash: Unlike the generic version which uses free,
19250         Hurd needs munmap.
19251         * sysdeps/mach/hurd/ifreq.h: New file.
19252
19253 2011-01-27  Petr Baudis  <pasky@suse.cz>
19254             Ulrich Drepper  <drepper@gmail.com>
19255
19256         [BZ 12445]#
19257         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19258         to extend_alloca().
19259         * stdio-common/bug23.c: New file.
19260         * stdio-common/Makefile (tests): Add bug23.
19261
19262 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19263             Ulrich Drepper  <drepper@gmail.com>
19264
19265         [BZ #12489]
19266         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19267         before performing relro protection.  At old place add assertion
19268         to make sure nothing changed.
19269
19270 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19271             Glauber de Oliveira Costa  <glommer@gmail.com>
19272
19273         * elf/elf.h: Add new ARM TLS relocs.
19274
19275 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19276
19277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19278         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19279         cast from r3.
19280         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19281         'tests' variable.
19282         * sysdeps/wordsize-64/tst-writev.c: New file.
19283
19284 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19285
19286         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19287         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19288         insns in _dl_start to prevent a TOC reference before relocs are
19289         resolved.
19290
19291 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19292
19293         [BZ #12469]
19294         * Makeconfig: Remove RANLIB definition.
19295         * Makerules: Don't use RANLIB.
19296         * aclocal.m4: Remove ranlib test.
19297         * configure.in: No need to check for ranlib.
19298         * elf/rtld-Rules: Don't use RANLIB.
19299
19300 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19301
19302         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19303         protection macro.
19304         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19305         inclusion protection macro.
19306
19307         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19308         SIGRTMIN and SIGRTMAX and print information in that case only when
19309         SIGRTMIN is defined.
19310
19311 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19312
19313         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19314         arginfo fn returning -1.
19315
19316         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19317         and thousands string is zero terminated.
19318
19319 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19320
19321         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19322         sysdeps/unix/sysv/linux/bits/socket.h.
19323
19324 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19325
19326         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19327         (__CPU_COUNT): Remove old macros.
19328         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19329         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19330         (__CPU_ALLOC, __CPU_FREE): Add macros.
19331         (__sched_cpualloc, __sched_cpufree): Add declarations.
19332
19333 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19334
19335         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19336         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19337         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19338         (readdhstai): Return value of addhstaiX call.
19339         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19340         (addgrbyX): Return value returned by cache_addgr.
19341         (readdgrbyname): Return value returned by addgrbyX.
19342         (readdgrbygid): Likewise.
19343         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19344         (addpwbyX): Return value returned by cache_addpw.
19345         (readdpwbyname): Return value returned by addhstbyX.
19346         (readdpwbyuid): Likewise.
19347         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19348         (addservbyX): Return value returned by cache_addserv.
19349         (readdservbyname): Return value returned by addservbyX:
19350         (readdservbyport): Likewise.
19351         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19352         (addhstbyX): Return value returned by cache_addhst.
19353         (readdhstbyname): Return value returned by addhstbyX.
19354         (readdhstbyaddr): Likewise.
19355         (readdhstbynamev6): Likewise.
19356         (readdhstbyaddrv6): Likewise.
19357         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19358         (readdinitgroups): Return value returned by addinitgroupsX.
19359         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19360         (prune_cache): Keep track of timeout value of re-added entries.
19361         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19362         * nscd/nscd.h: Adjust prototypes of readd* functions.
19363
19364 2011-02-04  Roland McGrath  <roland@redhat.com>
19365
19366         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19367         (nis_stats): Likewise.
19368         * nis/nis_modify.c (nis_modify): Likewise.
19369         * nis/nis_remove.c (nis_remove): Likewise.
19370         * nis/nis_add.c (nis_add): Likewise.
19371
19372         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19373
19374         * posix/fnmatch_loop.c: Add some consts.
19375
19376         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19377
19378 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19379
19380         [BZ #12460]
19381         * config.make.in (config-cflags-novzeroupper): Define.
19382         * configure.in: Substitute libc_cv_cc_novzeroupper.
19383         * elf/Makefile (AVX-CFLAGS): Define.
19384         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19385         (CFLAGS-tst-auditmod4a.c): Likewise.
19386         (CFLAGS-tst-auditmod4b.c): Likewise.
19387         (CFLAGS-tst-auditmod6b.c): Likewise.
19388         (CFLAGS-tst-auditmod6c.c): Likewise.
19389         (CFLAGS-tst-auditmod7b.c): Likewise.
19390         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19391
19392 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19393
19394         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19395         function to the callback.
19396         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19397
19398 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19399
19400         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19401         of errno.
19402
19403 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19404
19405         [BZ #11724]
19406         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19407         of constructors.
19408         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19409         of destructors.
19410         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19411
19412         [BZ #11724]
19413         * elf/Makefile: Add rules to build and run new test.
19414         * elf/tst-initorder.c: New file.
19415         * elf/tst-initorder.exp: New file.
19416         * elf/tst-initordera1.c: New file.
19417         * elf/tst-initordera2.c: New file.
19418         * elf/tst-initordera3.c: New file.
19419         * elf/tst-initordera4.c: New file.
19420         * elf/tst-initorderb1.c: New file.
19421         * elf/tst-initorderb2.c: New file.
19422         * elf/tst-order-a1.c: New file.
19423         * elf/tst-order-a2.c: New file.
19424         * elf/tst-order-a3.c: New file.
19425         * elf/tst-order-a4.c: New file.
19426         * elf/tst-order-b1.c: New file.
19427         * elf/tst-order-b2.c: New file.
19428         * elf/tst-order-main.c: New file.
19429         New test case by George Gensure <werkt0@gmail.com>.
19430
19431 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19432
19433         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19434         decoding ACE if AI_CANONIDN.
19435
19436 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19437
19438         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19439
19440 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19441
19442         * version.h (RELEASE): Bump for 2.13 release.
19443         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19444
19445         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19446
19447         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19448         MADV_NOHUGEPAGE.
19449         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19450         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19451         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19452         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19453         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19454         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19455
19456         * posix/getconf.c: Update copyright year.
19457         * catgets/gencat.c: Likewise.
19458         * csu/version.c: Likewise.
19459         * debug/catchsegv.sh: Likewise.
19460         * debug/xtrace.sh: Likewise.
19461         * elf/ldconfig.c: Likewise.
19462         * elf/ldd.bash.in: Likewise.
19463         * elf/sprof.c (print_version): Likewise.
19464         * iconv/iconv_prog.c: Likewise.
19465         * iconv/iconvconfig.c: Likewise.
19466         * locale/programs/locale.c: Likewise.
19467         * locale/programs/localedef.c: Likewise.
19468         * malloc/memusage.sh: Likewise.
19469         * malloc/mtrace.pl: Likewise.
19470         * nscd/nscd.c (print_version): Likewise.
19471         * nss/getent.c: Likewise.
19472
19473         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19474         PF_CAIF, and PF_ALG.
19475         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19476
19477 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19478
19479         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19480         (modules-names): Use them.
19481         (ifunc-test-modules, ifunc-pie-tests): Define.
19482         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19483         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19484         (test-extras): Likewise.
19485         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19486         $(compile-command.c).
19487         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19488         (all-built-dso): Define.
19489         (check-textrel.out, check-execstack.out): Depend on it.
19490
19491         * configure.in: Don't override --enable-multi-arch.
19492
19493 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19494
19495         [BZ #6812]
19496         * nscd/hstcache.c (tryagain): Define.
19497         (cache_addhst): Return tryagain not notfound for temporary errors.
19498         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19499         failed.
19500
19501 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19502
19503         [BZ #10563]
19504         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19505         to make the syscall.
19506         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19507
19508         [BZ #12378]
19509         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19510         and fall back to matching as normal character if the string ends before
19511         the matching ']' is found.  This is what POSIX requires.
19512         * posix/testfnm.c: Adjust test result.
19513         * posix/globtest.sh: Adjust test result.  Add new test.
19514         * posix/tst-fnmatch.input: Likewise.
19515         * posix/tst-fnmatch2.c: Add new test.
19516
19517 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19518
19519         * elf/Makefile (check-execstack): Revert last change.  Depend on
19520         check-execstack.h.
19521         (check-execstack.h): New target.
19522         (generated): Add check-execstack.h.
19523         * elf/check-execstack.c: Include "check-execstack.h".
19524         (main): Revert last change.
19525         (handle_file): Return zero if GNU_STACK is absent and
19526         DEFAULT_STACK_PERMS doesn't include PF_X.
19527
19528 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19529
19530         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19531         in child fails because the descriptor is already closed.
19532         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19533         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19534         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19535
19536         [BZ #12397]
19537         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19538         syscall.
19539
19540         [BZ #10484]
19541         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19542         temporary buffer used to handle multi lookups locally.
19543         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19544
19545 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19546
19547         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19548         loader is ld.so.
19549
19550 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19551
19552         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19553         alignment for SSE2.
19554
19555 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19556
19557         [BZ #12394]
19558         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19559         characters.  When rounding increased number of integer digits recompute
19560         number of groups.
19561         * stdio-common/tst-grouping.c: New file.
19562         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19563
19564 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19565
19566         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19567         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19568
19569         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19570         void.
19571         * bits/select.h: Likewise.
19572
19573 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19574
19575         * po/ja.po: Update from translation team.
19576
19577 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19578
19579         [BZ #11155]
19580         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19581         implementation just like for lxstat, fxstatat, et al.
19582
19583 2010-12-27  Jim Meyering  <meyering@redhat.com>
19584
19585         [BZ #12348]
19586         * posix/regexec.c (build_trtable): Return failure indication upon
19587         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19588
19589 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19590
19591         [BZ #12201]
19592         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19593         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19594         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19595         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19596
19597         [BZ #12207]
19598         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19599
19600         [BZ #12204]
19601         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19602         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19603
19604 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19605
19606         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19607         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19608         script has SORT_BY_INIT_PRIORITY.
19609         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19610         NO_CTORS_DTORS_SECTIONS is defined.
19611         * elf/soinit.c: Likewise.
19612         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19613         NO_CTORS_DTORS_SECTIONS is defined.
19614         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19615         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19616         * sysdeps/sh/init-first.c: Likewise.
19617         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19618
19619 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19620
19621         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19622         always use the slow path.
19623
19624 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19625
19626         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19627         similar rule which adds the sysdep directories to the header search in
19628         order to pick up the correct platform stackinfo.h.
19629         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19630         perform test if it is, otherwise return successfully without testing.
19631         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19632         DEFAULT_STACK_PERMS define in stackinfo.h.
19633         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19634         defined in stackinfo.h.
19635         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19636         DEFAULT_STACK_PERMS defined in stackinfo.h.
19637         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19638         * sysdeps/ia64/stackinfo.h: Likewise.
19639         * sysdeps/s390/stackinfo.h: Likewise.
19640         * sysdeps/sh/stackinfo.h: Likewise.
19641         * sysdeps/sparc/stackinfo.h: Likewise.
19642         * sysdeps/x86_64/stackinfo.h: Likewise.
19643         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19644         PF_X for powerpc64.  Retain PF_X for powerpc32.
19645
19646 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19647
19648         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19649         accurately.
19650         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19651         GETDENTS_64BIT_ALIGNED.
19652
19653 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19654
19655         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19656
19657 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19658
19659         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19660         _GNU_SOURCE.
19661
19662         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19663         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19664         Remove __restrict.
19665         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19666         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19667
19668 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19669
19670         [BZ #11655]
19671         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19672         are initialized.
19673
19674 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19675
19676         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19677
19678 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19679
19680         * po/it.po: Update from translation team.
19681
19682 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19683
19684         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19685         unused codes.
19686
19687 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19688
19689         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19690
19691 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19692
19693         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19694         specially.
19695         (gaih_getanswer_slice): Likewise.
19696
19697 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19698
19699         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19700
19701 2010-05-31  Petr Baudis  <pasky@suse.cz>
19702
19703         [BZ #11149]
19704         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19705         silently even in the chroot mode.
19706
19707 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19708
19709         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19710         last patch a bit.  Pretty printing
19711
19712 2010-05-31  Petr Baudis <pasky@suse.cz>
19713
19714         [BZ #10085]
19715         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19716         initialization of skip_initgroups_dyn.
19717
19718 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19719
19720         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19721         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19722
19723 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19724
19725         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19726
19727 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19728
19729         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19730         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19731         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19732         ($(objpfx)tst-fnmatch-mem): New rule.
19733         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19734         * posix/tst-fnmatch.c (main): Call mtrace.
19735
19736 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19737
19738         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19739         Support Intel processor model 6 and model 0x2c.
19740
19741 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19742
19743         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19744           signed comparison.
19745
19746 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19747
19748         [BZ #12205]
19749         * string/test-strncasecmp.c (check_result): New function.
19750         (do_one_test): Use it.
19751         (check1): New function.
19752         (test_main): Use it.
19753         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19754         Support strcasecmp and strncasecmp.
19755
19756 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19757
19758         [BZ #12194]
19759         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19760         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19761
19762 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19763
19764         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19765         IFUNC support.
19766         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19767         memset-x86-64.
19768         * sysdeps/x86_64/multiarch/bzero.S: New file.
19769         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19770         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19771         * sysdeps/x86_64/multiarch/memset.S: New file.
19772         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19773         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19774         Set bit_Prefer_SSE_for_memop for Intel processors.
19775         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19776         Define.
19777         (index_Prefer_SSE_for_memop): Define.
19778         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19779
19780 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19781
19782         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19783         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19784
19785 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19786
19787         [BZ #12191]
19788         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19789         (__x86_64_raw_data_cache_size_half): Likewise.
19790         (__x86_64_raw_shared_cache_size): Likewise.
19791         (__x86_64_raw_shared_cache_size_half): Likewise.
19792
19793         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19794         (__x86_64_raw_data_cache_size_half): Likewise.
19795         (__x86_64_raw_shared_cache_size): Likewise.
19796         (__x86_64_raw_shared_cache_size_half): Likewise.
19797         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19798         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19799         and __x86_64_raw_shared_cache_size_half.  Round
19800         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19801         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19802         to multiple of 256 bytes.
19803
19804 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19805
19806         [BZ #12167]
19807         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19808         of inacessible symlinks.  Verify result of symlink before returning it.
19809         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19810         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19811
19812 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19813
19814         * math/math.h (isinf): Fix typo in comment.
19815
19816 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19817
19818         * po/da.po: Update from translation team.
19819
19820 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19821
19822         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19823         is added to the list.
19824
19825 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19826             Ulrich Drepper  <drepper@gmail.com>
19827
19828         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19829         the global list here.  Move code to...
19830         (_dl_add_to_namespace_list): ...here.  New function.
19831         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19832         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19833         * elf/dl-load.c (lose): Don't remove the element from the list.
19834         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19835         (_dl_map_object): Likewise.
19836
19837 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19838
19839         [BZ #12159]
19840         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19841         into all bytes of SSE register.
19842         Patch by Richard Li <richardpku@gmail.com>.
19843
19844 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19845
19846         [BZ #12140]
19847         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19848         perturbing.
19849
19850 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19851
19852         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19853         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19854         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19855         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19857         submachine.
19858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19859
19860 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19861
19862         * include/dlfcn.h (__RTLD_SECURE): Define.
19863         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19864         mode & __RTLD_SECURE instead.
19865         (open_path): Rename preloaded parameter to secure.
19866         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19867         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19868         * elf/dl-deps.c (openaux): Likewise.
19869         * elf/rtld.c (struct map_args): Remove is_preloaded.
19870         (map_doit): Don't use it.
19871         (dl_main): Likewise.
19872         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19873         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19874
19875 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19876
19877         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19878         (sysd-rules-targets): Remove duplicates.
19879         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19880         rtld-%.$o dependency.
19881
19882 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19883
19884         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19885         _dl_map_object do it.
19886
19887 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19888
19889         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19890         fast fma builtins, define the macros in the C99 standard.
19891         (FP_FAST_FMAF): Likewise.
19892         (FP_FAST_FMAL): Likewise.
19893         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19894
19895         * bits/mathdef.h: Update copyright year.
19896         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19897
19898 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19899
19900         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19901         builtins, define the macros in the C99 standard.
19902         (FP_FAST_FMAF): Likewise.
19903         (FP_FAST_FMAL): Likewise.
19904         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19905         multiply/add.
19906         (FP_FAST_FMAF): Likewise.
19907
19908 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19909
19910         [BZ #3268]
19911         * math/libm-test.inc (fma_test): Some new testcases.
19912         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19913         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19914         y and infinite z.  Do multiplication by C already in long double.
19915         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19916         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19917         y and infinite z.  Do bitwise or of inexact bit into u.d.
19918         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19919         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19920         * sysdeps/i386/fpu/s_fma.S: Removed.
19921         * sysdeps/i386/fpu/s_fmal.S: Removed.
19922
19923 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19924
19925         [BZ #3268]
19926         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19927         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19928         computation is not scheduled after fetestexcept.  Fix value
19929         of minimum denormal long double.
19930
19931 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19932
19933         [BZ #3268]
19934         * math/libm-test.inc (fma_test): Add some more tests.
19935         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19936         correctly.
19937
19938 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19939
19940         * scripts/data/localplt-s390-linux-gnu.data: New file.
19941         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19942
19943 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19944
19945         [BZ #3268]
19946         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19947         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19948         instead of dbl-64.
19949         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19950         inlines.
19951         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19952         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19953         if one of x and y is very large and the other is subnormal.
19954         * sysdeps/s390/fpu/s_fmaf.c: New file.
19955         * sysdeps/s390/fpu/s_fma.c: New file.
19956         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19957         * sysdeps/powerpc/fpu/s_fma.S: New file.
19958         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19959         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19960         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19961
19962 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19963
19964         [BZ #3268]
19965         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19966         fma tests.
19967         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19968         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19969         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19970         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19971         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19972         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19973         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19974
19975 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19976
19977         [BZ #12078]
19978         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19979         * posix/bug-regex31.input: Add test case.
19980
19981 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19982
19983         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19984         * posix/bug-regex31.input: New file.
19985
19986         [BZ #12078]
19987         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19988         (parse_sub_exp): Fix last change, use postorder.
19989
19990         * posix/bug-regex31.c: New file.
19991         * posix/Makefile: Add rules to build and run bug-regex31.
19992
19993         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19994
19995         [BZ #12078]
19996         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19997
19998         [BZ #12108]
19999         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20000         to have entries in sys_siglist.
20001
20002         [BZ #12093]
20003         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20004         be NULL.
20005
20006 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20007
20008         [BZ #3268]
20009         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20010         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20011         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20012         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20013         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20014         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20015         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20016         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20017         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20018         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20019         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20020         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20021         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20022         * math/ftestexcept.c (fetestexcept): Likewise.
20023         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20024         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20025         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20026         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20027         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20028         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20029         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20030
20031 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20032
20033         [BZ #12107]
20034         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20035         newline.
20036
20037 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20038
20039         * string/bug-strstr1.c: New file.
20040         * string/Makefile: Add rules to build and run bug-strstr1.
20041
20042 2010-10-05  Eric Blake  <eblake@redhat.com>
20043
20044         [BZ #12092]
20045         * string/str-two-way.h (two_way_long_needle): Always clear memory
20046         when skipping input due to the shift table.
20047
20048 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20049
20050         [BZ #12005]
20051         * malloc/mcheck.c: Handle large requests.
20052
20053         [BZ #12077]
20054         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20055         for strncmp and strncasecmp.
20056         * string/stratcliff.c: Add tests for strcmp and strncmp.
20057         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20058
20059 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20060
20061         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20062         __set_fpscr.
20063
20064 2010-09-30  Andreas Jaeger  <aj@suse.de>
20065
20066         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20067         (CGROUP_SUPER_MAGIC): Define.
20068         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20069         Handle btrfs and cgroup file systems.
20070         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20071         Likewise.
20072
20073 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20074
20075         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20076         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20077
20078 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20079
20080         [BZ #12067]
20081         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20082         trying to locate the ELF header.
20083
20084 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20085
20086         [BZ #11611]
20087         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20088         Mask out sign-bit copies when constructing f_fsid.
20089
20090 2010-09-24  Petr Baudis <pasky@suse.cz>
20091
20092         * debug/stack_chk_fail_local.c: Add missing licence exception.
20093         * debug/warning-nop.c: Likewise.
20094
20095 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20096
20097         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20098         implementing getdents64 using getdents syscall, set d_type if
20099         __ASSUME_GETDENTS32_D_TYPE.
20100
20101 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20102
20103         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20104         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20105
20106 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20107
20108         [BZ #12037]
20109         * posix/unistd.h: Undo change of feature selection for ftruncate from
20110         2010-01-11.
20111
20112 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20113
20114         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20115         detection.
20116
20117 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20118
20119         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20120         fanotify_mark.
20121         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20122
20123 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20124
20125         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20126         variables after CHECK_SP call.
20127         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20128
20129 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20130             Ulrich Drepper  <drepper@redhat.com>
20131
20132         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20133         re-relocationg ld.so.
20134         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20135         _dl_init_paths call.
20136         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20137         here anymore.
20138
20139 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20140
20141         * resolv/res_init.c (__res_vinit): Count the default server we added.
20142
20143 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20144             Ulrich Drepper  <drepper@redhat.com>
20145
20146         [BZ #11968]
20147         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20148         (____longjmp_chk): Use %ebx for saving value across system call.
20149         Add unwind info.
20150
20151 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20152
20153         * manual/Makefile: Don't mix pattern rules with normal rules.
20154
20155 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20156
20157         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20158         operation.
20159         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20160         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20161         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20162         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20163         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20164         Likewise.
20165
20166 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20167
20168         [BZ #11979]
20169         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20170         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20171
20172 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20173
20174         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20175         * sysdeps/x86_64/addmul_1.S: Likewise.
20176         * sysdeps/x86_64/lshift.S: Likewise.
20177         * sysdeps/x86_64/mul_1.S: Likewise.
20178         * sysdeps/x86_64/rshift.S: Likewise.
20179         * sysdeps/x86_64/sub_n.S: Likewise.
20180         * sysdeps/x86_64/submul_1.S: Likewise.
20181
20182 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20183
20184         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20185         Define __sched_param instead of SCHED_* and sched_param when
20186         <bits/sched.h> is included with __need_schedparam defined.
20187         * bits/sched.h [__need_schedparam]
20188         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20189         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20190         (__defined_schedparam): Define to 1.
20191         (__sched_param): New structure, identical to sched_param.
20192         (__need_schedparam): Undefine.
20193
20194 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20195
20196         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20197         (epoll_create1): Declare.
20198
20199         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20200
20201 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20202
20203         [BZ #7066]
20204         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20205         shifting retval into place.
20206
20207 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20208
20209         * nis/rpcsvc/nis.h: Update copyright notice.
20210         * nis/rpcsvc/nis.x: Likewise.
20211         * nis/rpcsvc/nis_callback.h: Likewise.
20212         * nis/rpcsvc/nis_callback.x: Likewise.
20213         * nis/rpcsvc/nis_object.x: Likewise.
20214         * nis/rpcsvc/nis_tags.h: Likewise.
20215         * nis/rpcsvc/yp.h: Likewise.
20216         * nis/rpcsvc/yp.x: Likewise.
20217         * nis/rpcsvc/ypupd.h: Likewise.
20218         * nis/yp_xdr.c: Likewise.
20219         * nis/ypupdate_xdr.c: Likewise.
20220
20221         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20222         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20223         (pmap_getport): Use __libc_rpc_getport.
20224         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20225         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20226         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20227
20228 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20229
20230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20231         fanotify_mark.
20232
20233 2010-08-27  Roland McGrath  <roland@redhat.com>
20234
20235         * sysdeps/i386/i686/multiarch/Makefile
20236         (CFLAGS-varshift.c): New variable.
20237
20238 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20239
20240         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20241         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20242
20243         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20244
20245         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20246
20247 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20248
20249         * sysdeps/x86_64/strlen.S: Unroll the loop.
20250         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20251         strlen-sse2 strlen-sse2-bsf.
20252         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20253         __strlen_no_bsf if bit_Slow_BSF is set.
20254         (__strlen_sse42): Removed.
20255         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20256         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20257
20258 2010-08-25  Roland McGrath  <roland@redhat.com>
20259
20260         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20261         * sysdeps/x86_64/multiarch/varshift.c: New file.
20262         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20263         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20264         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20265         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20266
20267 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20268
20269         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20270         strlen-sse2 strlen-sse2-bsf.
20271         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20272         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20273         (__strlen_sse2): Removed.
20274         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20275         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20276         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20277         bit_Slow_BSF for Atom.
20278         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20279         (index_Slow_BSF): Define.
20280         (HAS_SLOW_BSF): Define.
20281
20282 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20283
20284         [BZ #10851]
20285         * resolv/res_init.c (__res_vinit): When no server address at all
20286         is given default to loopback.
20287
20288 2010-08-24  Roland McGrath  <roland@redhat.com>
20289
20290         * configure.in: Remove config-name.h generation.
20291         * configure: Regenerated.
20292         * config-name.in: File removed.
20293         * scripts/config-uname.sh: New file.
20294         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20295         ($(objdir)config-name.h): New target.
20296
20297         * sunrpc/rpc_parse.h: Avoid nested comment.
20298
20299 2010-08-24  Richard Henderson  <rth@redhat.com>
20300             Ulrich Drepper  <drepper@redhat.com>
20301             H.J. Lu  <hongjiu.lu@intel.com>
20302
20303         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20304         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20305         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20306         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20307         _mm_alignr_epi8 with _mm_loadu_si128.
20308         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20309         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20310         (__m128i_shift_right): Removed.
20311         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20312         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20313         * sysdeps/x86_64/multiarch/varshift.h: New file.
20314         * sysdeps/x86_64/multiarch/varshift.S: New file.
20315
20316 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20317
20318         * configure.in: Move assembler checks to before sysdep dir checking.
20319
20320 2010-08-20  Petr Baudis  <pasky@suse.cz>
20321
20322         * LICENSES: Sync the sunrpc license.
20323
20324 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20325
20326         * sunrpc/auth_des.c: Update copyright notice once again.
20327         * sunrpc/auth_none.c: Likewise.
20328         * sunrpc/auth_unix.c: Likewise.
20329         * sunrpc/authdes_prot.c: Likewise.
20330         * sunrpc/authuxprot.c: Likewise.
20331         * sunrpc/bindrsvprt.c: Likewise.
20332         * sunrpc/clnt_gen.c: Likewise.
20333         * sunrpc/clnt_perr.c: Likewise.
20334         * sunrpc/clnt_raw.c: Likewise.
20335         * sunrpc/clnt_simp.c: Likewise.
20336         * sunrpc/clnt_tcp.c: Likewise.
20337         * sunrpc/clnt_udp.c: Likewise.
20338         * sunrpc/clnt_unix.c: Likewise.
20339         * sunrpc/des_crypt.c: Likewise.
20340         * sunrpc/des_soft.c: Likewise.
20341         * sunrpc/get_myaddr.c: Likewise.
20342         * sunrpc/getrpcport.c: Likewise.
20343         * sunrpc/key_call.c: Likewise.
20344         * sunrpc/key_prot.c: Likewise.
20345         * sunrpc/openchild.c: Likewise.
20346         * sunrpc/pm_getmaps.c: Likewise.
20347         * sunrpc/pm_getport.c: Likewise.
20348         * sunrpc/pmap_clnt.c: Likewise.
20349         * sunrpc/pmap_prot.c: Likewise.
20350         * sunrpc/pmap_prot2.c: Likewise.
20351         * sunrpc/pmap_rmt.c: Likewise.
20352         * sunrpc/rpc/auth.h: Likewise.
20353         * sunrpc/rpc/auth_unix.h: Likewise.
20354         * sunrpc/rpc/clnt.h: Likewise.
20355         * sunrpc/rpc/des_crypt.h: Likewise.
20356         * sunrpc/rpc/key_prot.h: Likewise.
20357         * sunrpc/rpc/netdb.h: Likewise.
20358         * sunrpc/rpc/pmap_clnt.h: Likewise.
20359         * sunrpc/rpc/pmap_prot.h: Likewise.
20360         * sunrpc/rpc/pmap_rmt.h: Likewise.
20361         * sunrpc/rpc/rpc.h: Likewise.
20362         * sunrpc/rpc/rpc_des.h: Likewise.
20363         * sunrpc/rpc/rpc_msg.h: Likewise.
20364         * sunrpc/rpc/svc.h: Likewise.
20365         * sunrpc/rpc/svc_auth.h: Likewise.
20366         * sunrpc/rpc/types.h: Likewise.
20367         * sunrpc/rpc/xdr.h: Likewise.
20368         * sunrpc/rpc_clntout.c: Likewise.
20369         * sunrpc/rpc_cmsg.c: Likewise.
20370         * sunrpc/rpc_common.c: Likewise.
20371         * sunrpc/rpc_cout.c: Likewise.
20372         * sunrpc/rpc_dtable.c: Likewise.
20373         * sunrpc/rpc_hout.c: Likewise.
20374         * sunrpc/rpc_main.c: Likewise.
20375         * sunrpc/rpc_parse.c: Likewise.
20376         * sunrpc/rpc_parse.h: Likewise.
20377         * sunrpc/rpc_prot.c: Likewise.
20378         * sunrpc/rpc_sample.c: Likewise.
20379         * sunrpc/rpc_scan.c: Likewise.
20380         * sunrpc/rpc_scan.h: Likewise.
20381         * sunrpc/rpc_svcout.c: Likewise.
20382         * sunrpc/rpc_tblout.c: Likewise.
20383         * sunrpc/rpc_util.c: Likewise.
20384         * sunrpc/rpc_util.h: Likewise.
20385         * sunrpc/rpcinfo.c: Likewise.
20386         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20387         * sunrpc/rpcsvc/key_prot.x: Likewise.
20388         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20389         * sunrpc/rpcsvc/mount.x: Likewise.
20390         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20391         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20392         * sunrpc/rpcsvc/rex.x: Likewise.
20393         * sunrpc/rpcsvc/rstat.x: Likewise.
20394         * sunrpc/rpcsvc/rusers.x: Likewise.
20395         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20396         * sunrpc/rpcsvc/spray.x: Likewise.
20397         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20398         * sunrpc/rtime.c: Likewise.
20399         * sunrpc/svc.c: Likewise.
20400         * sunrpc/svc_auth.c: Likewise.
20401         * sunrpc/svc_authux.c: Likewise.
20402         * sunrpc/svc_raw.c: Likewise.
20403         * sunrpc/svc_run.c: Likewise.
20404         * sunrpc/svc_simple.c: Likewise.
20405         * sunrpc/svc_tcp.c: Likewise.
20406         * sunrpc/svc_udp.c: Likewise.
20407         * sunrpc/svc_unix.c: Likewise.
20408         * sunrpc/svcauth_des.c: Likewise.
20409         * sunrpc/xcrypt.c: Likewise.
20410         * sunrpc/xdr.c: Likewise.
20411         * sunrpc/xdr_array.c: Likewise.
20412         * sunrpc/xdr_float.c: Likewise.
20413         * sunrpc/xdr_mem.c: Likewise.
20414         * sunrpc/xdr_rec.c: Likewise.
20415         * sunrpc/xdr_ref.c: Likewise.
20416         * sunrpc/xdr_sizeof.c: Likewise.
20417         * sunrpc/xdr_stdio.c: Likewise.
20418
20419         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20420         handling.
20421
20422 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20423
20424         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20425
20426 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20427
20428         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20429         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20430         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20431         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20432         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20433         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20434         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20435         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20436         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20437         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20438         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20439         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20440         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20441         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20442
20443 2010-07-26  Anton Blanchard  <anton@samba.org>
20444
20445         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20446         * malloc/arena.c (heap_trim): Likewise.
20447
20448 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20449
20450         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20451         here.  Not...
20452         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20453         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20454
20455 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20456
20457         * sysdeps/i386/elf/Makefile: New file.
20458
20459 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20460
20461         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20462         from fanotify_init.
20463         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20464         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20465
20466 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20467
20468         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20469         of strncasecmp_l.
20470         * sysdeps/multiarch/strcmp.S: Likewise.
20471
20472 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20473
20474         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20475         strncase_l-nonascii.
20476         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20477         Add strncase_l-ssse3.
20478         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20479         * sysdeps/x86_64/strcmp.S: Likewise.
20480         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20481         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20482         * sysdeps/x86_64/strncase.S: New file.
20483         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20484         * sysdeps/x86_64/strncase_l.S: New file.
20485         * string/Makefile (strop-tests): Add strncasecmp.
20486         * string/test-strncasecmp.c: New file.
20487
20488         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20489         warning.
20490
20491         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20492         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20493
20494 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20495
20496         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20497
20498 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20499
20500         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20501         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20502         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20503
20504 2010-05-01  Alan Modra  <amodra@gmail.com>
20505
20506         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20507         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20508         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20509         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20510         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20511         tidying.  Don't tail-call __sigjmp_save for static lib.
20512         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20513         save location.
20514         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20515         (CALL_MCOUNT): Add eh info, and nop after bl.
20516         (TAIL_CALL_SYSCALL_ERROR): New macro.
20517         (PSEUDO_RET): Use it.
20518         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20519         Correct save location of integer regs and cr.
20520         (_dl_profile_resolve): Correct cr save location.  Delete nops
20521         after bl when SHARED.  Reduce cfi size a little by better
20522         placement of cfi directives.
20523         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20524         make a stack frame.  Instead use parm save area as a temp.
20525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20526         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20528         Don't make a stack frame for parent, use parm save area.
20529         Increase child stack frame to 112 bytes.  Don't save unused reg,
20530         and adjust reg usage.  Set up cfi on error recovery and
20531         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20533         (__makecontext): Add dummy nop after jump to exit.
20534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20535         Use correct parm save area and cr save, reduce stack frame.
20536         Correct cfi for possible PSEUDO_RET frame setup.
20537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20538         Branch to local label emitted by PSEUDO_RET rather than
20539         __syscall_error.
20540
20541 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20542
20543         [BZ #11904]
20544         * locale/programs/locale.c (print_assignment): New function.
20545         (show_locale_vars): Use it.
20546
20547 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20548
20549         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20550         field.
20551         (struct statfs64): Likewise.
20552         (_STATFS_F_FLAGS): Define.
20553         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20554         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20555         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20556         (ST_VALID): Define locally.
20557         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20558         __statvfs_getflags, use the provided value.
20559         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20560         __ASSUME_STATFS_F_FLAGS.
20561
20562         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20563
20564         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20565         Add sys/fanotify.h.
20566         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20567         fanotify_mask for GLIBC_2.13.
20568         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20569         fanotify_init and fanotify_mark.
20570         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20571         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20572
20573         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20574         Add prlimit.
20575         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20576         prlimit64 for GLIBC_2.13.
20577         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20578         prlimit64.
20579         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20580         syscall.
20581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20582         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20583         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20584         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20585         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20586         add prlimit alias.
20587         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20588
20589         [BZ #11903]
20590         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20591         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20592
20593         * nss/Makefile: Add rules to build and run tst-nss-test1.
20594         * shlib-versions: Add entry for libnss_test1.
20595         * nss/nss_test1.c: New file.
20596         * nss/tst-nss-test1.c: New file.
20597
20598         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20599         (__nss_configure_lookup): Set appropriate entry in
20600         __nss_configure_lookup to true.
20601         * nss/nsswitch.h: Define enum with indeces of databases in
20602         databases and __nss_database_custom arrays.  Declare
20603         __nss_database_custom.
20604         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20605         to avoid using nscd when custom rules are installed.
20606         * nss/getXXbyYY_r.c: Likewise.
20607         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20608
20609         * nss/nss_files/files-parse.c: Whitespace fixes.
20610
20611 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20612
20613         [BZ #11883]
20614         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20615         * posix/fnmatch_loop.c: Likewise.
20616
20617 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20618
20619         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20620         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20621         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20622         * Versions.def [GLIBC_2.13]: Add.
20623
20624 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20625
20626         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20627         Also fail if tpwd after pwuid call is NULL.
20628
20629 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20630
20631         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20632         when converting to ms.
20633
20634 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20635
20636         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20637         EOPNOTSUPP errors with ENOTTY.
20638         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20639         EOPNOTSUPP errors with ENOTTY.
20640
20641 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20642
20643         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20644         Add strcasecmp_l-ssse3.
20645         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20646         strcasecmp.
20647         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20648         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20649         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20650
20651 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20652
20653         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20654
20655         * string/Makefile (strop-tests): Add strcasecmp.
20656         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20657         strcasecmp_l-nonascii.
20658         (gen-as-const-headers): Add locale-defines.sym.
20659         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20660         * sysdeps/x86_64/strcasecmp.S: New file.
20661         * sysdeps/x86_64/strcasecmp_l.S: New file.
20662         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20663         * sysdeps/x86_64/locale-defines.sym: New file.
20664         * string/test-strcasecmp.c: New file.
20665
20666         * string/test-strcasestr.c: Test both ends of the range of characters.
20667         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20668
20669 2010-07-29  Roland McGrath  <roland@redhat.com>
20670
20671         [BZ #11856]
20672         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20673
20674 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20675
20676         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20677         for ld.so.
20678
20679 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20680
20681         * manual/memory.texi (Malloc Tunable Parameters): Document
20682         M_PERTURB.
20683
20684 2010-07-26  Roland McGrath  <roland@redhat.com>
20685
20686         [BZ #11840]
20687         * configure.in (-fgnu89-inline check): Set and substitute
20688         gnu89_inline, not libc_cv_gnu89_inline.
20689         * configure: Regenerated.
20690         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20691
20692 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20693
20694         * string/test-strnlen.c: New file.
20695         * string/Makefile (strop-tests): Add strnlen.
20696         * string/tester.c (test_strnlen): Add a few more test cases.
20697         * string/tst-strlen.c: Better error reporting.
20698
20699         * sysdeps/x86_64/strnlen.S: New file.
20700
20701 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20702
20703         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20704         lower-latency instructions.
20705
20706 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20707
20708         * string/test-strcasestr.c: New file.
20709         * string/test-strstr.c: New file.
20710         * string/Makefile (strop-tests): Add strstr and strcasestr.
20711         * string/str-two-way.h: Don't undefine MAX.
20712         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20713
20714 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20715
20716         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20717         strcasestr-nonascii.
20718         (CFLAGS-strcasestr-nonascii.c): Define.
20719         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20720         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20721         Remove unused attribute.
20722
20723 2010-07-20  Roland McGrath  <roland@redhat.com>
20724
20725         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20726         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20727         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20728         like LD_HWCAP_MASK can disable hwcaps.
20729
20730 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20731
20732         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20733
20734 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20735
20736         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20737         call in strcasestr.
20738         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20739         __strcasestr_sse42_nonascii.
20740         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20741         strcasestr-nonascii.c.
20742         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20743
20744 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20745
20746         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20747         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20748         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20749         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20750
20751 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20752
20753         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20754         fcntl.
20755
20756 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20757
20758         [BZ #11577]
20759         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20760         dl_signal_cerror.
20761
20762 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20763
20764         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20765         _PC_PIPE_BUF using F_GETPIPE_SZ.
20766
20767 2010-07-05  Roland McGrath  <roland@redhat.com>
20768
20769         * manual/arith.texi (Rounding Functions): Fix rint description
20770         implicit in round description.
20771
20772 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20773
20774         * elf/Makefile: Fix linking for a few tests to make recent linker
20775         happy.
20776
20777 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20778
20779         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20780         $(common-objpfx)libc_nonshared.a.
20781
20782 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20783
20784         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20785         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20786         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20787         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20788         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20789         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20790         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20791         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20806         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20807         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20808         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20809         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20810         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20811         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20812         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20813         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20814         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20815         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20816         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20817         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20832
20833 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20834
20835         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20836         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20837         * string/memmove.c (memmove): Renamed to ...
20838         (MEMMOVE): ...this.  Default to memmove.
20839         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20840         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20841         (END_CHK): Define.
20842         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20843         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20844         mempcpy-ssse3-back memmove-ssse3-back.
20845         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20846         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20847         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20848         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20849         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20850         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20851         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20852         * sysdeps/x86_64/multiarch/memmove.c: New file.
20853         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20854         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20855         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20856         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20857         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20858         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20859         Define.
20860         (index_Fast_Copy_Backward): Define.
20861         (HAS_ARCH_FEATURE): Define.
20862         (HAS_FAST_REP_STRING): Define.
20863         (HAS_FAST_COPY_BACKWARD): Define.
20864
20865 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20866
20867         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20868         Restore proper fallback handling.
20869
20870 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20871
20872         [BZ #11701]
20873         * posix/group_member.c (__group_member): Correct checking loop.
20874
20875         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20876         OOM in getpwuid_r correctly.  Return error number when the caller
20877         should return, otherwise -1.
20878         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20879         call returning > 0 value.
20880         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20881
20882 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20883
20884         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20885         libc_nonshared.a from targets in modules-names.
20886
20887 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20888
20889         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20890         requires it.
20891
20892 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20893
20894         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20895         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20896         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20897         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20898
20899 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20900
20901         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20902
20903 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20904
20905         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20906         and F_GETPIPE_SZ.
20907         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20908         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20910         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20911         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20912         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20913
20914 2010-06-14  Roland McGrath  <roland@redhat.com>
20915
20916         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20917
20918 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20919
20920         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20921         __REDIRECT followed by __THROW.
20922         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20923         * posix/getopt.h (getopt): Likewise.
20924
20925 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20926
20927         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20928         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20929         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20930         in AT_FLAGS.
20931         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20932         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20933
20934 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20935
20936         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20937
20938 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20939
20940         [BZ #11640]
20941         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20942         Properly check family and model.
20943
20944 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20945
20946         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20947
20948 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20949
20950         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20951
20952 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20953
20954         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20955         symbol reference.
20956
20957 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20958
20959         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20960         symbol reference.
20961
20962 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20963
20964         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20965         and internal_recvmmsg.
20966         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20967         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20968         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20969         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20970
20971         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20972         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20973         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20974
20975 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20976
20977         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20978
20979 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20980
20981         POWER7 optimizations.
20982         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20983         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20984
20985 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20986
20987         * version.h: Update for 2.13 development version.
20988
20989 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20990
20991         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20992         exceptions.  Return 0.
20993
20994 2010-05-07  Roland McGrath  <roland@redhat.com>
20995
20996         * elf/ldconfig.c (main): Add a const.
20997
20998 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20999
21000         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21001         (args_options): Add no-idn option.
21002         (ahosts_keys_int): Add idn_flags to ai_flags.
21003         (parse_option): Handle 'i' option to clear idn_flags.
21004
21005         * malloc/malloc.c (_int_free): Possible race in the most recently
21006         added check.  Only act on the data if no current modification
21007         happened.
21008
21009 See ChangeLog.17 for earlier changes.