Remove PowerPC sysdep files for GNU Hurd and GNU Mach.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2
3         * sysdeps/mach/hurd/powerpc: Remove directory.
4         * sysdeps/mach/powerpc: Likewise.
5
6 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7
8         * scripts/check-local-headers.sh: Ignore c++ headers.
9
10 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11
12         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13         __libc_cleanup_region_start argument.
14
15 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
16
17         [BZ #14784]
18         [BZ #14785]
19         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
20         x * y using scaling, not as x * y + z.
21         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
22         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23         * math/libm-test.inc (fma_test): Add more tests.
24         (fma_test_towardzero): Likewise.
25         (fma_test_downward): Likewise.
26         (fma_test_upward): Likewise.
27
28 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
29
30         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
31
32 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
33
34         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
35         New variable.
36
37 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
38
39         * rt/tst-shm.c (worker): Correct checking for mmap failure.
40
41 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
42
43         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
44         Fix sort order.
45         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
46         Likewise.
47
48 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49
50         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51         Fix the order of the list for glibc 2.17.
52         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
53         Likewise.
54
55 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56
57         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58
59 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
60
61         [BZ #14610]
62         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
63         for low part of x being zero before using __atanl (y).
64         * math/libm-test.inc (atan2_test): Add another test.
65
66         * manual/install.texi (Configuring and compiling): Document
67         general use of test-wrapper and test-wrapper-env.
68         * INSTALL: Regenerated.
69
70         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
71         (__fma): Do not extract and scale down low bits on after-rounding
72         systems when result rounded to normal precision would have normal
73         exponent.
74         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
75         (__fmal): Do not extract and scale down low bits on after-rounding
76         systems when result rounded to normal precision would have normal
77         exponent.
78         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
79         (__fmal): Do not extract and scale down low bits on after-rounding
80         systems when result rounded to normal precision would have normal
81         exponent.
82         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
83         macro.
84         (fma_test): Add more tests.
85         (fma_test_towardzero): Likewise.
86         (fma_test_downward): Likewise.
87         (fma_test_upward): Likewise.
88
89 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
90
91         * sysdeps/i386/tininess.h: Renamed to ...
92         * sysdeps/x86/tininess.h: This.
93         * sysdeps/x86_64/tininess.h: Removed.
94
95 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
96
97         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
98         input.  Use $(build-program-cmd).
99         ($(objpfx)tst-array1-static.out): Likewise.
100         ($(objpfx)tst-array2.out): Likewise.
101         ($(objpfx)tst-array3.out): Likewise.
102         ($(objpfx)tst-array4.out): Likewise.
103         ($(objpfx)tst-array5.out): Likewise.
104         ($(objpfx)tst-array5-static.out): Likewise.
105
106 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
107
108         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
109         if defined.
110
111         * nss/nsswitch.h (nss_interface_function): Provide new
112         macro for use with NSS functions.
113         * grp/initgroups.c: Use new macro.
114         * nss/getXXbyYY.c: Likewise.
115         * nss/getXXbyYY_r.c: Likewise.
116         * nss/getXXent.c: Likewise.
117         * nss/getXXent_r.c: Likewise.
118         * sysdeps/posix/getaddrinfo.c: Likewise.
119
120 2012-10-30  Andreas Jaeger  <aj@suse.de>
121
122         * po/ru.po: Update Russion translation from translation project.
123
124 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
125
126         [BZ #14152]
127         [BZ #14783]
128         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
129         result and shift together with sticky bit instead of replicating
130         round-to-nearest rounding.
131         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
132         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
133         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
134         missing underflow exceptions.
135         (fma_test_towardzero): Add more tests.
136         (fma_test_downward): Likewise.
137         (fma_test_upward): Likewise.
138
139         [BZ #14047]
140         * sysdeps/generic/tininess.h: New file.
141         * sysdeps/i386/tininess.h: Likewise.
142         * sysdeps/sh/tininess.h: Likewise.
143         * sysdeps/x86_64/tininess.h: Likewise.
144         * stdlib/tst-strtod-underflow.c: Likewise.
145         * stdlib/tst-tininess.c: Likewise.
146         * stdlib/strtod_l.c: Include <tininess.h>.
147         (round_and_return): Do not set errno for exact underflow cases.
148         Force an underflow exception when setting errno for underflow.
149         Determine underflow based on rounding to normal precision if
150         TININESS_AFTER_ROUNDING.
151         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
152         ERANGE for exact underflow cases.
153         * stdlib/Makefile (tests): Add tst-tininess and
154         tst-strtod-underflow.
155         ($(objpfx)tst-tininess): Use $(link-libm).
156         ($(objpfx)tst-strtod-underflow): Likewise.
157
158 2012-10-30  Andreas Jaeger  <aj@suse.de>
159
160         [BZ#14767]
161         * elf/Makefile (tests): Remove conditional for have-initfini-array
162         since this is now always required and the variable does not exist
163         anymore.
164         (tests-static): Likewise.
165         (modules-names): Likewise.
166
167         * po/eo.po: Add Esperanto translation from translation project.
168
169         * elf/tst-array1.c (fini_array): Make writeable so that it can be
170         merged with constructor/destructor.
171         (init_array): Likewise.
172         * elf/tst-array2dep.c (fini_array): Likewise.
173         (init_array): Likewise.
174
175 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
176
177         * manual/message.texi: Delete @cartouche tags.
178
179 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
180
181         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
182         EOPNOTSUPP.
183         * sysdeps/mach/hurd/fsync.c: Likewise.
184
185         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
186         [_POSIX_REALTIME_SIGNALS]: Change condition to
187         [_POSIX_REALTIME_SIGNALS > 0].
188
189 2012-10-27  Andreas Jaeger  <aj@suse.de>
190
191         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
192         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
193         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
194         [__WORDSIZE != 64]: Likewise.
195
196 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
197
198         *  iconvdata/tst-table.sh: Remove ${SHELL}.
199         *  iconvdata/tst-tables.sh: Likewise.
200
201 2012-10-25  David S. Miller  <davem@davemloft.net>
202
203         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
204         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
205         of strtoull.
206
207         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
208         ifunc-impl-list.c
209         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
210         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
211         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
212         file.
213
214 2012-10-25  Roland McGrath  <roland@hack.frob.com>
215
216         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
217         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
218         __getdirentries.
219
220 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
221             Jim Blandy  <jimb@codesourcery.com>
222
223         * scripts/cross-test-ssh.sh: New file.
224         * manual/install.texi (Configuring and compiling): Document use of
225         cross-test-ssh.sh.
226         * INSTALL: Regenerated.
227
228 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
229
230         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
231         EOPNOTSUPP.
232
233 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
234
235         * Makeconfig (run-program-prefix): Fix comment.
236
237 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
238             Jim Blandy  <jimb@codesourcery.com>
239
240         * Makeconfig (test-wrapper): New variable,
241         (test-wrapper-env): Likewise.
242         [$(cross-compiling) = yes && $(test-wrapper) != ""]
243         (run-built-tests): Define to yes.
244         (run-program-prefix): Use $(test-wrapper).
245         (built-program-cmd): Likewise.
246         * Rules (make-test-out): Use $(test-wrapper-env) and
247         $(host-built-program-cmd).
248         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
249         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
250         tst-pathopt.sh.
251         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
252         $(test-wrapper-env) to tst-rtld-load-self.sh.
253         ($(objpfx)order2.out): Use $(test-wrapper).
254         ($(objpfx)tst-initorder.out): Likewise.
255         ($(objpfx)tst-initorder2.out): Likewise.
256         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
257         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
258         (test_wrapper_env): New variable.  Use it to run ld.so.
259         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
260         Use it to run ld.so.
261         (test_wrapper_env): Likewise.
262         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
263         $(test-wrapper) to run-iconv-test.sh.
264         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
265         (ICONV): Use $test_wrapper.
266         * posix/Makefile ($(objpfx)globtest.out): Pass
267         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
268         globtest.sh, not $(run-program-prefix).
269         * posix/globtest.sh (run_via_rtld_prefix): New variable.
270         (test_wrapper): Likewise.
271         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
272         set together with run_via_rtld_prefix.
273         (run_program_prefix): Define in terms of test_wrapper and
274         run_via_rtld_prefix.
275
276 2012-10-24  Roland McGrath  <roland@hack.frob.com>
277
278         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
279         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
280         Targets removed.
281
282         [BZ #14743]
283         * include/time.h: Remove librt_hidden_proto (clock_gettime).
284         Declare __clock_getres, __clock_gettime, __clock_settime,
285         __clock_nanosleep, and __clock_getcpuclockid.
286         * rt/clock_gettime.c: Define __clock_gettime as an alias.
287         Remove librt_hidden_def (clock_gettime).
288         * sysdeps/unix/clock_gettime.c: Likewise.
289         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
290         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
291         * rt/clock_getres.c: Define __clock_getres as an alias.
292         * sysdeps/posix/clock_getres.c: Likewise.
293         * rt/clock_settime.c: Define __clock_settime as an alias.
294         * sysdeps/unix/clock_settime.c: Likewise.
295         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
296         * sysdeps/unix/clock_nanosleep.c: Likewise.
297         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
298         * rt/clock-compat.c: New file.
299         * rt/Makefile (librt-routines): Add clock-compat and move
300         $(clock-routines) to ...
301         (routines): ... here, new variable.
302         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
303         Don't add get_clockfreq here.
304         * rt/Versions (libc: GLIBC_2.17): New version set.
305         Add clock_* symbols here.
306         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
307         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
308         (GLIBC_2.17): Add clock_* symbols.
309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
310         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
311         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
313         Likewise.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
315         Likewise.
316         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
317         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
320         * NEWS: Mention the move.
321
322         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
323         Use __open, __read, __close rather than their public counterparts.
324         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
325         (__get_clockfreq_via_cpuinfo): Likewise.
326         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
327         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
328
329         * config.h.in (HAVE_IFUNC): New #undef.
330         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
331         was successful.
332         * configure: Regenerated.
333
334 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
335
336         * configure.in: Move READELF check to start of file.
337         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
338         libc_cv_asm_gnu_indirect_function in the process.
339         * configure: Regenerated.
340
341 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
342
343         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
344         send the output to /dev/null.
345         (libc_cv_cc_with_libunwind): Likewise.
346         (libc_cv_as_noexecstack): Likewise.
347         * configure: Regenerate.
348
349 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
350
351         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
352
353         * posix/globtest.sh (TMPDIR): Do not set.
354         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
355         (testout): Likewise.
356
357 2012-10-24  Andreas Jaeger  <aj@suse.de>
358
359         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
360         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
361         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
362         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
363         posix_fadvise64, posix_fallocate64.
364
365         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
366         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
367         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
368         Likewise.
369         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
370         Likewise.
371         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
372
373         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
374         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
375         <bits/fcntl-linux.h>.
376         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
377
378         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
379         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
380         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
381         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
382         [__WORDSIZE != 64]: Likewise.
383
384 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
385
386         * Makeconfig (run-built-tests): New variable.
387         * Rules [$(cross-compiling) = yes]: Change condition to
388         [$(run-built-tests) = no].
389         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
390         to [$(run-built-tests) = yes].
391         * elf/Makefile [$(cross-compiling) = no]: Likewise
392         * grp/Makefile [$(cross-compiling) = no]: Likewise.
393         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
394         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
395         * intl/Makefile [$(cross-compiling) = no]: Likewise.
396         * io/Makefile [$(cross-compiling) = no]: Likewise.
397         * libio/Makefile [$(cross-compiling) = no]: Likewise.
398         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
399         * misc/Makefile [$(cross-compiling) = no]: Likewise.
400         * posix/Makefile [$(cross-compiling) = no]: Likewise.
401         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
402         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
403         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
404         * string/Makefile [$(cross-compiling) = no]: Likewise.
405
406         * posix/Makefile ($(objpfx)globtest.out): Pass
407         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
408         $(rtld-installed-name).
409         * posix/globtest.sh (elf_objpfx): Remove variable.
410         (rtld_installed_name): Likewise.
411         (library_path): Likewise.
412         (run_program_prefix): New variable.  Use for running globtest
413         binary.
414
415 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
416             Joseph Myers  <joseph@codesourcery.com>
417
418         * Makeconfig (host-built-program-cmd): New variable.
419         * elf/Makefile (tst-stackguard1-ARGS): Use
420         $(host-built-program-cmd).
421         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
422         (tst-spawn-ARGS): Likewise.
423         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
424
425 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
426             Jim Blandy  <jimb@codesourcery.com>
427
428         * Makeconfig (run-via-rtld-prefix): New variable.
429         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
430         (built-program-cmd): Likewise.
431
432 2012-10-22  Andreas Jaeger  <aj@suse.de>
433
434         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
435         __O_RSYNC if it exists, otherwise to O_SYNC.
436
437 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
438             Joseph Myers  <joseph@codesourcery.com>
439
440         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
441         /dev/null.
442         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
443         from /dev/null
444         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
445         /dev/null.
446
447 2012-10-22  Andreas Jaeger  <aj@suse.de>
448
449         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
450         Define always.
451         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
452
453         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
454         bits/fcntl-linux.h.
455
456         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
457         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
458
459         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
460         to __O_LARGEFILE.
461         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
462         to __O_LARGEFILE.
463
464 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
465             Joseph Myers  <joseph@codesourcery.com>
466
467         * config.make.in (NM): New variable.
468
469 2012-10-21  Andreas Jaeger  <aj@suse.de>
470
471         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
472         definitions and declarations that are provided by
473         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
474
475 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
476
477         [BZ #14683]
478         * elf/Makefile (tests-static): Add tst-leaks1-static.
479         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
480         ($(objpfx)tst-leaks1-static): New rule.
481         ($(objpfx)tst-leaks1-static-mem): Likewise.
482         (tst-leaks1-static-ENV): New macro.
483         * elf/dl-open.c (dl_open_worker): Check the main application
484         only if SHARED is defined.
485         * elf/tst-leaks1-static.c: New file.
486
487 2012-10-20  Andreas Jaeger  <aj@suse.de>
488
489         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
490         generic values for Linux.
491         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
492         and declarations that are provided by <bits/fcntl-linux.h> and
493         include <bits/fcntl-linux.h>.
494         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
495         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
496
497 2012-10-20  Roland McGrath  <roland@hack.frob.com>
498
499         * io/fcntl.h: Move include of <bits/types.h> to the top and
500         include it unconditionally.
501
502 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
503
504         * wcsmbs/Makefile (tests-ifunc): New variable.
505         (tests): Add $(tests-ifunc).
506         * wcsmbs/test-wcschr-ifunc.c: New file.
507         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
508         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
509         * wcsmbs/test-wcslen-ifunc.c: Likewise.
510         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
511         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
512
513         * string/Makefile (tests-ifunc): New variable.
514         (tests): Add $(tests-ifunc).
515         * string/test-memccpy.c (TEST_NAME): New macro.
516         * string/test-memchr.c (TEST_NAME): Likewise.
517         * string/test-memcmp.c (TEST_NAME): Likewise.
518         * string/test-memcpy.c (TEST_NAME): Likewise.
519         * string/test-memmem.c (TEST_NAME): Likewise.
520         * string/test-memmove.c (TEST_NAME): Likewise.
521         * string/test-memset.c (TEST_NAME): Likewise.
522         * string/test-rawmemchr.c (TEST_NAME): Likewise.
523         * string/test-stpcpy.c (TEST_NAME): Likewise.
524         * string/test-stpncpy.c (TEST_NAME): Likewise.
525         * string/test-strcasecmp.c (TEST_NAME): Likewise.
526         * string/test-strcasestr.c (TEST_NAME): Likewise.
527         * string/test-strcat.c (TEST_NAME): Likewise.
528         * string/test-strchr.c (TEST_NAME): Likewise.
529         * string/test-strcmp.c(TEST_NAME): Likewise.
530         * string/test-strcpy.c (TEST_NAME): Likewise.
531         * string/test-strcspn.c (TEST_NAME): Likewise.
532         * string/test-strlen.c (TEST_NAME): Likewise.
533         * string/test-strncasecmp.c (TEST_NAME): Likewise.
534         * string/test-strncmp.c (TEST_NAME): Likewise.
535         * string/test-strncpy.c (TEST_NAME): Likewise.
536         * string/test-strnlen.c (TEST_NAME): Likewise.
537         * string/test-strpbrk.c (TEST_NAME): Likewise.
538         * string/test-strrchr.c (TEST_NAME): Likewise.
539         * string/test-strspn.c (TEST_NAME): Likewise.
540         * string/test-strstr.c (TEST_NAME): Likewise.
541         * string/test-bcopy-ifunc.c: New file.
542         * string/test-bzero-ifunc.c: Likewise.
543         * string/test-memccpy-ifunc.c: Likewise.
544         * string/test-memchr-ifunc.c: Likewise.
545         * string/test-memcmp-ifunc.c: Likewise.
546         * string/test-memcpy-ifunc.c: Likewise.
547         * string/test-memmem-ifunc.c: Likewise.
548         * string/test-memmove-ifunc.c: Likewise.
549         * string/test-mempcpy-ifunc.c: Likewise.
550         * string/test-memset-ifunc.c: Likewise.
551         * string/test-rawmemchr-ifunc.c: Likewise.
552         * string/test-stpcpy-ifunc.c: Likewise.
553         * string/test-stpncpy-ifunc.c: Likewise.
554         * string/test-strcasecmp-ifunc.c: Likewise.
555         * string/test-strcasestr-ifunc.c: Likewise.
556         * string/test-strcat-ifunc.c: Likewise.
557         * string/test-strchr-ifunc.c: Likewise.
558         * string/test-strchrnul-ifunc.c: Likewise.
559         * string/test-strcmp-ifunc.c: Likewise.
560         * string/test-strcpy-ifunc.c: Likewise.
561         * string/test-strcspn-ifunc.c: Likewise.
562         * string/test-strlen-ifunc.c: Likewise.
563         * string/test-strncasecmp-ifunc.c: Likewise.
564         * string/test-strncat-ifunc.c: Likewise.
565         * string/test-strncmp-ifunc.c: Likewise.
566         * string/test-strncpy-ifunc.c: Likewise.
567         * string/test-strnlen-ifunc.c: Likewise.
568         * string/test-strpbrk-ifunc.c: Likewise.
569         * string/test-strrchr-ifunc.c: Likewise.
570         * string/test-strspn-ifunc.c: Likewise.
571         * string/test-strstr-ifunc.c: Likewise.
572
573         * debug/Makefile (tests-ifunc): New variable.
574         (tests): Add $(tests-ifunc).
575         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
576         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
577         * debug/test-stpcpy_chk-ifunc.c: New file.
578         * debug/test-strcpy_chk-ifunc.c: Likewise.
579
580 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
581
582         [BZ #13601]
583         * elf/dl-load.c (open_verify): Retry read if the entire ELF
584         header is not read in.
585
586 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
587
588         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
589         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
590         directly.  Pass built executable to script as
591         $(built-program-cmd).
592         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
593         $testprogram without using LD_LIBRARY_PATH and $ldso.
594
595         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
596         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
597         $(rtld-installed-name).
598         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
599         (rtld_installed_name): Likewise.
600         (library_path): Likewise.
601         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
602         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
603         $(run-program-prefix) to tst-tables.sh.
604         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
605         it to run tst-table-from and tst-table-to.
606         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
607         Pass it to tst-table.sh.
608         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
609         $(run-program-prefix) to tst-gettext.sh.
610         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
611         tst-translit.sh.
612         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
613         tst-gettext2.sh.
614         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
615         to run tst-gettext.
616         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
617         to run tst-gettext2.
618         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
619         to run tst-translit.
620         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
621         $(run-program-prefix) to tst-mtrace.sh.
622         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
623         to run tst-mtrace.
624         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
625         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
626         $(rtld-installed-name).
627         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
628         (rtld_installed_name): Likewise.
629         (run_program_prefix): New variable.  Use it to run wordexp-test.
630
631         * Makeconfig (ARCH): Remove all definitions.
632         (machine): Likewise.
633         [ARCH]: Remove conditional code.
634         [!objdir]: Give error.
635         [!objdir] (objpfx): Remove.
636         [!objdir] (common-objpfx): Likewise.
637         [!objdir] (common-objdir): Likewise.
638         * configure.in (config_makefile): Remove.  Hardcode Makefile in
639         AC_CONFIG_FILES call.
640         * configure: Regenerated.
641
642         [BZ #13888]
643         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
644         or TMPDIR.
645         (testout): Likewise.
646
647         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
648         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
649         $(rtld-installed-name).
650         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
651         (rtld_installed_name): Likwise.
652         (runit): Remove function.
653         (run_getconf): New variable,  Use it for running getconf binary.
654
655 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
656
657         [BZ #14716]
658         * string/test-memmem.c (check_result): New function.
659         (do_one_test): Use it.
660         (check1): New function.
661         (test_main): Use it.
662
663 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
664
665         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
666
667 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
668
669         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
670         (_G_LSEEK64): Likewise.
671         (_G_MMAP64): Likewise.
672         (_G_FSTAT64): Likewise.
673         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
674         (_G_LSEEK64): Likewise.
675         (_G_MMAP64): Likewise.
676         (_G_FSTAT64): Likewise.
677         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
678         unconditional.  Call __mmap64 directly.
679         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
680         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
681         __lseek64 directly.
682         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
683         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
684         __mmap64 directly.
685         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
686         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
687         __lseek64 directly.
688         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
689         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
690         __lseek64 directly.
691         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
692         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
693         __lseek64 directly.
694         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
695         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
696         __fxstat64 directly.
697         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
698         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
699         unconditional.
700         (freopen64) [!_G_OPEN64]: Remove conditional code.
701         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
702         unconditional.
703         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
704         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
705         unconditional.
706         (ftello64) [!_G_LSEEK64]: Remove conditional code.
707         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
708         unconditional.
709         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
710         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
711         unconditional.
712         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
713         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
714         unconditional.
715         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
716         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
717         unconditional.
718         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
719         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
720         unconditional.
721         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
722
723 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
724
725         [BZ #12140]
726         * manual/memory.texi (Malloc Tunable Parameters): Add note
727         about free list pointers overwriting some perturb bytes.
728         Wording suggested by Roland McGrath.
729
730 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
731
732         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
733         (lgamma_test): Likewise.
734         (tgamma_test): Likewise.
735
736 2012-10-16  Florian Weimer  <fweimer@redhat.com>
737
738         [BZ #14700]
739         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
740         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
741
742 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
743
744         * NEWS: Mention BZ #14716.
745         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
746         when removing AVAILABLE1_USES_J macro.
747
748 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
749
750         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
751         (__bswap_64): __uint64_t for unsigned 64-bit int.
752
753 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
754
755         * include/string.h (memmem): Declare libc hidden alias.
756         * string/memmem.c (memmem): Define libc hidden alias.
757         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
758         __read, __close instead of open, read, close.
759
760 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
761
762         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
763         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
764         global and hidden.
765         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
766         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
767         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
768         Likewise.
769         (__rawmemchr_sse2): Likewise.
770         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
771         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
772         (__strchr_sse2): Likewise.
773         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
774         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
775         (__strcasecmp_sse2): Likewise.
776         (__strncasecmp_sse2): Likewise.
777         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
778         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
779         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
780         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
781         (__strrchr_sse2): Likewise.
782         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
783         ifunc-impl-list.c.
784         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
785         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
786         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
787         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
788         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
789         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
790         * sysdeps/x86_64/multiarch/memset.S: Likewise.
791         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
792         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
793         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
794         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
795         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
796         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
797         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
798         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
799         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
800         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
801         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
802         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
803         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
804         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
805         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
806         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
807         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
808         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
809         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
810         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
811         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
812         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
813         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
814
815         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
816         global and hidden.
817         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
818         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
819         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
820         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
821         Likewise.
822         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
823         Likewise.
824         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
825         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
826         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
827         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
828         ifunc-impl-list.c.
829         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
830         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
831         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
832         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
833         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
834         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
835         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
836         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
837         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
838         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
839         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
840         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
841         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
842         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
843         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
844         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
845         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
846         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
847         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
848         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
849         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
850         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
851         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
852         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
853         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
854         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
855         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
856         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
857         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
858         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
859         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
860         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
861         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
862         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
863         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
864         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
865         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
866         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
867         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
868         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
869         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
870
871         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
872         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
873         * include/ifunc-impl-list.h: New file.
874         * misc/ifunc-impl-list.c: Likewise.
875         * misc/Makefile (routines): Add ifunc-impl-list.
876         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
877         * string/test-string.h: Include <ifunc-impl-list.h>.
878         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
879         impl_array): New variables.
880         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
881         are defined.
882         (test_init): Call __libc_ifunc_impl_list to initialize
883         func_list if TEST_IFUNC and TEST_NAME are defined.
884
885         * string/Makefile (strop-tests): Add bcopy and bzero.
886         * string/test-bcopy.c: New file.
887         * string/test-bzero.c: Likewise.
888         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
889         defined.
890         * string/test-memset.c: Support bzero test if TEST_BZERO is
891         defined.
892         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
893         __libc_memmove.
894         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
895         __libc_memset.
896         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
897         of memset.
898
899 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
900
901         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
902         * configure: Regenerated.
903
904         * Makeconfig (+link-static-before-libc): Don't include
905         $(link-static-libc).
906
907         * libio/libio.h (_IO_pos_t): Remove.
908
909 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
910
911         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
912         McGrath.
913
914 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
915
916         * crypt/crypt-entry.c: Include fips-private.h.
917         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
918         * crypt/md5c-test.c (main): Tolerate disabled MD5.
919         * sysdeps/unix/sysv/linux/fips-private.h: New file.
920         * sysdeps/generic/fips-private.h: New file, dummy fallback.
921
922 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
923
924         * crypt/crypt-private.h: Include stdbool.h.
925         (_ufc_setup_salt_r): Return bool.
926         * crypt/crypt-entry.c: Include errno.h.
927         (__crypt_r): Return NULL with EINVAL for bad salt.
928         * crypt/crypt_util.c (bad_for_salt): New.
929         (_ufc_setup_salt_r): Check that salt is long enough and within
930         the specified alphabet.
931         * crypt/badsalttest.c: New file.
932         * crypt/Makefile (tests): Add it.
933         ($(objpfx)badsalttest): New.
934
935 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
936
937         * NEWS: Add entry for BZ #14602.
938
939 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
940
941         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
942         type-generic.
943         * math/libm-test.inc: Update comment listing what functions and
944         macros are tested.
945         (isgreater_test): New function.
946         (isgreaterequal_test): Likewise.
947         (isless_test): Likewise.
948         (islessequal_test): Likewise.
949         (islessgreater_test): Likewise.
950         (isunordered_test): Likewise.
951         (main): Call the new functions.
952
953 2012-10-09  Roland McGrath  <roland@hack.frob.com>
954
955         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
956         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
957         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
958         * sysdeps/i386/configure: Regenerated.
959         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
960         * sysdeps/mach/configure: Regenerated.
961         * sysdeps/mach/hurd/configure: Regenerated.
962         * sysdeps/powerpc/configure: Regenerated.
963         * sysdeps/powerpc/powerpc32/configure: Regenerated.
964         * sysdeps/powerpc/powerpc64/configure: Regenerated.
965         * sysdeps/s390/s390-32/configure: Regenerated.
966         * sysdeps/s390/s390-64/configure: Regenerated.
967         * sysdeps/sh/configure: Regenerated.
968         * sysdeps/sparc/configure: Regenerated.
969         * sysdeps/unix/sysv/linux/configure: Regenerated.
970         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
971         * sysdeps/x86_64/configure: Regenerated.
972
973         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
974         defined.  Don't check if MAP is NULL.
975
976 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
977
978         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
979         (_G_stat64): Likewise.
980         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
981         (_G_stat64): Likewise.
982         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
983         instead of struct _G_stat64.
984         * libio/fileops.c (mmap_remap_check): Likewise.
985         (decide_maybe_mmap): Likewise.
986         (_IO_new_file_seekoff): Likewise.
987         (_IO_file_stat): Likewise.
988         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
989         _G_off64_t.
990         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
991         instead of struct _G_stat64.
992         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
993
994 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
995
996         [BZ #14602]
997         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
998         Replace with ...
999         (CHECK_EOL): New macro.
1000         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1001         CHECK_EOL.
1002         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1003         Replace with CHECK_EOL.
1004         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1005         Replace with CHECK_EOL.
1006
1007 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1008
1009         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1010         type-generic.
1011         * math/libm-test.inc: Update comment listing what functions and
1012         macros are tested.
1013         (finite_test): New function.
1014         (isinf_test): Likewise.
1015         (isnan_test): Likewise.
1016         (fpclassify_test): Test subnormal input.
1017         (isfinite_test): Likewise.
1018         (isnormal_test): Likewise.
1019         (main): Call the new functions.
1020
1021 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1022
1023         [BZ #14660]
1024         * Makerules (%.dynsym): Force C locale when running
1025         $(OBJDUMP) --dynamic-syms.
1026
1027 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1028
1029         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1030         <stdint.h>.
1031
1032 2012-10-06  David S. Miller  <davem@davemloft.net>
1033
1034         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1035         upper 32-bits of the length value in %o2 since we use branch-on-register
1036         tests which consider the entire 64-bit register.
1037
1038 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1039
1040         * string/test-strstr.c (check2): Add a test for page boundary.
1041
1042 2012-10-05  David S. Miller  <davem@davemloft.net>
1043
1044         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1045         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1046         file.
1047         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1048         sysdep_routines.
1049         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1050         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1051         and bzero when HWCAP_SPARC_CRYPTO is present.
1052
1053 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1054
1055         [BZ #14602]
1056         * string/test-strstr.c (check2): New function.
1057         (test_main): Call check2.
1058
1059         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1060         and bug-strchr1.
1061         * string/bug-strcasestr1.c (do_test): Moved to ...
1062         * string/test-strcasestr.c (check1): Here.  New function.
1063         (do_one_test): Break out result checking code into ...
1064         (check_result): This.  New function.
1065         (do_one_test): Call check_result.
1066         (test_main): Call check1.
1067         * string/bug-strchr1.c (do_test): Moved to ...
1068         * string/test-strchr.c (check1): Here.  New function.
1069         (do_one_test): Break out result checking code into ...
1070         (check_result): This.  New function.
1071         (do_one_test): Call check_result.
1072         (test_main): Call check1.
1073         * string/bug-strstr1.c (main): Moved to ...
1074         * string/test-strchr.c (check1): Here.  New function.
1075         (do_one_test): Break out result checking code into ...
1076         (check_result): This.  New function.
1077         (do_one_test): Call check_result.
1078         (test_main): Call check1.
1079         * string/bug-strcasestr1.c: Removed.
1080         * string/bug-strchr1.c: Likewise.
1081         * string/bug-strstr1.c: Likewise.
1082
1083         * elf/Makefile (dl-routines): Add hwcaps.
1084         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1085         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1086         (_dl_important_hwcaps): Moved to ...
1087         * elf/dl-hwcaps.c: Here.  New file.
1088         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1089
1090         [BZ #14557]
1091         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1092         if IS_IN_rtld isn't defined.
1093
1094         * elf/dl-support.c (_dl_sysinfo_map): New.
1095         Include "get-dynamic-info.h" and "setup-vdso.h".
1096         (_dl_non_dynamic_init): Call setup_vdso.
1097         * elf/dynamic-link.h: Don't include <assert.h>.
1098         (elf_get_dynamic_info): Moved to ...
1099         * elf/get-dynamic-info.h: Here.  New file.
1100         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1101         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1102         * elf/setup-vdso.h: Here.  New file.
1103         * elf/rtld.c: Include "setup-vdso.h".
1104         (dl_main): Call setup_vdso.
1105
1106 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1107
1108         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1109         creal in comment listing functions tested.  List finite, isinf,
1110         isnan, isless, islessequal, isgreater, isgreaterequal,
1111         islessgreater, isunordered, lgamma_r and pow10 as functions and
1112         macros not tested.  Mention which functions not tested are aliases
1113         for other functions.  Fix typo.  Note that signs of NaNs are not
1114         tested.
1115
1116         * scripts/config.guess: Update from config.git.
1117         * scripts/config.sub: Likewise.
1118
1119 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1120
1121         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1122         * misc/madvise.c (madvise): Renamed to __madvise.
1123         Make madvise a weak alias.
1124         * include/sys/mman.h: Declare __madvise.
1125         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1126         * sysdeps/unix/syscalls.list
1127         (madvise): Make __madvise the strong name, and madvise a weak alias.
1128         * sysdeps/unix/sysv/linux/syscalls.list
1129         (madvise, mmap): Remove redundant entries.
1130         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1131         * malloc/malloc.c (mtrim): Likewise.
1132         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1133
1134 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1135
1136         * sysdeps/mach/hurd/dl-cache.c: File removed.
1137         * config.h.in (USE_LDCONFIG): New #undef.
1138         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1139         * configure: Regenerated.
1140         * elf/Makefile (dl-routines): Add dl-cache only under
1141         [$(use-ldconfig) = yes].
1142         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1143         cache on [USE_LDCONFIG].
1144         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1145         [USE_LDCONFIG].
1146         * elf/rtld.c (dl_main): Likewise.
1147
1148 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1149
1150         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1151         _SC_LEVEL4_CACHE_LINESIZE.
1152
1153 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1154
1155         * sysdeps/unix/bsd/confstr.h: File removed.
1156
1157 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1158
1159         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1160         sys/sdt-config.h.
1161
1162 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1163
1164         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1165         Make 'mapoff' field ElfW(Off) rather than off_t.
1166
1167 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1168
1169         * nscd/Makefile: Remove nscd-cflags and all its users.
1170         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1171         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1172
1173         [BZ #10631]
1174         * malloc.c (malloc_printerr): Clarify error message.
1175
1176 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         [BZ #14648]
1179         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1180         Set bit_FMA_Usable if FMA is supported.
1181         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1182         macro.
1183         (bit_FMA4_Usable): Updated.
1184         (index_FMA_Usable): New macro.
1185         (CPUID_FMA): Likewise
1186         (HAS_FMA): Defined with bit_FMA_Usable.
1187
1188 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1189
1190         * bits/types.h (__swblk_t): Type removed.
1191         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1192         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1193         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1194         (__SWBLK_T_TYPE): Likewise.
1195         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1196         (__SWBLK_T_TYPE): Likewise.
1197         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1198         (__SWBLK_T_TYPE): Likewise.
1199         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1200         (__SWBLK_T_TYPE): Likewise.
1201
1202 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1203             Honza Horak <hhorak@redhat.com>
1204
1205         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1206         (xdr_mapname): Use YPMAXMAP as maxsize.
1207         (xdr_peername): Use YPMAXPEER as maxsize.
1208         (xdr_keydat): Use YPAXRECORD as maxsize.
1209         (xdr_valdat): Use YPMAXRECORD as maxsize.
1210
1211 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1212
1213         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1214
1215         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1216         * csu/init-first.c: ... here.
1217         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1218         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1219         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1220         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1221         * sysdeps/i386/init-first.c: File removed.
1222         * sysdeps/sh/init-first.c: File removed.
1223
1224 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1225
1226         [BZ #14645]
1227         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1228         if x * y might underflow to zero and z is zero.
1229         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1231         * math/libm-test.inc (min_subnorm_value): New variable.
1232         (fma_test): Add more tests.
1233         (fma_test_towardzero): Likewise.
1234         (fma_test_downward): Likewise
1235         (fma_test_upward): Likewise.
1236         (initialize): Set min_subnorm_value.
1237
1238 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1239
1240         [BZ #14638]
1241         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1242         0 + 0.
1243         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1244         mode for addition resulting in exact zero.
1245         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1246         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1247         exact 0 + 0.
1248         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1249         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1250         * math/libm-test.inc (fma_test): Add more tests.
1251         (fma_test_towardzero): New function.
1252         (fma_test_downward): Likewise.
1253         (fma_test_upward): Likewise.
1254         (main): Call the new functions.
1255
1256 2012-09-28  David S. Miller  <davem@davemloft.net>
1257
1258         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1259
1260 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1261
1262         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1263         instead of SIGALRM.
1264
1265         * sysdeps/gnu/_G_config.h: Moved to ...
1266         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1267         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1268         * sysdeps/generic/_G_config.h: ... here.
1269
1270         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1271
1272         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1273
1274         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1275         Conditionalize target on [libnss_test1.so-version].
1276
1277         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1278
1279         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1280         (elfobjdir): Move out of conditionals.
1281
1282         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1283         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1284         (__nss_lookup_function): Conditionalize label remove_from_tree on
1285         [!DO_STATIC_NSS || SHARED], matching its only use.
1286
1287 2012-09-28  David S. Miller  <davem@davemloft.net>
1288
1289         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1290         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1291         file.
1292         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1293         sysdep_routines.
1294         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1295         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1296         when HWCAP_SPARC_CRYPTO is present.
1297
1298 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1299
1300         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1301
1302 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1303
1304         [BZ #6530]
1305         * stdio-common/vfprintf.c (process_string_arg): Revert
1306         2000-07-22 change.
1307
1308 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1309
1310         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1311         for testcase.
1312         * stdio-common/tst-sprintf.c: Include <locale.h>
1313         (main): Test sprintf's handling of incomplete multibyte
1314         characters.
1315
1316 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1317
1318         * elf/dl-runtime.c (VERSYMIDX): Removed.
1319         * elf/dl-version.c (VERSYMIDX): Likewise.
1320         * elf/do-rel.h (VERSYMIDX): Likewise.
1321         (VALIDX): Likewise.
1322         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1323         * elf/rtld.c (VALIDX): Likewise.
1324         (ADDRIDX): Likewise.
1325         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1326         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1327         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1328         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1329         (VALIDX): Likewise.
1330         (ADDRIDX): Likewise.
1331
1332 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1333
1334         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1335
1336 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1337
1338         [BZ #11438]
1339         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1340         to global scope.
1341         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1342         addresses are in the same scope as 192.0.2/24.
1343         * posix/gai.conf: Document new scope table defaults.
1344
1345 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1346
1347         [BZ #5298]
1348         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1349         for ftell.  Compute offsets from write pointers instead.
1350         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1351
1352 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1353
1354         [BZ #14543]
1355         * libio/Makefile (tests): New test case tst-fseek.
1356         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1357         combination works in wide mode.
1358         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1359         state when the external buffer state changes.
1360
1361 2012-09-27  David S. Miller  <davem@davemloft.net>
1362
1363         [BZ #14376]
1364         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1365         pass reloc->r_addend in as the 'high' argument to
1366         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1367
1368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1369
1370 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1371
1372         * rt/tst-aio2.c: Include <pthread.h>.
1373         * rt/tst-aio3.c: Likewise.
1374
1375 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1376
1377         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1378
1379 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1382         contents on [SHARED].
1383
1384 2012-09-26  Marek Polacek  <polacek@redhat.com>
1385
1386         [BZ #14530]
1387         [BZ #13741]
1388         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1389         for C++ and GCC <4.3 as well as for non GCC compilers.
1390
1391 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1392
1393         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1394
1395 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1396
1397         * Makefile.in (all, install): Declare with .PHONY.
1398         Reported by Michael Hope <michael.hope@linaro.org>.
1399
1400 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1401
1402         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1403         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1404         system header.
1405         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1406         Likewise.
1407         (sydep_routines): Add the new and the internal functions.
1408         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1409         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1411         (GLIBC_2.17): Add the new function.
1412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1413         (GLIBC_2.17): Likewise.
1414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1415         (GLIBC_2.17): Likewise.
1416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1417         (GLIBC_2.17): Likewise.
1418         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1419
1420 2012-09-25  Alan Modra  <amodra@gmail.com>
1421
1422         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1423         Add release barrier before setting once_control to say
1424         initialisation is done.  Add hints on lwarx.  Use macro in
1425         place of isync.
1426         (clear_once_control): Add release barrier.
1427
1428 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1429
1430         [BZ #13629]
1431         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1432         specially.
1433         * math/s_clog10.c (__clog10): Likewise.
1434         * math/s_clog10f.c (__clog10f): Likewise.
1435         * math/s_clog10l.c (__clog10l): Likewise.
1436         * math/s_clogf.c (__clogf): Likewise.
1437         * math/s_clogl.c (__clogl): Likewise.
1438         * math/Makefile (libm-calls): Add x2y2m1.
1439         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1440         (__x2y2m1): Likewise.
1441         (__x2y2m1l): Likewise.
1442         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1443         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1444         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1445         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1446         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1447         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1448         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1449         * sysdeps/i386/fpu/libm-test-ulps: Update.
1450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1451
1452         [BZ #14621]
1453         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1454         int as type of variable DEPTH.
1455         (glob): Use size_t instead of int as type of variables NEWCOUNT
1456         and OLD_PATHC.
1457
1458 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1459
1460         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1461         Add s_sincosf-sse2.
1462         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1463         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1464         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1465         macros for using routine as __sincosf_ia32.
1466         Use macro for function declaration and weak_alias.
1467         * sysdeps/i386/fpu/libm-test-ulps: Update.
1468
1469         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1470         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1471
1472         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1473         subnormal argument.
1474         * math/s_cexpf.c (__cexpf): Likewise.
1475         * math/s_csinf.c (__csinf): Likewise.
1476         * math/s_csinhf.c (__csinhf): Likewise.
1477         * math/s_ctanf.c (__ctanf): Likewise.
1478         * math/s_ctanhf.c (__ctanhf): Likewise.
1479         * math/s_ccosh.c (__ccoshf): Likewise.
1480         * math/s_cexp.c (__cexpl): Likewise.
1481         * math/s_csin.c (__csin): Likewise.
1482         * math/s_csinh.c (__csinh): Likewise.
1483         * math/s_ctan.c (__ctan): Likewise.
1484         * math/s_ctanh.c (ctanh): Likewise.
1485         * math/s_ccoshl.c (__ccoshl): Likewise.
1486         * math/s_cexpl.c (__cexpl): Likewise.
1487         * math/s_csinl.c (__csinl): Likewise.
1488         * math/s_csinhl.c (__csinhl): Likewise.
1489         * math/s_ctanl.c (__ctanl): Likewise.
1490         * math/s_ctanhl.c (__ctanhl): Likewise.
1491
1492 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1493
1494         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1495         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1496         (_IO_off_t): Define to __off_t, not _G_off_t.
1497         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1498         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1499         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1500         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1501         type of __dummy and __dummy2 fields.
1502         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1503         (_G_ssize_t): Likewise.
1504         (_G_off_t): Likewise.
1505         (_G_pid_t): Likewise.
1506         (_G_uid_t): Likewise.
1507         (_G_wchar_t): Likewise.
1508         (_G_wint_t): Likewise.
1509         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1510         (_G_ssize_t): Likewise.
1511         (_G_off_t): Likewise.
1512         (_G_pid_t): Likewise.
1513         (_G_uid_t): Likewise.
1514         (_G_wchar_t): Likewise.
1515         (_G_wint_t): Likewise.
1516         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1517         (_G_ssize_t): Likewise.
1518         (_G_off_t): Likewise.
1519         (_G_pid_t): Likewise.
1520         (_G_uid_t): Likewise.
1521         (_G_wchar_t): Likewise.
1522         (_G_wint_t): Likewise.
1523
1524 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1525
1526         * malloc/arena.c: Include malloc-sysdep.h.
1527         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1528         is sufficient to shrink the heap or an unmap is needed.
1529         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1530         new function check_may_shrink_heap.
1531         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1532         new function check_may_shrink_heap.
1533
1534 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1535
1536         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1537         comments.
1538
1539 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1540
1541         * catgets/test-gencat.sh: Add "set -e".
1542         * elf/tst-pathopt.sh: Likewise.
1543         * grp/tst_fgetgrent.sh: Likewise.
1544         * iconvdata/run-iconv-test.sh: Likewise.
1545         * intl/tst-gettext.sh: Likewise.
1546         * intl/tst-gettext2.sh: Likewise.
1547         * intl/tst-gettext4.sh: Likewise.
1548         * intl/tst-gettext6.sh: Likewise.
1549         * intl/tst-translit.sh: Likewise.
1550         * io/ftwtest-sh: Likewise.
1551         * libio/test-freopen.sh: Likewise.
1552         * malloc/tst-mtrace.sh: Likewise.
1553         * posix/globtest.sh: Likewise.
1554         * posix/tst-getconf.sh: Likewise.
1555         * posix/wordexp-tst.sh: Likewise.
1556         * stdio-common/tst-printf.sh: Likewise.
1557         * stdio-common/tst-unbputc.sh: Likewise.
1558         * stdlib/tst-fmtmsg.sh: Likewise.
1559         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1560         * catgets/Makefile: Do not specify -e option when running
1561         testsuite shell scripts.
1562         * elf/Makefile: Likewise.
1563         * grp/Makefile: Likewise.
1564         * iconvdata/Makefile: Likewise.
1565         * intl/Makefile: Likewise.
1566         * io/Makefile: Likewise.
1567         * libio/Makefile: Likewise.
1568         * malloc/Makefile: Likewise.
1569         * posix/Makefile: Likewise.
1570         * stdio-common/Makefile: Likewise.
1571         * stdlib/Makefile: Likewise.
1572         * sysdeps/x86_64/Makefile: Likewise.
1573
1574         * io/ftwtest-sh: Add copyright header.
1575         * posix/globtest.sh: Likewise.
1576         * posix/tst-getconf.sh: Likewise.
1577         * posix/wordexp-tst.sh: Likewise.
1578         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1579
1580 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1581
1582         [BZ #13679]
1583         * Makeconfig (+link): Defined as $(+link-static) if
1584         $(build-shared) isn't yes.
1585         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1586         isn't yes.
1587         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1588
1589         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1590
1591         [BZ #14562]
1592         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1593         new chunk size with MALLOC_ALIGN_MASK.
1594
1595 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1596
1597         [BZ #5044]
1598         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1599         <rounding-mode.h>.
1600         (__printf_fphex): Determine rounding using get_rounding_mode and
1601         round_away.
1602         * stdio-common/tst-printf-round.c (struct hex_test): New
1603         structure.
1604         (hex_tests): New variable.
1605         (test_hex_in_one_mode): New function.
1606         (do_test): Also run tests for hex float output.
1607
1608 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1609
1610         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1611         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1612         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1613         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1614         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1615         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1616         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1617         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1618
1619 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1620
1621         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1622         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1623         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1624         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1625
1626 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1627
1628         [BZ #14579]
1629         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1630         mode only.
1631         * elf/tst-rtld-load-self.sh: New test.
1632         * elf/Makefile: Run it.
1633
1634 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1637         (tst-writev-ENV): Remove.
1638         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1639
1640 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1641
1642         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1643
1644 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1645
1646         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1647         unconditional.
1648         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1649         Likewise.
1650         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1651         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1652         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1653         Likewise.
1654
1655 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1656
1657         [BZ #14587]
1658         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1659         * config.make.in (have-cpp-asm-debuginfo): Removed.
1660         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1661         * configure: Regenerated.
1662
1663 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1664
1665         [BZ #5044]
1666         * stdio-common/printf_fp.c: Include <stdbool.h> and
1667         <rounding-mode.h>.
1668         (___printf_fp): Determine rounding using get_rounding_mode and
1669         round_away.
1670         * stdio-common/tst-printf-round.c: New file.
1671         * stdio-common/Makefile (tests): Add tst-printf-round.
1672         (link-libm): New variable.
1673         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1674
1675 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1676
1677         [BZ #14576]
1678         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1679         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1680         Likewise.
1681         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1682         Likewise.
1683
1684 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1685
1686         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1687         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1688         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1689         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1690
1691 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1692
1693         [BZ #14518]
1694         * include/rounding-mode.h: New file.
1695         * sysdeps/generic/get-rounding-mode.h: Likewise.
1696         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1697         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1698         (MAX_VALUE): New macro.
1699         (MIN_VALUE): Likewise.
1700         (overflow_value): New function.
1701         (underflow_value): Likewise.
1702         (round_and_return): Use overflow_value and underflow_value to
1703         determine return values in overflow and underflow cases.  Use
1704         round_away to determine rounding depending on rounding mode.
1705         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1706         determine return values in overflow and underflow cases.
1707         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1708         (struct test_results): New structure.
1709         (struct test): Use struct test_results to store expected results
1710         for all rounding modes.
1711         (TEST): Include expected results for all rounding modes.
1712         (test_in_one_mode): New function.
1713         (do_test): Use test_in_one_mode to compute and check results.
1714         Check results for all rounding modes.
1715         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1716         $(link-libm).
1717
1718 2012-12-09  Allan McRae  <allan@archlinux.org>
1719
1720         * sysdeps/i386/fpu/libm-test-ulps: Update
1721
1722 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1723
1724         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1725         (_G_int32_t): Likewise.
1726         (_G_uint16_t): Likewise.
1727         (_G_uint32_t): Likewise.
1728         (_G_HAVE_BOOL): Likewise.
1729         (_G_HAVE_ATEXIT): Likewise.
1730         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1731         (_G_HAVE_IO_FILE_OPEN): Likewise.
1732         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1733         (_G_int32_t): Likewise.
1734         (_G_uint16_t): Likewise.
1735         (_G_uint32_t): Likewise.
1736         (_G_HAVE_BOOL): Likewise.
1737         (_G_HAVE_ATEXIT): Likewise.
1738         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1739         (_G_HAVE_IO_FILE_OPEN): Likewise.
1740         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1741         (_G_int32_t): Likewise.
1742         (_G_uint16_t): Likewise.
1743         (_G_uint32_t): Likewise.
1744         (_G_HAVE_BOOL): Likewise.
1745         (_G_HAVE_ATEXIT): Likewise.
1746         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1747         (_G_HAVE_IO_FILE_OPEN): Likewise.
1748
1749 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1750
1751         * csu/libc-tls.c: Update copyright years.
1752
1753 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1754
1755         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1756         [!_G_USING_THUNKS]: Remove conditional code.
1757         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1758         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1759
1760         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1761         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1762         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1763         (_G_VTABLE_LABEL_PREFIX): Likewise.
1764         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1765         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1766         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1767         (_G_VTABLE_LABEL_PREFIX): Likewise.
1768         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1769         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1770         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1771         (_G_VTABLE_LABEL_PREFIX): Likewise.
1772         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1773
1774 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1775
1776         * libio/Makefile: Include ../Makeconfig before tests.
1777         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1778         only if $(build-shared) is yes.
1779
1780         * iconv/gconv_db.c: Update copyright years.
1781
1782 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1783
1784         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1785         unwind info if defined PIC. Fix special cases description.
1786         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1787
1788         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1789         DP_HI_MASK entry.
1790         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1791
1792 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1793
1794         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1795
1796         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1797         is NULL.
1798
1799         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1800         (LDLIBS-tst-chk4): This.
1801         (LDFLAGS-tst-chk5): Renamed to ...
1802         (LDLIBS-tst-chk5): This.
1803         (LDFLAGS-tst-chk6): Renamed to ...
1804         (LDLIBS-tst-chk6): This.
1805         (LDFLAGS-tst-lfschk4): Renamed to ...
1806         (LDLIBS-tst-lfschk4): This.
1807         (LDFLAGS-tst-lfschk5): Renamed to ...
1808         (LDLIBS-tst-lfschk5): This.
1809         (LDFLAGS-tst-lfschk6): Renamed to ...
1810         (LDLIBS-tst-lfschk6): This.
1811
1812         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1813         on $(common-objpfx)soversions.mk.
1814
1815 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1816
1817         [BZ #10014]
1818         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1819         example host name.
1820
1821 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1822
1823         * malloc/arena.c (arena_get_retry): New function that gets
1824         another arena for the caller to try its request on.
1825         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1826         current arena cannot fulfill the request.
1827         (__libc_memalign): Likewise.
1828         (__libc_memalign): Likewise.
1829         (__libc_pvalloc): Likewise.
1830         (__libc_calloc): Likewise.
1831
1832 2012-09-05  John Tobey  <john.tobey@gmail.com>
1833
1834         [BZ #13542]
1835         * manual/arith.texi (Operations on Complex): Fix description
1836         of carg branch cut.
1837
1838 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1839
1840         [BZ #10014]
1841         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1842         host name.
1843
1844         [BZ #10038]
1845         * manual/memory.texi (Memory): Make order of menu items match
1846         order of sections.
1847
1848 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1849
1850         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1851         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1852         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1853
1854 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         * csu/libc-tls.c (static_dtv): Renamed to ...
1857         (_dl_static_dtv): This.  Make it global.
1858         (_dl_initial_dtv): Removed.
1859         (__libc_setup_tls): Updated.
1860         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1861         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1862         DL_INITIAL_DTV.
1863
1864 2012-09-06  Petr Machata  <pmachata@redhat.com>
1865
1866         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1867         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1868         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1869         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1870
1871 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1872
1873         [BZ #14545]
1874         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1875         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1876         freeing dtv[-1].
1877
1878 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1879
1880         [BZ #14544]
1881         * Makeconfig (link-static-before-libc): Replace $(+prector)
1882         with $(+prectorT).
1883         (link-static-after-libc): Replace $(+postctor) with
1884         $(+postctorT).
1885         (link-bounded): Replace $(+prector)/$(+postctor) with
1886         $(+prectorT)/$(+postctorT).
1887         (+prectorT): New macro.
1888         (+postctorT): Likewise.
1889
1890 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1891
1892         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1893         (round_str): Handle values above the maximum for IBM long double
1894         as inexact.
1895         * stdlib/tst-strtod-round.c (tests): Regenerated.
1896
1897 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1898
1899         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1900         assembler flag.
1901         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1902         zarch_nohighgprs around the zarch optimized routines.
1903         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1904         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1905         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1906         for zarch.
1907
1908 2012-09-05  David S. Miller  <davem@davemloft.net>
1909
1910         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1911
1912         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1913         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1914         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1915         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1916         entries.
1917
1918 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1919
1920         * malloc/arena.c: Fold copyright years.
1921         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1922
1923 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1924
1925         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1926
1927 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1928
1929         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1930
1931 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1932
1933         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1934         change internal state upon failure.
1935
1936 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1937
1938         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1939         * malloc/memusage.c (mmap): Likewise.
1940         (mmap64, mremap): Likewise.  Adjust name in comment.
1941
1942 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1943
1944         * libio/fileops.c: Fix typos in comments.
1945         * libio/oldfileops.c: Likewise.
1946         * libio/wfileops.c: Likewise.
1947
1948 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1949
1950         [BZ #1349]
1951         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1952         (tst-malloc-usable-ENV): Set environment for test case.
1953         * malloc/hooks.c (malloc_check_get_size): New function to get
1954         requested size.
1955         * malloc/malloc.c (musable): Use malloc_check_get_size.
1956         * malloc/tst-malloc-usable.c: New test case.
1957
1958 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1959
1960         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1961
1962 2012-09-05  Allan McRae  <allan@archlinux.org>
1963
1964         [BZ #13966]
1965         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1966         determine header location.
1967         * configure: Regenerated.
1968
1969 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1970
1971         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1972         float format.
1973         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1974         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1975         format.
1976         (test): Regenerate.
1977
1978 2012-09-04  David S. Miller  <davem@davemloft.net>
1979
1980         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1981         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1982         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1983
1984 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1985
1986         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1987         failures.
1988
1989         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1990
1991 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1992
1993         [BZ #9914]
1994         * libio/iogetdelim.c: Include <limits.h>.
1995         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1996         + len + 1 would overflow.
1997
1998 2012-09-03  Andreas Jaeger  <aj@suse.de>
1999
2000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2001         * sysdeps/i386/fpu/libm-test-ulps: Update.
2002
2003 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2004
2005         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2006         Add s_sinf-sse2, s_conf-sse2.
2007
2008         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2009         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2010         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2011         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2012
2013         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2014         for using routine as __sinf_ia32.
2015         Use macro for function declaration and weak_alias.
2016         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2017         for using routine as __cosf_ia32.
2018         Use macro for function declaration and weak_alias.
2019
2020         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2021         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2022
2023         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2024         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2025         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2026
2027         * math/libm-test.inc (cos_test): Add more test cases.
2028         (sin_test): Likewise.
2029         (sincos_test): Likewise.
2030
2031 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2032
2033         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2034         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2035         hidden.
2036         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2037
2038 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2039
2040         [BZ #14538]
2041         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2042         first element of the GOT.
2043         (elf_machine_load_address): Return the difference between
2044         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2045
2046 2012-09-01  Allan McRae  <allan@archlinux.org>
2047
2048         [BZ #13412]
2049         * configure.in (AWK): Require gawk version 3.0 or later.
2050         * configure: Regenerated.
2051
2052 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2053
2054         * sysdeps/unix/sysv/linux/kernel-features.h
2055         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2056         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2057         [__NR_clock_getres]: Make code unconditional.
2058         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2059         (clock_getcpuclockid): Remove code left unreachable by removal of
2060         conditionals.
2061         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2062         code unconditional.
2063         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2064         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2065         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2066         Make code unconditional.
2067         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2068         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2069         * sysdeps/unix/sysv/linux/clock_settime.c
2070         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2071         conditional code.
2072         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2073         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2074
2075 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2076
2077         [BZ #14476]
2078         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2079         scripts/test-installation.pl.
2080
2081         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2082         and $ld_so_version if it is set.
2083
2084 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2085
2086         [BZ #14516]
2087         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2088         failure if reading from procfs failed.
2089         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2090
2091 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2092
2093         * sysdeps/unix/sysv/linux/kernel-features.h
2094         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2095         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2096         Remove conditional code.
2097         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2098         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2099         Remove conditional code.
2100         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2101         * sysdeps/unix/sysv/linux/i386/fxstat.c
2102         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2103         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2104         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2105         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2106         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2107         * sysdeps/unix/sysv/linux/i386/lxstat.c
2108         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2109         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2110         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2111         Remove conditional code.
2112         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2113         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2114         Remove conditional code.
2115         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2116         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2117         <kernel-features.h>.
2118         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2119         Remove.
2120         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2121         Remove conditional code.
2122         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2123         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2124         Remove conditional.
2125
2126 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2127
2128         [BZ #5400]
2129         * NEWS: Add fixed bug number.
2130
2131 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2132
2133         [BZ #14519]
2134         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2135         underflowing exponent in case of negative sign.
2136         * stdlib/tst-strtod-round-data: Add more tests.
2137         * stdlib/tst-strtod-round.c (tests): Regenerated.
2138
2139         [BZ #3479]
2140         * stdlib/strtod_l.c (NDIG): Remove.
2141         (HEXNDIG): Likewise.
2142         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2143         smallest representable value.
2144         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2145         lie within an exact representation of 1/2 ulp of the result.
2146         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2147         unconditionally.
2148         (TENS_P9_IDX): Define unconditionally.
2149         (TENS_P9_SIZE): Likewise.
2150         (TENS_P10_IDX): Likewise.
2151         (TENS_P10_SIZE): Likewise.
2152         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2153         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2154         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2155         entries for 10^2^13 and 10^2^14.
2156         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2157         (TENS_P13_IDX): Define.
2158         (TENS_P13_SIZE): Likewise.
2159         (TENS_P14_IDX): Likewise.
2160         (TENS_P14_SIZE): Likewise.
2161         (_fpioconst_pow10): Change array size to
2162         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2163         unconditional.
2164         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2165         1024]: Add entries for 10^2^13 and 10^2^14.
2166         [LAST_POW10 > _LAST_POW10]: Remove #error.
2167         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2168         (_fpioconst_pow10): Change array size to
2169         FPIOCONST_POW10_ARRAY_SIZE.
2170         * stdlib/gen-fpioconst.c: New file.
2171         * stdlib/gen-tst-strtod-round.c: Likewise.
2172         * stdlib/tst-strtod-round-data: Likewise.
2173         * stdlib/tst-strtod-round.c: Likewise.
2174         * stdlib/Makefile (tests): Add tst-strtod-round.
2175
2176         [BZ #14459]
2177         * stdlib/strtod_l.c: Include <stdint.h>.
2178         (NDEBUG): Do not define.
2179         (round_and_return): Change EXPONENT parameter to type intmax_t.
2180         Rearrange calculations to avoid internal overflow possibilities.
2181         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2182         Rearrange calculations to avoid internal overflow possibilities.
2183         Assert that number fits inside MPNSIZE limbs.
2184         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2185         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2186         calculations and add assertions to avoid internal overflow
2187         possibilities.  Add casts to avoid signed/unsigned operations.
2188         * stdlib/tst-strtod-overflow.c: New file.
2189         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2190
2191 2012-08-25  Marek Polacek  <polacek@redhat.com>
2192
2193         * time/time.h: Fix some typos in comments.
2194
2195 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2196
2197         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2198         * posix/tst-rfc3484-2.c: Likewise.
2199         * posix/tst-rfc3484-3.c: Likewise.
2200
2201 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2202
2203         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2204         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2205
2206 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2207
2208         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2209         #include of fxstatat64.c.
2210
2211 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2212
2213         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2214         * shadow/getspent_r.c: Likewise.
2215         * shadow/getspnam.c: Likewise.
2216         * shadow/getspnam_r.c: Likewise.
2217         * gshadow/getsgent.c: Likewise.
2218         * gshadow/getsgent_r.c: Likewise.
2219         * gshadow/getsgnam.c: Likewise.
2220         * gshadow/getsgnam_r.c: Likewise.
2221         * inet/getnetbyad.c: Likewise.
2222         * inet/getnetbyad_r.c: Likewise.
2223         * inet/getnetbynm.c: Likewise.
2224         * inet/getnetbynm_r.c: Likewise.
2225         * inet/getnetent.c: Likewise.
2226         * inet/getnetent_r.c: Likewise.
2227         * inet/getproto.c: Likewise.
2228         * inet/getproto_r.c: Likewise.
2229         * inet/getprtent.c: Likewise.
2230         * inet/getprtent_r.c: Likewise.
2231         * inet/getprtname.c: Likewise.
2232         * inet/getprtname_r.c: Likewise.
2233         * inet/getrpcbyname.c: Likewise.
2234         * inet/getrpcbyname_r.c: Likewise.
2235         * inet/getrpcbynumber.c: Likewise.
2236         * inet/getrpcbynumber_r.c: Likewise.
2237         * inet/getrpcent.c: Likewise.
2238         * inet/getrpcent_r.c: Likewise.
2239         * inet/getaliasent.c: Likewise.
2240         * inet/getaliasent_r.c: Likewise.
2241         * inet/getaliasname.c: Likewise.
2242         * inet/getaliasname_r.c: Likewise.
2243         * nscd/getgrgid_r.c: Likewise.
2244         * nscd/getgrnam_r.c: Likewise.
2245         * nscd/gethstbyad_r.c: Likewise.
2246         * nscd/gethstbynm3_r.c: Likewise.
2247         * nscd/getpwnam_r.c: Likewise.
2248         * nscd/getpwuid_r.c: Likewise.
2249         * nscd/getsrvbynm_r.c: Likewise.
2250         * nscd/getsrvbypt_r.c: Likewise.
2251         * nscd/gai.c: Likewise.
2252
2253         * configure.in (build_nscd): New substituted variable, set
2254         by --disable-build-nscd and defaults to $use_nscd.
2255         * configure: Regenerated.
2256         * config.make.in (build-nscd): New substituted variable.
2257         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2258         Change conditional to require [$(build-nscd) = yes] as well.
2259         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2260
2261         [BZ# 13696]
2262         * configure.in (use_nscd): New substituted variable, set by
2263         --disable-nscd.  If enabled, define USE_NSCD.
2264         * configure: Regenerated.
2265         * config.h.in: Add USE_NSCD.
2266         * config.make.in (use-nscd): New substituted variable.
2267         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2268         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2269         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2270         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2271         (CFLAGS-getgrnam_r.c): Likewise.
2272         (CFLAGS-initgroups.c): Likewise.
2273         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2274         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2275         Variables removed.
2276         * inet/getnetgrent_r.c
2277         (nscd_setnetgrent): New function, broken out of ...
2278         (setnetgrent): ... here.  Call it.
2279         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2280         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2281         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2282         * nscd/Makefile (routines, aux): Move definitions after include of
2283         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2284         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2285         Conditionalize on [USE_NSCD].
2286         (is_nscd, nscd_init_cb): Likewise.
2287         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2288         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2289         * nss/nss_db/db-init.c: Likewise.
2290         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2291         [USE_NSCD].
2292         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2293         (make_request): Use it.
2294         (cache_valid_p): New function.
2295         (__check_pf): Use it.
2296         * NEWS: Add item for --disable-nscd.
2297
2298 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2299
2300         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2301         to support sed >= 4.2.1-20-ga9bf076.
2302         * configure: Regenerated.
2303
2304 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2305
2306         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2307         Conditionalize whole body on [IREL].
2308
2309 2012-08-22  Jeff Law <law@redhat.com>
2310
2311         [BZ #14505]
2312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2313         if the family is PF_UNSPEC.
2314
2315 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2316
2317         * Makerules (lib-version): Rename from V.
2318         (install-lib-nosubdir): Change V to lib-version.
2319
2320 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2321
2322         [BZ #14252]
2323         * powerpc32/power6/wcschr.c: New file.
2324         * powerpc32/power6/wcscpy.c: New file.
2325         * powerpc32/power6/wcsrchr.c: New file.
2326         * powerpc64/power6/wcschr.c: New file.
2327         * powerpc64/power6/wcscpy.c: New file.
2328         * powerpc64/power6/wcsrchr.c: New file.
2329
2330 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2331
2332         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2333         (two_way_short_needle): Use it.
2334         * string/strstr.c (AVAILABLE1_USES_J): Define.
2335         * string/strcasestr.c: Likewise.
2336
2337         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2338         array references.
2339         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2340
2341         [BZ #11607]
2342         * NEWS: Add an entry.
2343         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2344         define their defaults.
2345         (two_way_short_needle): Detect end-of-string on-the-fly.
2346         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2347         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2348         * string/bug-strcasestr1.c: New test.
2349         * string/Makefile: Run it.
2350
2351 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2352
2353         [BZ #11607]
2354         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2355         the first character.
2356
2357 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2358
2359         * csu/elf-init.c (__libc_csu_irel): Function removed.
2360         * csu/libc-start.c (apply_irel): New function.
2361         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2362
2363 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2364
2365         * sysdeps/unix/sysv/linux/kernel-features.h
2366         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2367         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2368         <kernel-features.h>.
2369         [__NR_fadvise64_64]: Make code unconditional.
2370         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2371         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2372         !__NR_fadvise64_64)]: Likewise.
2373         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2374         !__NR_fadvise64_64))]: Likewise.
2375         [__NR_fadvise64]: Make code unconditional.
2376         [!__NR_fadvise64]: Remove conditional code.
2377         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2378         <kernel-features.h>.
2379         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2380         unconditional.
2381         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2382         conditional code.
2383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2384         not include <kernel-features.h>.
2385         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2386         unconditional.
2387         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2388         conditional code.
2389         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2390         include <kernel-features.h>.
2391         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2392         unconditional.
2393         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2394         conditional code.
2395
2396 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2397
2398         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2399         slight instruction rearrangements per scrollpipe analysis.
2400         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2401
2402 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2403
2404         * manual/syslog.texi (syslog; vsyslog, closelog):
2405         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2406         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2407
2408         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2409         DSOCAPS to match condition on defining it.
2410
2411 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2412
2413         * sysdeps/unix/sysv/linux/kernel-features.h
2414         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2416         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2417         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2419         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2420         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2422         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2423         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2424
2425         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2426         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2427
2428         * sysdeps/unix/sysv/linux/kernel-features.h
2429         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2430         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2431         unconditional.
2432         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2433         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2434         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2435         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2436         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2437         Make code unconditional.
2438         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2439         (__mmap64) [!__NR_mmap2]: Likewise.
2440         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2441         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2442         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2443         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2444         [__NR_mmap2]: Make code unconditional.
2445         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2446         (__mmap64) [!__NR_mmap2]: Likewise.
2447
2448 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2449
2450         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2451
2452 2012-08-18  Andreas Jaeger  <aj@suse.de>
2453
2454         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2455
2456 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2457
2458         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2459         * include/unistd.h (__have_sock_cloexec): Likewise.
2460         (__have_pipe2): Likewise.
2461         (__have_dup3): Likewise.
2462
2463 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2464
2465         [BZ #9685]
2466         * include/unistd.h (__have_pipe2): Change define into an extern int.
2467         (__have_dup3): Likewise.
2468         * socket/have_sock_cloexec.c: Include fcntl.h.
2469         (__have_pipe2): New variable.
2470         (__have_dup3): Likewise.
2471
2472 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2473
2474         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2475
2476 2012-08-17  Marek Polacek  <polacek@redhat.com>
2477
2478         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2479         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2480
2481 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2482
2483         * configure.in: Add AC_SUBST for sysheaders.
2484         * configure: Regenerated.
2485         * config.make.in (sysheaders): New substituted variable.
2486
2487         * sysdeps/unix/mkfifo.c: Moved ...
2488         * sysdeps/posix/mkfifo.c: ... here.
2489         * sysdeps/unix/mkfifoat.c: Moved ...
2490         * sysdeps/posix/mkfifoat.c: ... here.
2491
2492         * sysdeps/unix/utime.c: Moved ...
2493         * sysdeps/posix/utime.c: ... here.
2494
2495         * sysdeps/unix/time.c: Moved ...
2496         * sysdeps/posix/time.c: ... here.
2497         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2498         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2499
2500         * sysdeps/unix/nice.c: Moved ...
2501         * sysdeps/posix/nice.c: ... here.
2502
2503         * sysdeps/unix/alarm.c: Moved ...
2504         * sysdeps/posix/alarm.c: ... here.
2505
2506         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2507
2508 2012-08-17  Jeff Law <law@redhat.com>
2509
2510         * intl/Makefile (codeset_mo): New variable.
2511         ($(codeset_mo)): New target.
2512         (tst-codeset.out): Depend on that.  Remove explicit rule.
2513         (tst-gettext3.out, tst-gettext5.out): Likewise.
2514         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2515         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2516         * intl/tst-codeset.sh: Remove.
2517         * intl/tst-gettext3.sh: Likewise.
2518         * intl/tst-gettext5.sh: Likewise.
2519
2520 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2521
2522         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2523         * sysdeps/unix/syscalls.list: ... here.
2524
2525         * sysdeps/posix/getaddrinfo.c
2526         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2527         (gaiconf_init, gaiconf_reload): Use them.
2528         [!_STATBUF_ST_NSEC]
2529         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2530         Define using time_t rather than struct timespec.
2531
2532         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2533         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2534         Macros removed.
2535         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2536         [!NO_THREADS].
2537         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2538         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2539         Likewise.
2540
2541         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2542         __libc_cleanup_push argument.
2543
2544         * bits/param.h: New file.
2545         * misc/sys/param.h: New file.
2546         * include/sys/param.h: New file.
2547         * misc/Makefile (headers): Add bits/param.h.
2548         * sysdeps/generic/sys/param.h: File removed.
2549         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2550         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2551         * sysdeps/mach/hurd/bits/param.h: New file.
2552         * sysdeps/mach/hurd/sys/param.h: File removed.
2553
2554         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2555         last change.
2556
2557         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2558         [_IO_MTSAFE_IO].
2559         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2560         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2561         New macros.
2562
2563         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2564         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2565         rather than -D_IO_MTSAFE_IO conditionally.
2566         * stdio-common/Makefile (CPPFLAGS): Likewise.
2567         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2568         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2569         Use $(libio-mtsafe).
2570         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2571         of -D_IO_MTSAFE_IO.
2572         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2573         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2574         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2575         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2576         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2577         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2578         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2579         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2580         (CFLAGS-fread_u_chk.c): Likewise.
2581         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2582         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2583         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2584         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2585         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2586         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2587         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2588         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2589         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2590
2591         * libio/Makefile: Test [$(libc-reentrant) = yes]
2592         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2593
2594         * Makeconfig
2595         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2596         * sysdeps/pthread/configure: File removed.
2597         * sysdeps/pthread/Makeconfig: New file.
2598         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2599         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2600
2601 2012-08-16  Gary Benson  <gbenson@redhat.com>
2602
2603         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2604         unmapping the first object in a namespace.
2605
2606 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2607
2608         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2609         (__internal_setnetgrent): ... this.  Add internal_function to
2610         definition.  Add libc_hidden_def.
2611         (setnetgrent): Update caller.
2612         (internal_endnetgrent): Renamed to ...
2613         (__internal_endnetgrent): ... this.  Add internal_function to
2614         definition.  Add libc_hidden_def.
2615         (endnetgrent): Update caller.
2616         (internal_getnetgrent_r): Renamed to ...
2617         (__internal_getnetgrent_r): ... this.  Add internal_function to
2618         definition.  Add libc_hidden_def.
2619         (__getnetgrent_r): Update caller.
2620         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2621
2622 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2623
2624         * stdlib/longlong.h: Update from GCC.
2625
2626 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2627
2628         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2629         on _QL, which is set by umul_ppmm but never used.
2630         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2631         variables, which are set by GMP macros but never used.
2632         * stdio-common/_itowa.c (_itowa): Likewise.
2633         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2634         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2635
2636 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2637
2638         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2639         struct La_sh_regs is not constant.
2640         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2641         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2642         and struct La_sparc64_regs are not constant.
2643
2644 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2645
2646         * sysdeps/unix/sysv/linux/kernel-features.h
2647         (__ASSUME_POSIX_TIMERS): Remove.
2648         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2649         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2650         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2651         Make code unconditional.
2652         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2653         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2654         Make code unconditional.
2655         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2656         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2657         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2658         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2659         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2660         Make code unconditional.
2661         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2662         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2663         (__libc_missing_posix_timers): Remove.
2664
2665 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2666
2667         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2668         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2669
2670         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2671
2672         * elf/dl-sym.c: Include <stdlib.h>.
2673
2674         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2675         constants, which avoids warnings in 32-bit builds.
2676
2677         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2678         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2679
2680         * misc/lseek.c: File moved to ...
2681         * io/lseek.c: ... here.
2682
2683         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2684
2685         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2686         shifting LEN more than 31 bits at once.
2687
2688 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2689
2690         [BZ #14195]
2691         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2692         segmentation fault for a case of two empty input strings.
2693         * string/test-strncasecmp.c (check1): Renamed to...
2694         (bz12205): ...this.
2695         (bz14195): Add new testcase for two empty input strings and N > 0.
2696         (test_main): Call new testcase, adapt for renamed function.
2697
2698 2012-08-15  Andreas Jaeger  <aj@suse.de>
2699
2700         [BZ #14090]
2701         * crypt/md5test2.c: New test, based on test supplied by Serge
2702         Belyshev <belyshev@depni.sinp.msu.ru>.
2703         * crypt/Makefile (xtests): Add md5test-giant..
2704         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2705
2706 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         [BZ #14090]
2709         * crypt/md5.c (md5_process_block): Don't assume the buffer
2710         length is less than 2**32.
2711         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2712         length is less than 2**64.
2713
2714 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2715
2716         * string/str-two-way.h: Include <sys/param.h>.
2717         (MAX): Macro removed.
2718
2719         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2720         Move #define and #undef of memmove to just before and after
2721         including <string.h>.
2722
2723         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2724         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2725         and after including <string.h>.  Move declarations of
2726         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2727         to before #include "string/memmove.c".
2728
2729         * include/dirent.h: Declare __getdirentries.
2730
2731         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2732         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2733
2734 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2735
2736         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2737         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2738         * sysdeps/i386/configure: Regenerated.
2739         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2740         STABS_CURRENT_FILE, and STABS_FUN.
2741         (END): Remove call to STABS_FUN_END.
2742         (STABS_CURRENT_FILE1): Delete.
2743         (STABS_CURRENT_FILE): Likewise.
2744         (STABS_FUN): Likewise.
2745         (STABS_FUN_END): Likewise.
2746         (STABS_FUN2): Likewise.
2747         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2748         * sysdeps/x86_64/configure: Regenerated.
2749
2750 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2751
2752         * elf/dl-open.c: Include <atomic.h>.
2753         * elf/dl-lookup.c: Likewise.
2754
2755 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2756
2757         * sysdeps/unix/sysv/linux/kernel-features.h
2758         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2759         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2760         unconditionally.
2761         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2762         unconditionally.
2763         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2764         condition on __ASSUME_CLONE_THREAD_FLAGS.
2765
2766 2012-08-14  Andreas Jaeger  <aj@suse.de>
2767
2768         * sysdeps/i386/fpu/libm-test-ulps: Update.
2769
2770 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2771
2772         * include/atomic.h (atomic_exchange_and_add): Split into ...
2773         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2774         New atomic macros.
2775
2776 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2777
2778         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2779
2780 2012-08-13  Jeff Law <law@redhat.com>
2781
2782         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2783         null byte in the output string.
2784
2785 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2786
2787         * sysdeps/unix/sysv/linux/kernel-features.h
2788         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2789         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2790         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2791         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2792         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2793         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2794         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2795
2796 2012-08-09  Jeff Law <law@redhat.com>
2797
2798         [BZ #13939]
2799         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2800         When avoid_arena is set, don't retry in the that arena.  Pick the
2801         next one, whatever it might be.
2802         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2803         (arena_lock): Pass in new parameter to arena_get2.
2804         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2805         arena_get2.
2806         (__libc_malloc): Unify retrying after main arena failure with
2807         __libc_memalign version.
2808         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2809
2810 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2811
2812         [BZ #14166]
2813         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2814         to __redirect_strstr.
2815         (__strstr_sse42): Use typeof __redirect_strstr.
2816         (__strstr_ia32): Likewise.
2817         (__libc_strstr): New prototype.
2818         (strstr): Renamed to ...
2819         (__libc_strstr): This.
2820         (strstr): New strong alias of __libc_strstr.
2821         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2822         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2823         __redirect_time.
2824         Include <time.h>.
2825         (__libc_time): New prototype.
2826         (time_ifunc): Replace time with __libc_time.
2827         (time): New strong alias and hidden definition of __libc_time.
2828         (__GI_time): Remove strong alias.
2829         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2830         Include <stddef.h>.
2831         (memmove): Redefined to __redirect_memmove.
2832         (__memmove_sse2): Use typeof __redirect_memmove.
2833         (__memmove_ssse3): Likewise.
2834         (__memmove_ssse3_back): Likewise.
2835         (__libc_memmove): New prototype.
2836         (memmove): Renamed to ...
2837         (__libc_memmove): This.
2838         (memmove): New strong alias of __libc_memmove.
2839
2840 2012-08-08  Mark Salter  <msalter@redhat.com>
2841
2842         * elf/elf.h
2843         (R_MN10300_TLS_GD): Define.
2844         (R_MN10300_TLS_LD): Likewise.
2845         (R_MN10300_TLS_LDO): Likewise.
2846         (R_MN10300_TLS_GOTIE): Likewise.
2847         (R_MN10300_TLS_IE): Likewise.
2848         (R_MN10300_TLS_LE): Likewise.
2849         (R_MN10300_TLS_DTPMOD): Likewise.
2850         (R_MN10300_TLS_DTPOFF): Likewise.
2851         (R_MN10300_TLS_TPOFF): Likewise.
2852         (R_MN10300_SYM_DIFF): Likewise.
2853         (R_MN10300_ALIGN): Likewise.
2854         (R_MN10300_NUM): Update.
2855
2856 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2857
2858         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2859         Remove.
2860
2861 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2862
2863         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2864
2865         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2866         sysdeps/unix -> sysdeps/posix move.
2867         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2868
2869 2012-08-07      Allan McRae     <allan@archlinux.org>
2870
2871         [BZ #14303]
2872         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2873         (SUNOS_CPP): Likewise.
2874         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2875         not found.
2876         (open_input): Call CPP using execvp.
2877
2878 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2879
2880         * sysdeps/unix/sysv/linux/kernel-features.h
2881         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2882         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2883         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2884         (__ASSUME_WAITID_SYSCALL): Likewise.
2885         * sysdeps/unix/sysv/linux/dl-execstack.c
2886         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2887         code unconditional.
2888         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2889         conditional code.
2890         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2891         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2892         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2893         code.
2894         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2895         unconditional.
2896         [__ASSUME_WAITID_SYSCALL]: Likewise.
2897         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2898
2899 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2900
2901         * sysdeps/unix/closedir.c: Renamed to ...
2902         * sysdeps/posix/closedir.c: ... here.
2903         * sysdeps/unix/dirfd.c: Renamed to ...
2904         * sysdeps/posix/dirfd.c: ... here.
2905         * sysdeps/unix/dirstream.h: Renamed to ...
2906         * sysdeps/posix/dirstream.h: ... here.
2907         * sysdeps/unix/fdopendir.c: Renamed to ...
2908         * sysdeps/posix/fdopendir.c: ... here.
2909         * sysdeps/unix/opendir.c: Renamed to ...
2910         * sysdeps/posix/opendir.c: ... here.
2911         * sysdeps/unix/readdir.c: Renamed to ...
2912         * sysdeps/posix/readdir.c: ... here.
2913         * sysdeps/unix/readdir_r.c: Renamed to ...
2914         * sysdeps/posix/readdir_r.c: ... here.
2915         * sysdeps/unix/rewinddir.c: Renamed to ...
2916         * sysdeps/posix/rewinddir.c: ... here.
2917         * sysdeps/unix/seekdir.c: Renamed to ...
2918         * sysdeps/posix/seekdir.c: ... here.
2919         * sysdeps/unix/telldir.c: Renamed to ...
2920         * sysdeps/posix/telldir.c: ... here.
2921         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2922         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2923         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2924         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2925
2926         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2927         * bits/fcntl.h: ... here.
2928
2929         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2930         not 0.
2931         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2932         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2933         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2934         (struct flock): Move l_start, l_len to the beginning.
2935         Use __pid_t for l_pid.
2936         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2937         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2938         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2939         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2940         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2941         [__USE_LARGEFILE64] (struct flock64): New type.
2942         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2943
2944         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2945         * bits/dirent.h: ... here.
2946
2947         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2948         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2949
2950 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2951
2952         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2953         Change from 2.6.0 to 2.6.16.
2954         * sysdeps/unix/sysv/linux/configure: Regenerated.
2955         * sysdeps/unix/sysv/linux/kernel-features.h
2956         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2957         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2958         version.
2959         (__ASSUME_UTIMES): Likewise.
2960         (__ASSUME_CLONE_STOPPED): Remove.
2961         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2962         architectures, not kernel version.
2963         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2964         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2965         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2966         (__ASSUME_WAITID_SYSCALL): Likewise.
2967         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2968         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2969         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2970         refer to older versions.
2971
2972 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2973
2974         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2975         Define alphasort64 as an alias.
2976         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2977         Define versionsort64 as an alias.
2978         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2979         Define scandir64 as an alias.
2980         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2981         Define scandirat64 as an alias.
2982         * dirent/alphasort64.c (alphasort64):
2983         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2984         * dirent/versionsort64.c: Likewise.
2985         * dirent/scandir64.c: Likewise.
2986         * dirent/scandirat64.c: Likewise.
2987         * sysdeps/wordsize-64/alphasort.c: File removed.
2988         * sysdeps/wordsize-64/alphasort64.c: File removed.
2989         * sysdeps/wordsize-64/scandir.c: File removed.
2990         * sysdeps/wordsize-64/scandir64.c: File removed.
2991         * sysdeps/wordsize-64/scandirat.c: File removed.
2992         * sysdeps/wordsize-64/scandirat64.c: File removed.
2993         * sysdeps/wordsize-64/versionsort.c: File removed.
2994         * sysdeps/wordsize-64/versionsort64.c: File removed.
2995         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2996         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2998         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2999         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3000         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3001         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3002         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3003
3004         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3005         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3006         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3007         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3008         [defined __arch64__ || defined __sparcv9]
3009         (__INO_T_MATCHES_INO64_T): New macro.
3010         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3011         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3012         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3013         * sysdeps/unix/sysv/linux/bits/dirent.h
3014         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3015         (_DIRENT_MATCHES_DIRENT64): New macro.
3016
3017         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3018         Define lockf64 as an alias.
3019         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3020         Define fseeko64 as an alias.
3021         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3022         Define ftello64 as an alias.
3023         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3024         Define _IO_fgetpos64 and fgetpos64 as aliases.
3025         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3026         Define _IO_fsetpos64 and fsetpos64 as aliases.
3027         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3028         Conditionalize body on this.
3029         * libio/fseeko64.c: Likewise.
3030         * libio/ftello64.c: Likewise.
3031         * libio/iofgetpos64.c: Likewise.
3032         * libio/iofsetpos64.c: Likewise.
3033         * sysdeps/wordsize-64/lockf.c: File removed.
3034         * sysdeps/wordsize-64/lockf64.c: File removed.
3035         * sysdeps/wordsize-64/fseeko.c: File removed.
3036         * sysdeps/wordsize-64/fseeko64.c: File removed.
3037         * sysdeps/wordsize-64/ftello.c: File removed.
3038         * sysdeps/wordsize-64/ftello64.c: File removed.
3039         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3040         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3041         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3042         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3043         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3044         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3045         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3046         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3047         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3048         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3049         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3050         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3051         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3052         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3053
3054         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3055         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3056         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3057         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3058         [defined __arch64__ || defined __sparcv9]
3059         (__OFF_T_MATCHES_OFF64_T): New macro.
3060         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3061         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3062         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3063         (__OFF_T_MATCHES_OFF64_T): New macro.
3064
3065 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         * stdlib/secure-getenv.c (__secure_getenv): Replace
3068         GLIBC_2_16 with GLIBC_2_17.
3069
3070 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3073         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3074
3075 2012-08-03  David S. Miller  <davem@davemloft.net>
3076
3077         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3078
3079 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3080
3081         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3082         Remove.
3083         (__ASSUME_CORRECT_SI_PID): Likewise.
3084         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3085         (__ASSUME_TMPFS_NAME): Likewise.
3086         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3087         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3088         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3089         (HAVE_AUX_SECURE): Make definition unconditional.
3090         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3091         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3092
3093 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3094
3095         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3096         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3097         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3098         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3099         __eloop_threshold instead of SYMLOOP_MAX.
3100
3101         * sysdeps/generic/eloop-threshold.h: New file.
3102         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3103         of MAXSYMLINKS.
3104         * elf/chroot_canon.c (chroot_canon): Likewise.
3105
3106 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3107
3108         [BZ #13717]
3109         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3110         Change to 2.6.0 everywhere.
3111         * sysdeps/unix/sysv/linux/configure: Regenerated.
3112         * sysdeps/unix/sysv/linux/kernel-features.h
3113         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3114         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3115         kernel versions.
3116         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3117         (__ASSUME_FUTEX_REQUEUE): Remove.
3118         (__ASSUME_STATFS64): Define unconditionally.
3119         (__ASSUME_AT_SECURE): Likewise.
3120         (__ASSUME_CORRECT_SI_PID): Likewise.
3121         (__ASSUME_TGKILL): Define without depending on kernel version for
3122         i386.
3123         (__ASSUME_UTIMES): Likewise.
3124         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3125         kernel version.
3126         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3127         (__ASSUME_TMPFS_NAME): Likewise.
3128         * README: Update reference to Linux kernel versions.
3129
3130 2012-08-02  Marek Polacek  <polacek@redhat.com>
3131
3132         [BZ# 14150]
3133         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3134         libc_cv_asm_type_prefix with %.
3135         * configure: Regenerated.
3136         * include/libc-symbols.h: Remove comment about
3137         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3138         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3139         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3140         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3141         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3142         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3143         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3144         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3145         * elf/tst-unique2mod1.c: Likewise.
3146         * elf/tst-unique1mod2.c: Likewise.
3147         * elf/tst-unique1mod1.c: Likewise.
3148         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3149         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3150         Replace ASM_TYPE_DIRECTIVE with .type.
3151         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3152         * sysdeps/i386/sysdep.h: Likewise.
3153         * sysdeps/x86_64/sysdep.h: Likewise.
3154         * sysdeps/sh/sysdep.h: Likewise.
3155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3156         Do not define ASM_TYPE_DIRECTIVE.
3157         * sysdeps/powerpc/sysdep.h: Likewise.
3158         * sysdeps/powerpc/powerpc32/sysdep.h:
3159         Replace ASM_TYPE_DIRECTIVE with .type.
3160         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3161         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3162         * sysdeps/i386/fpu/e_powf.S: Likewise.
3163         * sysdeps/i386/fpu/e_expl.S: Likewise.
3164         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3165         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3166         * sysdeps/i386/fpu/e_pow.S: Likewise.
3167         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3168         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3169         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3170         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3171         * sysdeps/i386/fpu/e_log2.S: Likewise.
3172         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3173         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3174         * sysdeps/i386/fpu/e_powl.S: Likewise.
3175         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3176         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3177         * sysdeps/i386/fpu/e_logl.S: Likewise.
3178         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3179         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3180         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3181         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3182         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3183         * sysdeps/i386/fpu/e_log.S: Likewise.
3184         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3185         * sysdeps/i386/fpu/e_logf.S: Likewise.
3186         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3187         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3188         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3189         * sysdeps/i386/fpu/e_log10.S: Likewise.
3190         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3191         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3192         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3193         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3194         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3195         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3196         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3197         * sysdeps/i386/i686/strtok.S: Likewise.
3198         * sysdeps/i386/i386-mcount.S: Likewise.
3199         * sysdeps/i386/strtok.S: Likewise.
3200         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3201         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3202         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3203         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3204         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3205         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3206         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3207         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3208         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3209         * sysdeps/x86_64/_mcount.S: Likewise.
3210         * sysdeps/x86_64/strtok.S: Likewise.
3211         * sysdeps/sh/_mcount.S: Likewise.
3212
3213 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3214
3215         * libio/iofopen.c: Include <fcntl.h>.
3216         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3217         (_IO_fopen64, fopen64): Define as aliases.
3218         * libio/iofopen64.c: Include <fcntl.h>.
3219         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3220         Conditionalize body on this.
3221         * sysdeps/wordsize-64/iofopen.c: File removed.
3222         * sysdeps/wordsize-64/iofopen64.c: File removed.
3223
3224 2012-08-01  Marek Polacek  <polacek@redhat.com>
3225
3226         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3227         Use dlfcn directly instead of a variable.
3228         (binfmt-subdir): Do not define.
3229         (dlfcn): Likewise.
3230
3231 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3232
3233         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3234         Remove all definitions.
3235         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3236         <kernel-features.h>.
3237         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3238         (miss_F_GETOWN_EX): Remove all definitions.
3239         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3240         macro definition.
3241         [!__ASSUME_FCNTL64]: Remove conditional code.
3242         [__ASSUME_FCNTL64]: Make code unconditional.
3243         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3244         <kernel-features.h>.
3245         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3246         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3247         (lockf64) [__NR_fcntl64]: Make code unconditional.
3248         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3249
3250         * sysdeps/unix/sysv/linux/kernel-features.h
3251         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3252         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3253         Make code unconditional.
3254         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3255         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3257         [__NR_vfork]: Make code unconditional.
3258         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3259         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3261         [__NR_vfork]: Make code unconditional.
3262         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3263         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3264
3265 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3266
3267         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3268         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3269
3270         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3271         Define mkstemp64 as an alias.
3272         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3273         Define mkstemps64 as an alias.
3274         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3275         Define mkostemp64 as an alias.
3276         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3277         Define mkostemps64 as an alias.
3278         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3279         Conditionalize body on this.
3280         * misc/mkostemp64.c: Likewise.
3281         * misc/mkostemps64.c: Likewise.
3282         * misc/mkstemps64.c: Likewise.
3283         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3284         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3285         * sysdeps/wordsize-64/mkostemp.c: File removed.
3286         * sysdeps/wordsize-64/mkstemp.c: File removed.
3287         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3288         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3289         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3290         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3291
3292         [BZ #14138]
3293         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3294         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3295         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3296         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3297
3298         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3299         compat_symbol macros from <shlib-compat.h> rather than the underlying
3300         default_symbol_version and symbol_version macros, so that DEFAULT
3301         lines in shlib-versions are respected.
3302         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3303
3304 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3305
3306         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3307         Declare with warn_unused_result.
3308         (setgid, setregid, setegid, setresgid): Likewise.
3309         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3310         Likewise.
3311         * WUR-REPORT: Remove set*id functions.
3312
3313 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3314
3315         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3316
3317 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3318
3319         * include/sys/socket.h (__libc_accept, __libc_accept4):
3320         Add attribute_hidden.
3321         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3322
3323         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3324         use of PTR_MANGLE.
3325         * inet/getnetgrent_r.c (setup): Likewise.
3326
3327         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3328
3329 2012-07-31  David S. Miller  <davem@davemloft.net>
3330
3331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3332
3333 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3334
3335         [BZ #13629]
3336         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3337         value between 1.0 and 2.0 and smaller part has absolute value less
3338         than 1.0.
3339         * math/s_clog10.c (__clog10): Likewise.
3340         * math/s_clog10f.c (__clog10f): Likewise.
3341         * math/s_clog10l.c (__clog10l): Likewise.
3342         * math/s_clogf.c (__clogf): Likewise.
3343         * math/s_clogl.c (__clogl): Likewise.
3344         * math/libm-test.inc (clog_test): Add more tests.
3345         (clog10_test): Likewise.
3346         * sysdeps/i386/fpu/libm-test-ulps: Update.
3347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3348
3349 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3350
3351         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3352         Exit with zero in case no suitable GID is found, and write a
3353         message to standard error.
3354
3355 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3356
3357         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3358         rather than to 1.
3359         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3360         (MAXPATHLEN): Removed.
3361         (NOGROUP, NODEV): New macros.
3362         (setbit, clrbit, isset, isclr): New macros.
3363         (howmany, roundup, powerof2): New macros.
3364         (DEV_BSIZE): New macro.
3365
3366         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3367         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3368
3369         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3370         definition on [!__NO_LONG_DOUBLE_MATH].
3371
3372         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3373         PTR_MANGLE and PTR_DEMANGLE.
3374
3375         * socket/accept4.c (accept4): Rename to __libc_accept4.
3376         Define accept4 as a weak alias.
3377
3378         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3379         on [_DIRENT_HAVE_D_TYPE].
3380         * io/ftw.c (ftw_dir): Likewise.
3381
3382         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3383
3384         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3385
3386         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3387         Use the BSD numbers rather than the arbitrary ones we had.
3388         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3389         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3390         (SIGXCPU, SIGXFSZ): New macros.
3391         (_NSIG): Now 32.
3392
3393         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3394         initializer on [_LIBC_REENTRANT].
3395
3396         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3397         definitions inside [_POSIX_MAPPED_FILES].
3398
3399         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3400
3401         * dirent/opendir.c: Include <fcntl.h>.
3402
3403         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3404         (__libc_getspecific): Likewise.
3405         (__libc_key_create): Likewise.
3406
3407         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3408         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3409         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3410         (tmpfile64): Define as alias.
3411         * sysdeps/wordsize-64/tmpfile.c: File removed.
3412         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3413         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3414         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3415
3416         * stdio-common/vfscanf.c: Include <stdbool.h>.
3417         * nss/makedb.c: Likewise.
3418         * stdio-common/_i18n_number.h: Likewise.
3419         * argp/argp-help.c: Likewise.
3420         * posix/wordexp.c: Likewise.
3421         * sysdeps/posix/spawni.c: Likewise.
3422         * nss/nss_files/files-initgroups.c: Likewise.
3423         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3424         * nss/nss_files/files-initgroups.c: Likewise.
3425         * nss/nss_db/db-netgrp.c: Likewise.
3426         * nss/nss_db/db-initgroups.c: Likewise.
3427         * io/fchmodat.c: Include <sys/stat.h>.
3428
3429         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3430         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3431
3432         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3433         [HAVE_MMAP].
3434
3435         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3436         Add multiple inclusion protection.
3437
3438 2012-07-27  David S. Miller  <davem@davemloft.net>
3439
3440         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3441
3442 2012-07-27  Gary Benson  <gbenson@redhat.com>
3443
3444         [BZ #14298]
3445         * elf/rtld.c: Include <stap-probe.h>.
3446         (dl_main): Added static probes "init_start" and "init_complete".
3447         * elf/dl-load.c: Include <stap-probe.h>.
3448         (lose): Take new parameter "nsid".
3449         Added static probe "map_failed".
3450         (_dl_map_object_from_fd): Pass namespace id to lose.
3451         Added static probe "map_start".
3452         (open_verify): Pass namespace id to lose.
3453         * elf/dl-open.c: Include <stap-probe.h>.
3454         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3455         and "reloc_complete".
3456         * elf/dl-close.c: Include <stap-probe.h>.
3457         (_dl_close_worker): Added static probes "unmap_start" and
3458         "unmap_complete".
3459         * elf/rtld-debugger-interface.txt: New file documenting the above.
3460
3461 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3462
3463         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3464         rather than a string variable.
3465         * sunrpc/rpc_main.c (h_output): Likewise.
3466         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3467
3468 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3469
3470         * inet/check_native.c: New file.
3471
3472 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3473
3474         [BZ #13629]
3475         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3476         if larger part has absolute value 1.0.
3477         * math/s_clog10.c (__clog10): Likewise.
3478         * math/s_clog10f.c (__clog10f): Likewise.
3479         * math/s_clog10l.c (__clog10l): Likewise.
3480         * math/s_clogf.c (__clogf): Likewise.
3481         * math/s_clogl.c (__clogl): Likewise.
3482         * math/libm-test.inc (clog_test): Add more tests.
3483         (clog10_test): Likewise.
3484         * sysdeps/i386/fpu/libm-test-ulps: Update.
3485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3486
3487         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3488         (pltexit): Likewise.
3489         (La_regs): Likewise.
3490         (La_retval): Likewise.
3491         (int_retval): Likewise.
3492         Update #error for removed macros to refer only to definitions in
3493         tst-audit.h.
3494         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3495         macro.
3496         (pltexit): Likewise.
3497         (La_regs): Likewise.
3498         (La_retval): Likewise.
3499         (int_retval): Likewise.
3500         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3501         macro.
3502         (pltexit): Likewise.
3503         (La_regs): Likewise.
3504         (La_retval): Likewise.
3505         (int_retval): Likewise.
3506         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3507         macro.
3508         (pltexit): Likewise.
3509         (La_regs): Likewise.
3510         (La_retval): Likewise.
3511         (int_retval): Likewise.
3512         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3513         macro.
3514         (pltexit): Likewise.
3515         (La_regs): Likewise.
3516         (La_retval): Likewise.
3517         (int_retval): Likewise.
3518         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3519         macro.
3520         (pltexit): Likewise.
3521         (La_regs): Likewise.
3522         (La_retval): Likewise.
3523         (int_retval): Likewise.
3524         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3525         macro.
3526         (pltexit): Likewise.
3527         (La_regs): Likewise.
3528         (La_retval): Likewise.
3529         (int_retval): Likewise.
3530         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3531         macro definitions in tst-audit.h.
3532         * sysdeps/i386/tst-audit.h: New file.
3533         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3534         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3535         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3536         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3537         * sysdeps/sh/tst-audit.h: Likewise.
3538         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3539         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3540         * sysdeps/x86_64/tst-audit.h: Likewise.
3541
3542 2012-07-26  Andreas Jaeger  <aj@suse.de>
3543
3544         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3545         ptrace.
3546
3547         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3548         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3549         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3550         PTRACE_O_MASK.
3551         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3552         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3553         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3554
3555         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3556         value.
3557
3558         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3559         _sigsys.
3560         (si_call_addr, si_syscall, si_arch): Define new macro.
3561         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3562         _sigsys.
3563         (si_call_addr, si_syscall, si_arch): Define new marcro.
3564         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3565         _sigsys.
3566         (si_call_addr, si_syscall, si_arch): Define new macro.
3567         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3568         _sigsys.
3569         (si_call_addr, si_syscall, si_arch): Define new macro.
3570
3571 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3572
3573         [BZ #13717]
3574         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3575         Change to 2.4.21 where previously 2.4.1.
3576         * sysdeps/unix/sysv/linux/configure: Regenerated.
3577         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3578         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3579         Linux kernel version.
3580         (__ASSUME_STD_AUXV): Remove.
3581         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3582         kernel version.
3583         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3584         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3585         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3586         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3587         (__ASSUME_NETLINK_SUPPORT): Likewise.
3588         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3589         (__no_netlink_support): Remove conditional definition.
3590         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3591         Remove.
3592         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3593         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3594         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3595         (if_nameindex_ioctl): Remove.
3596         (if_nameindex_netlink): Do not handle __no_netlink_support.
3597         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3598         code.
3599         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3600         Remove conditional code.
3601         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3602         code.
3603         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3604         unconditional.
3605         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3606         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3607         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3608         Remove.
3609         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3610         [!__ASSUME_STD_AUXV]: Remove conditional code.
3611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3612         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3613         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3615         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3616         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3617         code.
3618         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3620         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3621         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3622         conditional code.
3623         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3625         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3626         code.
3627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3628         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3629         conditional code.
3630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3631         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3632         code unconditional.
3633         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3634         conditional code.
3635         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3636         unconditional.
3637         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3638         conditional code.
3639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3640         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3641         unconditional.
3642         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3643         conditional code.
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3645         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3646         code unconditional.
3647         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3648         conditional code.
3649         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3650         unconditional.
3651         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3652         conditional code.
3653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3654         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3655         code unconditional.
3656         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3657         conditional code.
3658         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3659         unconditional.
3660         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3661         conditional code.
3662
3663 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3664
3665         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3666         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3667         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3668         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3669         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3670         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3671         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3672         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3673         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3674         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3675         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3676         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3677         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3678         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3679         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3680         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3681         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3682         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3683         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3684         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3685         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3686         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3687         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3688
3689 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3690
3691         * Versions.def: Add GLIBC_2.17.
3692         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3693         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3694         Introduce __libc_secure_getenv.
3695         * stdlib/Versions (2.17): Add secure_getenv
3696         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3697         * stdlib/secure-getenv.c: Rename __secure_getenv to
3698         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3699         symbol __secure_getenv for GLIBC_2.0.
3700         * stdlib/tst-secure-getenv.c: New.
3701         * stdlib/Makefile (tests): Add testcase.
3702         * manual/startup.texi (Environment Access): Document
3703         secure_getenv.
3704         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3705         __libc_secure_getenv.
3706         * inet/ruserpass.c (ruserpass): Likewise.
3707         * malloc/mtrace.c (mtrace): Likewise.
3708         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3709         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3710         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3711         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3712         HAVE_SECURE_GETENV.
3713         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3714         __secure_getenv to __libc_secure_getenv.
3715         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3717         Likewise.
3718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3719         Likewise.
3720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3722         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3724         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3725         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3726         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3727
3728 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3729
3730         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3731         (struct La_i86_retval): Likewise.
3732         (struct La_x86_64_regs): Likewise.
3733         (struct La_x86_64_retval): Likewise.
3734         (struct La_x32_regs): Likewise.
3735         (struct La_x32_retval): Likewise.
3736         (struct La_ppc32_regs): Likewise.
3737         (struct La_ppc32_retval): Likewise.
3738         (struct La_ppc64_regs): Likewise.
3739         (struct La_ppc64_retval): Likewise.
3740         (struct La_sh_regs): Likewise.
3741         (struct La_sh_retval): Likewise.
3742         (struct La_s390_32_regs): Likewise.
3743         (struct La_s390_32_retval): Likewise.
3744         (struct La_s390_64_regs): Likewise.
3745         (struct La_s390_64_retval): Likewise.
3746         (struct La_sparc32_regs): Likewise.
3747         (struct La_sparc32_retval): Likewise.
3748         (struct La_sparc64_regs): Likewise.
3749         (struct La_sparc64_retval): Likewise.
3750         (struct audit_ifaces): Remove architecture-specific pltenter and
3751         pltexit members.
3752         * sysdeps/i386/ldsodefs.h: New file.
3753         * sysdeps/powerpc/ldsodefs.h: Likewise.
3754         * sysdeps/s390/ldsodefs.h: Likewise.
3755         * sysdeps/sh/ldsodefs.h: Likewise.
3756         * sysdeps/sparc/ldsodefs.h: Likewise.
3757         * sysdeps/x86_64/ldsodefs.h: Likewise.
3758
3759 2012-07-25  Marek Polacek  <polacek@redhat.com>
3760
3761         [BZ #6808]
3762         * math/libm-test.inc (yn_test): Add another test.
3763         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3764         to ERANGE when the result is +-Inf.
3765         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3766         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3767         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3768         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3769
3770 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3771
3772         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3773         equal to 0.
3774         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3775         clock_t.
3776         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3777
3778 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3779
3780         * configure.in <sysdeps resolving>: Correct printing
3781         Implies_before.
3782         * configure: Regenerate.
3783
3784 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3785
3786         * math/w_ilogb.c: Include <limits.h>.
3787         * math/w_ilogbl.c: Likewise.
3788
3789 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3790
3791         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3792         va_copy.  Document allowing for unavailable va_copy only as
3793         pre-C99 compatibility.
3794         * manual/string.texi (Copying and Concatenation): Use va_copy
3795         instead of __va_copy in concat example.
3796
3797 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3798
3799         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3800         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3801         it if not null.
3802
3803         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3804         with O_NOLINK passed to __file_name_lookup.
3805
3806         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3807         with O_NOLINK passed to __file_name_lookup.
3808
3809         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3810         negative N or less than NGIDS.
3811
3812         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3813         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3814         enough.  Use memcpy instead of strncpy.
3815
3816 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3817
3818         * elf/Makefile (check-data): Remove.
3819         (localplt.data): New vpath directive.
3820         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3821         instead of $(check-data).
3822         * scripts/data/localplt-generic.data: Move to ...
3823         * sysdeps/generic/localplt.data: ... here.
3824         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3825         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3826         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3828         ... here.
3829         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3831         ... here.
3832         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3834         ... here.
3835         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3837         ... here.
3838         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3839         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3840         ... here.
3841         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3842         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3843         ... here.
3844
3845 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3846
3847         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3848         PPC32 and PPC64 files.
3849         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3850         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3851
3852 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3853
3854         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3855         __makecontext_ret to ...
3856         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3857         ... here and call exit if uc_link is NULL.  New file.
3858         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3859         __makecontext_ret.S.
3860         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3861         __makecontext_ret to ...
3862         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3863         ... here and call exit if uc_link is NULL.  New file.
3864         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3865         __makecontext_ret.S.
3866
3867 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3868
3869         * elf/elf.h (R_390_IRELATIVE): New definition.
3870         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3871         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3872         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3873         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3874         (elf_machine_lazy_rel): Likewise.
3875         * sysdeps/s390/dl-irel.h: New file.
3876         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3877         * sysdeps/s390/s390-64/memset.S: New asm code.
3878         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3879         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3880         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3881         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3882         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3883         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3884         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3885         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3886         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3887         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3888         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3889         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3890         * sysdeps/s390/s390-32/memset.S: New asm code.
3891         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3892
3893 2012-07-17  Marek Polacek  <polacek@redhat.com>
3894
3895         [BZ #14349]
3896         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3897         * sysdeps/s390/s390-64/configure.in: Likewise.
3898         * sysdeps/sparc/configure.in: Likewise.
3899         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3900         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3901         * sysdeps/i386/configure.in: Likewise.
3902         * sysdeps/x86_64/configure.in: Likewise.
3903         * sysdeps/sh/configure.in: Likewise.
3904         * sysdeps/s390/s390-32/configure: Regenerated.
3905         * sysdeps/s390/s390-64/configure: Likewise.
3906         * sysdeps/x86_64/configure: Likewise.
3907         * sysdeps/sh/configure: Likewise.
3908         * sysdeps/powerpc/powerpc64/configure: Likewise.
3909         * sysdeps/powerpc/powerpc32/configure: Likewise.
3910         * sysdeps/sparc/configure: Likwise.
3911         * sysdeps/i386/configure: Likewise.
3912
3913         * elf/dl-open.c: Comment fixes.
3914
3915 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3916
3917         * Makefile [CXX] (check-data): Remove.
3918         [CXX] (c++-types.data): New vpath directive.
3919         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3920         vpath.  Do not allow for C++ type data being missing.
3921         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3922         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3923         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3924         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3925         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3926         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3927         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3929         ... here.
3930         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3932         ... here.
3933         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3935         ... here.
3936         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3938         ... here.
3939         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3941         ... here.
3942         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3944         ... here.
3945         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3947         ... here.
3948         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3949         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3950
3951         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3952         definitions to architecture-specific files.
3953         (TLS_IE): Likewise.
3954         (TLS_LD): Likewise.
3955         (TLS_GD): Likewise.
3956         * sysdeps/i386/tls-macros.h: New file.
3957         * sysdeps/powerpc/tls-macros.h: Likewise.
3958         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3959         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3960         * sysdeps/sh/tls-macros.h: Likewise.
3961         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3962         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3963         * sysdeps/x86_64/tls-macros.h: Likewise.
3964
3965 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3966
3967         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3968         zero value for regular exit case.
3969
3970         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3971         (__start_context): Preserve zero value for regular exit case.
3972
3973 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3974             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3975
3976         * manual/setjmp.texi (setcontext): Clarify normal process
3977         termination when uc_link is the null pointer.
3978         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3979         exit call.
3980
3981 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3982
3983         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3984         preprocessor.  Test for each exception mask separately.
3985
3986 2012-07-16  Andreas Jaeger  <aj@suse.de>
3987
3988         * po/ru.po: Update from translation team.
3989
3990 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3991
3992         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3993         equal to 0.
3994         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3995         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3996         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3997         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3998         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3999
4000 2012-07-13  Andreas Jaeger  <aj@suse.de>
4001
4002         * po/fr.po: Update from translation team.
4003
4004 2012-07-12  Marek Polacek  <polacek@redhat.com>
4005
4006         [BZ #14173]
4007         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4008         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4009         loop condition.
4010
4011 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4012
4013         [BZ #13717]
4014         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4015         Change to 2.4.1 where previously 2.4.0.
4016         * sysdeps/unix/sysv/linux/configure: Regenerated.
4017         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4018         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4019         version.
4020         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4021         (__ASSUME_AT_CLKTCK): Remove.
4022         (__ASSUME_AT_PAGESIZE): Likewise.
4023         (__ASSUME_AT_XID): Likewise.
4024         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4025         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4026         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4027         unconditionally.
4028         (HAVE_AUX_PAGESIZE): Likewise.
4029         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4030         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4031         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4032
4033 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4034
4035         [BZ #14307]
4036         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4037         the temporary buffer used to invoke __gethostbyname2_r,
4038         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4039         host_data / struct gaih_addrtuple.
4040         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4041         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4042         header file nss/nsswitch.h.
4043         * nss/nsswitch.h (global scope): Add definition of implementation
4044         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4045         resolv/nss_dns/dns-host.c).
4046
4047 2012-07-11  Andreas Jaeger  <aj@suse.de>
4048
4049         * po/fr.po: Update from translation team.
4050
4051         * po/sv.po: Update from translation team
4052         * po/fr.po: Another update from translation team.
4053
4054 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4055
4056         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4057         for subnormals or multiply small sinh result by itself.
4058         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4059         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4060
4061 2012-07-11  David S. Miller  <davem@davemloft.net>
4062
4063         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4064
4065 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4066
4067         [BZ #14347]
4068         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4069         (INTERNAL_MARK): Shift it here.
4070
4071 2012-07-10  Marek Polacek  <polacek@redhat.com>
4072
4073         [BZ #14151]
4074         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4075         libc_cv_asm_global_directive with .globl.
4076         * configure: Regenerated.
4077         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4078         with .globl.
4079         * sysdeps/i386/configure: Regenerated.
4080         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4081         with .globl.
4082         * sysdeps/x86_64/configure: Regenerated.
4083         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4084         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4085         * elf/tst-unique2mod2.c: Likewise.
4086         * elf/tst-unique2mod1.c: Likewise.
4087         * elf/tst-unique1mod2.c: Likewise.
4088         * elf/tst-unique1mod1.c: Likewise.
4089         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4090         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4091         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4092         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4093         * sysdeps/mach/sysdep.h: Likewise.
4094         * sysdeps/i386/sysdep.h: Likewise.
4095         * sysdeps/i386/i386-mcount.S: Likewise.
4096         * sysdeps/x86_64/_mcount.S: Likewise.
4097         * sysdeps/x86_64/sysdep.h: Likewise.
4098         * sysdeps/sh/_mcount.S: Likewise.
4099         * sysdeps/sh/sysdep.h: Likewise.
4100         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4101         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4102         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4103         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4104         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4105         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4106         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4107         * locale/localeinfo.h: Likewise.
4108         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4109         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4110
4111 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4112
4113         [BZ #14336]
4114         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4115         system".
4116         * manual/message.texi (The Uniforum approach): Likewise.
4117         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4118         (glibc iconv Implementation): Likewise.
4119
4120 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4121
4122         [BZ #14337]
4123         * math/s_clog.c (__clog): Avoid scaling a value down where that
4124         could result in underflow.
4125         * math/s_clog10.c (__clog10): Likewise.
4126         * math/s_clog10f.c (__clog10f): Likewise.
4127         * math/s_clog10l.c (__clog10l): Likewise.
4128         * math/s_clogf.c (__clogf): Likewise.
4129         * math/s_clogl.c (__clogl): Likewise.
4130         * math/libm-test.inc (clog_test): Add more tests.
4131         (clog10_test): Likewise.
4132         * sysdeps/i386/fpu/libm-test-ulps: Update.
4133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4134
4135 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4136
4137         [BZ #14283]
4138         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4139         by 7 not 8 to examine high bit of fractional part.
4140
4141         [BZ #14042]
4142         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4143         for call to __mcount_internal.
4144         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4145         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4146         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4147
4148 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4149
4150         [BZ #14154]
4151         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4152         approximation for values within 0x1p-13f of an odd multiple of
4153         pi/4.
4154         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4155         exception.  Add more tests.
4156         * sysdeps/i386/fpu/libm-test-ulps: Update.
4157
4158         [BZ #6778]
4159         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4160         inputs and return -1 for them.  Do not check for +Inf in case not
4161         reachable for +Inf.
4162         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4163         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not 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         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4168         define.
4169         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4170         and return -1 for them.  Do not check for +Inf in case not
4171         reachable for +Inf.
4172         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4173         spurious underflow.
4174         * sysdeps/i386/fpu/libm-test-ulps: Update.
4175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4176
4177 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4178
4179         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4180
4181 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4182
4183         [BZ #14157]
4184         [BZ #14331]
4185         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4186         could result in spurious underflow.  Scale down values above
4187         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4188         * math/s_csqrtf.c (__csqrtf): Likewise.
4189         * math/s_csqrtl.c (__csqrtl): Likewise.
4190         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4191         spurious underflow.
4192         * sysdeps/i386/fpu/libm-test-ulps: Update.
4193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4194
4195 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4196
4197         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4198         xopen-msg.sed.
4199         * catgets/xopen-msg.awk: New file.
4200         * catgets/xopen-msg.sed: Removed.
4201
4202         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4203         po2text.sed.
4204         * intl/po2test.awk: New file.
4205         * intl/po2test.sed: Removed.
4206
4207 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4208
4209         [BZ #14328]
4210         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4211         or multiply small sinh result by itself.
4212         * math/s_ctanf.c (__ctanf): Likewise.
4213         * math/s_ctanh.c (__ctanh): Likewise.
4214         * math/s_ctanhf.c (__ctanhf): Likewise.
4215         * math/s_ctanhl.c (__ctanhl): Likewise.
4216         * math/s_ctanl.c (__ctanl): Likewise.
4217         * math/libm-test.inc (ctan_test_tonearest): New function.
4218         (ctan_test_towardzero): Likewise.
4219         (ctan_test_downward): Likewise.
4220         (ctan_test_upward): Likewise.
4221         (ctanh_test_tonearest): Likewise.
4222         (ctanh_test_towardzero): Likewise.
4223         (ctanh_test_downward): Likewise.
4224         (ctanh_test_upward): Likewise.
4225         (main): Call these new functions.
4226         * sysdeps/i386/fpu/libm-test-ulps: Update.
4227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4228
4229 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4230
4231         * .gitignore: Delete /ports entry.
4232
4233 2012-07-03  Andreas Jaeger  <aj@suse.de>
4234
4235         * po/bg.po: Update from translation team.
4236         * po/cs.po: Likewise.
4237         * po/de.po: Likewise.
4238         * po/hr.po: Likewise.
4239         * po/nl.pl: Likewise.
4240         * po/pl.po: Likewise.
4241         * po/vi.po: Likewise.
4242
4243 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4244
4245         * Makeconfig [!+link] (+link-before-libc): New variable.
4246         [!+link] (+link-after-libc): Likewise.
4247         [!+link] (+link-tests): Likewise.
4248         [!+link] (+link): Define in terms of $(+link-before-libc) and
4249         $(+link-after-libc).
4250         [!+link-static] (+link-static-before-libc): New variable.
4251         [!+link-static] (+link-static-after-libc): Likewise.
4252         [!+link-static] (+link-static-tests): Likewise.
4253         [!+link-static] (+link-static): Define in terms of
4254         $(+link-static-before-libc) and $(+link-static-after-libc).
4255         [build-shared] (link-libc-before-gnulib): New variable.
4256         [build-shared] (link-libc-tests): Likewise.
4257         [build-shared] (link-libc): Define in terms of
4258         $(link-libc-before-gnulib).
4259         [!build-shared] (link-libc-tests): New variable.
4260         (link-libc-static-tests): New variable.
4261         [!gnulib] (gnulib-arch): New variable.
4262         [!gnulib] (gnulib-tests): Likewise.
4263         [!gnulib] (static-gnulib-arch): Likewise.
4264         [!gnulib] (static-gnulib-tests): Likewise.
4265         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4266         Define with "=" instead of ":=".
4267         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4268         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4269         * Rules (binaries-all-notests): New variable.
4270         (binaries-all-tests): Likewise.
4271         (binaries-static-notests): Likewise.
4272         (binaries-static-tests): Likewise.
4273         (binaries-all): Define using $(binaries-all-notests) and
4274         $(binaries-all-tests).
4275         (binaries-static): Define using $(binaries-static-notests) and
4276         $(binaries-static-tests).
4277         (binaries-shared-tests): New variable.
4278         (binaries-shared-notests): Likewise.
4279         (binaries-shared): Remove variable.
4280         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4281         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4282         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4283         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4284         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4285         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4286         * elf/Makefile (sln-modules): New variable.
4287         (extra-objs): Add $(sln-modules:=.o).
4288         (ldconfig-modules): Add static-stubs.
4289         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4290         * elf/static-stubs.c: New file.
4291
4292         [BZ #14283]
4293         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4294         by 7 not 8 to examine high bit of fractional part.  Use volatile
4295         variables when splitting into final array of floats if
4296         __FLT_EVAL_METHOD__ != 0.
4297         * math/libm-test.inc (cos_test): Add another test.
4298         (sin_test): Likewise.
4299         * sysdeps/i386/fpu/libm-test-ulps: Update.
4300
4301         [BZ #14273]
4302         * math/libm-test.inc (cosh_test): Add more tests.
4303
4304         * version.h (RELEASE): Set to "development".
4305         (VERSION): Set to "2.16.90".
4306
4307 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4308
4309         * NEWS: Update copyright. Remove last-updated date.
4310         Mention math library bug fixes and timezone data changes.
4311         * README: Mention GNU/Hurd, x32, and HPPA support status.
4312
4313 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4314
4315         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4316
4317 2012-06-27  Andreas Jaeger  <aj@suse.de>
4318
4319         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4320
4321 2012-06-25  Andreas Jaeger  <aj@suse.de>
4322
4323         * sysdeps/s390/fpu/libm-test-ulps: Update.
4324
4325 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4326             Thomas Schwinge  <thomas@codesourcery.com>
4327
4328         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4329         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4330         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4331         fanotify_mark.
4332
4333 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4334
4335         * sysdeps/mach/start.c: Remove file.
4336         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4337         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4338         * sysdeps/sh/init-first.c: Likewise.
4339
4340         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4341         registers for frame unwinding purposes, add CFI directives.
4342         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4343         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4344         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4345         Likewise.
4346
4347         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4348         __fortify_fail returning.
4349         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4350
4351         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4352         sysdeps/sh/____longjmp_chk.S.
4353         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4354         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4355         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4356         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4357
4358         * sysdeps/sh/abort-instr.h: New file.
4359         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4360         process in case exit returns.
4361
4362         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4363         initialize the GOT register before use.
4364
4365         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4366         calculation of ARGC > 4.
4367
4368         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4369         meaningful names to some local labels.
4370
4371 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4372             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4373
4374         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4375         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4376         (__arch_compare_and_exchange_val_16_acq): Likewise.
4377         (__arch_compare_and_exchange_val_32_acq): Likewise.
4378         (atomic_exchange_and_add): Fix gUSA sequence.
4379         (atomic_add): Likewise.
4380         (atomic_add_negative): Likewise.
4381         (atomic_add_zero): Likewise.
4382         (atomic_bit_test_set): Likewise.
4383
4384 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4385
4386         [BZ #13579]
4387         * include/link.h (struct link_map): Add l_free_initfini.
4388         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4389         l_initfini.
4390         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4391         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4392         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4393         set.
4394
4395 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4396
4397         * configure.in: Use AC_LANG_SOURCE.
4398         * configure: Regenerate.
4399
4400 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4401
4402         * configure.in (libc_cv_localstatedir): New substituted variable.
4403         * configure: Regenerated.
4404         * config.make.in (localstatedir): New variable, substituted from
4405         libc_cv_localstatedir.
4406         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4407         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4408         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4409         * sysdeps/gnu/configure: Regenerated.
4410
4411 2012-06-21  Jeff Law  <law@redhat.com>
4412
4413         [BZ #14277]
4414         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4415         free.  Simplify list management for _LIBC case.
4416
4417 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4418
4419         [BZ #14273]
4420         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4421         Clear sign bit of 64-bit integer value before comparing against
4422         overflow value.
4423
4424         * sysdeps/mach/configure: Regenerated.
4425
4426 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4427
4428         [BZ #14278]
4429         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4430
4431 2012-06-21  Jeff Law  <law@redhat.com>
4432
4433         [BZ #13882]
4434         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4435         uint16_t for elements in the "seen" array to avoid char overflows.
4436         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4437         * elf/dl-open.c (dl_open_worker): Likewise.
4438
4439 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4440
4441         * scripts/list-sources.sh: Scan PORTS for translations.
4442         * po/libc.pot: Regenerated.
4443
4444 2012-06-21  Andreas Jaeger  <aj@suse.de>
4445
4446         [BZ #12194]
4447         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4448         warning.
4449         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4450         * bits/byteswap-16.h (__bswap_16): Likewise.
4451         * bits/byteswap.h (__bswap_constant_16): Likewise.
4452
4453 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         [BZ #14117]
4456         * sysdeps/i386/fpu_control.h: Removed.
4457         * sysdeps/x86_64/fpu_control.h: Moved to ...
4458         * sysdeps/x86/fpu_control.h: Here.
4459
4460         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4461         (_FPU_SETCW): Likewise.
4462
4463 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4464
4465         [BZ #14117]
4466         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4467         * sysdeps/x86/fpu/bits/mathinline.h: This.
4468         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4469
4470         [BZ #14050]
4471         [BZ #14117]
4472         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4473         functions if __x86_64__ is defined.
4474
4475 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4476
4477         * string/endian.h: Add !__ASSEMBLER__ condition for including
4478         conversion interfaces.
4479
4480 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4481
4482         [BZ #14241]
4483         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4484         of ABS(x) in calculating zero to negative powers other than odd
4485         integers.
4486         * math/libm-test.inc (pow_test): Add more tests.
4487
4488 2012-06-15  Andreas Jaeger  <aj@suse.de>
4489
4490         * manual/contrib.texi (Contributors): Update entry of Liubov
4491         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4492         Machado Filho.
4493
4494 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4495
4496         * string/string.h: Add __wur to GNU version of strerror_r.
4497
4498 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4499
4500         [BZ #14229]
4501         * string/Makefile (tests): Add tst-strtok_r.
4502         * string/tst-strtok_r.c: New file.
4503         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4504         RAX_LP/RDX_LP on SAVE_PTR.
4505
4506 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4507
4508         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4509
4510 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4511
4512         * libm_test.inc (csqrt_test): Allow more spurious underflow
4513         exceptions.
4514         (j0_test): Likewise.
4515         (j1_test): Likewise.
4516         (y0_test): Likewise.
4517         (y1_test): Likewise.
4518
4519 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4520
4521         * po/Makefile (libc.pot): Use UTF-8 charset.
4522
4523 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4524
4525         [BZ #14210]
4526         Suppress sign-conversion warning from FD_SET.
4527         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4528         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4529         not unsigned long int.
4530         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4531
4532 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4533
4534         [BZ #14050]
4535         [BZ #14117]
4536         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4537         __extern_always_inline instead of __extern_inline.
4538         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4539         (__signbit): Likewise.
4540         (__signbitl): Support C++ namespace.
4541         (lrintf): New inline function.
4542         (lrint): Likewise.
4543         (llrintf): Likewise.
4544         (llrint): Likewise.
4545         (fmaxf): Likewise.
4546         (fmax): Likewise.
4547         (fminf): Likewise.
4548         (fmin): Likewise.
4549         (rint): Likewise.
4550         (rintf): Likewise.
4551         (ceil): Likewise.
4552         (ceilf): Likewise.
4553         (floor): Likewise.
4554         (floorf): Likewise.
4555         (nearbyint): Likewise.
4556         (nearbyintf): Likewise.
4557
4558 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4559
4560         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4561         non-default versions.
4562
4563 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4564
4565         [BZ #14218]
4566         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4567
4568 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4569
4570         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4571         (FE_UPWARD, FE_DOWNWARD): Don't define.
4572         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4573         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4574
4575         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4576         reading it.
4577         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4578         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4579
4580 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4581
4582         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4583         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4584         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4585         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4586
4587 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4588
4589         [BZ #14117]
4590         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4591         * sysdeps/i386/fpu/Implies: New file.
4592         * sysdeps/x86_64/fpu/Implies: Likewise.
4593         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4594         * sysdeps/x86/fpu/bits/fenv.h: This.
4595
4596         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4597         __SSE_MATH__.
4598
4599 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4600
4601         [BZ #14134]
4602         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4603         character 0xffff that matches the last element of the
4604         conversion table.
4605
4606 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4607
4608         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4609         fmodl commit.
4610
4611 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4612
4613         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4614         values higher than 25.6283.
4615
4616 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4617
4618         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4619         subnormal exponent extraction and add some __builtin_expect.
4620         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4621         Fix for subnormal mantissa calculation.
4622
4623 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4624
4625         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4626         cpu2 is -1 and errno is not ENOSYS.
4627
4628 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4629
4630         [BZ #14117]
4631         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4632         * sysdeps/x86/bits/string.h: This.
4633         * sysdeps/x86_64/bits/string.h: Removed.
4634
4635         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4636         if not compiling for x86-64, but compiling for >= i486.
4637
4638         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4639         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4640
4641         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4642         New macro from Linux kernel 3.4.0.
4643         (FP_XSTATE_MAGIC2): Likewise.
4644         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4645         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4646         (struct _fpx_sw_bytes): New struct.
4647         (struct _xsave_hdr): Likewise.
4648         (struct _ymmh_state): Likewise.
4649         (struct _xstate): Likewise.
4650
4651         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4652         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4653         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4654         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4655         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4656         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4657
4658         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4659         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4660         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4661         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4662         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4663         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4664
4665 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4666
4667         [BZ #13743]
4668         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4669         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4670         (sysdep_headers): Include sys/platform/ppc.h.
4671         * sysdeps/powerpc/test-gettimebase.c: Test for
4672         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4673         * manual/Makefile (appendices): Include platform.texi.
4674         * manual/contrib.texi (Contributors): Update @node pointers.
4675         * manual/maint.texi (Maintenance): Likewise.
4676         (Platform): New node.
4677         * manual/platform.texi: New file.  Document the new features.
4678
4679 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4680             Jakub Jelinek  <jakub@redhat.com>
4681
4682         [BZ #14188]
4683         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4684         where __builtin_expect is unavailable.
4685
4686 2012-06-03  David S. Miller  <davem@davemloft.net>
4687
4688         * stdlib/longlong.h: Updated from GCC.
4689
4690 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4691
4692         [BZ #14042]
4693         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4694         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4695         __mcount_internal.
4696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4697         (GLIBC_2.16): Likewise.
4698
4699 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4700
4701         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4702
4703 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4704
4705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4706         (default-abi): New variable.
4707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4708         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4709         variable.
4710         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4711         Likewise.
4712         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4713         Likewise.
4714         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4715         Likewise.
4716
4717         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4718         definition.  Document in comment.
4719
4720 2012-06-01  David S. Miller  <davem@davemloft.net>
4721
4722         * stdlib/longlong.h: Updated from GCC.
4723
4724 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4725
4726         [BZ #14117]
4727         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4728         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4729         sys/debugreg.h sys/io.h here.
4730         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4731         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4732         sys/io.h.
4733         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4734         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4735         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4736         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4737         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4738         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4739
4740         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4741         Define only if __x86_64__ is defined.
4742
4743 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4744
4745         [BZ #14048]
4746         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4747         Use int64_t for variable i.
4748         * math/libm-test.inc (fmod_test): Add more tests.
4749
4750         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4751         z computation is not scheduled after fetestexcept.
4752         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4753         Use math_force_eval instead of asm to ensure calculation scheduled
4754         before exception test.
4755         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4756         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4757
4758 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4759
4760         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4761         computation is not scheduled after fetestexcept.
4762
4763 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4764
4765         [BZ #14117]
4766         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4767         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4768
4769 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4770
4771         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4772         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4773
4774 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4775
4776         [BZ #14117]
4777         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4778         <bits/wordsize.h>.
4779         (__WCHAR_MIN): Support __WORDSIZE == 64.
4780         (__WCHAR_MAX): Likewise.
4781
4782         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4783         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4784
4785         [BZ #14183]
4786         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4787         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4788
4789         [BZ #14117]
4790         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4791         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4792
4793         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4794         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4795
4796         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4797         Defined to 1 if __x86_64__ isn't defined.
4798         (_STAT_VER_LINUX_OLD): New.
4799         (st_atime): Remove duplicate.
4800         (st_mtime): Likewise.
4801         (st_ctime): Likewise.
4802
4803 2012-05-31  David S. Miller  <davem@davemloft.net>
4804
4805         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4806         entries.
4807
4808 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4809
4810         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4811         gen-libm-test.pl.
4812
4813         [BZ #14132]
4814         * elf/dl-reloc.c: Include <_itoa.h>.
4815         (_dl_reloc_bad_type): Remove use of INTUSE.
4816         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4817         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4818         * stdio-common/psiginfo.c (psiginfo): Likewise.
4819         * stdio-common/psignal.c (psignal): Likewise.
4820         * string/strsignal.c (strsignal): Likewise.
4821         * include/signal.h (_sys_siglist): Declare hidden proto.
4822         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4823         INTVARDEF with libc_hidden_data_def.
4824         * stdio-common/itoa-udigits.c: Likewise.
4825         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4826         (_itoa_lower_digits_internal): Remove declaration.
4827         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4828         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4829         (_sys_sigabbrev_internal): Remove aliases.
4830         (_sys_siglist): Define hidden alias.
4831
4832 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4833
4834         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4835         bits/sysctl.h.
4836
4837 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4838
4839         [BZ #14117]
4840         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4841         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4842
4843         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4844         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4845         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4846         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4847         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4848         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4849
4850         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4851         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4852         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4853
4854         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4855         with __addr.
4856         (insw): Likewise.
4857         (insl): Likewise.
4858         (outsb): Likewise.
4859         (outsw): Likewise.
4860         (outsl): Likewise.
4861
4862         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4863         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4864         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4865
4866         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4867         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4868         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4869         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4870         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4871         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4872
4873         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4874         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4875
4876         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4877         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4878
4879         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4880         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4881         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4882
4883         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4884         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4885         to ...
4886         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4887
4888         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4889         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4890         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4891
4892         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4893         for x86-64.
4894         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4895
4896 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4897
4898         * math/math.h (M_El): Use two more decimal places.
4899         (M_LOG2El): Likewise.
4900         (M_LOG10El): Likewise.
4901         (M_LN2l): Likewise.
4902         (M_LN10l): Likewise.
4903         (M_PIl): Likewise.
4904         (M_PI_2l): Likewise.
4905         (M_PI_4l): Likewise.
4906         (M_1_PIl): Likewise.
4907         (M_2_PIl): Likewise.
4908         (M_2_SQRTPIl): Likewise.
4909         (M_SQRT2l): Likewise.
4910         (M_SQRT1_2l): Likewise.
4911
4912 2012-05-31  David S. Miller  <davem@davemloft.net>
4913
4914         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4915         values between float registers.
4916         * sysdeps/sparc/sparc64/memset.S: Likewise.
4917         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4918
4919 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4920
4921         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4922         -D_FORTIFY_SOURCE=1.
4923         (CPPFLAGS-tst-longjmp_chk.c): Define.
4924         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4925         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4926         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4927         CFLAGS-tst-wchar-h.c.
4928
4929 2012-05-31  Marek Polacek  <polacek@redhat.com>
4930
4931         [BZ #14132]
4932         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4933         __endmntent_internal): Remove declaration.
4934         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4935         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4936         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4937
4938 2012-05-30  David S. Miller  <davem@davemloft.net>
4939
4940         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4941         (___Q_simulate_exceptions): Use real FP ops rather than writing
4942         into the %fsr.
4943         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4944         Likewise.
4945
4946 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         [BZ #14117]
4949         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4950         * sysdeps/x86/bits/xtitypes.h: This.
4951
4952         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4953         * sysdeps/x86/bits/wordsize.h: This.
4954
4955         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4956         * sysdeps/x86/bits/huge_vall.h: This.
4957
4958         * sysdeps/i386/bits/select.h: Removed.
4959         * sysdeps/x86_64/bits/select.h: Renamed to ...
4960         * sysdeps/x86/bits/select.h: This.
4961
4962         * sysdeps/i386/bits/setjmp.h: Removed.
4963         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4964         * sysdeps/x86/bits/setjmp.h: This.
4965
4966         * sysdeps/i386/bits/mathdef.h: Removed.
4967         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4968         * sysdeps/x86/bits/mathdef.h: This.
4969
4970 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4971
4972         [BZ #14132]
4973         * include/sys/socket.h (__connect_internal)
4974         (__libc_sa_len_internal): Remove declaration.
4975         (__connect, __libc_sa_len): Declare hidden_proto.
4976         (SA_LEN): Remove use of INTUSE.
4977         * socket/connect.c: Add libc_hidden_def.
4978         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4979         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4980         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4981         alias.
4982         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4984         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4985         of adding _internal alias.
4986
4987 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4988
4989         [BZ #14117]
4990         * sysdeps/i386/bits/link.h: Removed.
4991         * sysdeps/i386/bits/linkmap.h: Likewise.
4992         * sysdeps/x86_64/bits/link.h: Renamed to ...
4993         * sysdeps/x86/bits/link.h: This.
4994         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4995         * sysdeps/x86/bits/linkmap.h: This.
4996
4997         * sysdeps/i386/bits/endian.h: Removed.
4998         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4999         * sysdeps/x86/bits/endian.h: This.
5000
5001         * sysdeps/i386/bits/byteswap.h: Removed.
5002         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5003         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5004         * sysdeps/x86/bits/byteswap.h: This.
5005         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5006         * sysdeps/x86/bits/byteswap-16.h: This.
5007         * sysdeps/i386/Implies: Add x86.
5008         * sysdeps/x86_64/Implies: Likewise.
5009
5010 2012-05-30  David S. Miller  <davem@davemloft.net>
5011
5012         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5013         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5014         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5015         (FP_TRAPPING_EXCEPTIONS): Define.
5016         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5017         (FP_TRAPPING_EXCEPTIONS): Define.
5018         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5019         subnormals only when inexact has been signalled or underflow
5020         exceptions are enabled.
5021         (_FP_PACK_CANONICAL): Likewise.
5022
5023 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5024
5025         [BZ #14183]
5026         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5027         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5028
5029 2012-05-30  Richard Henderson  <rth@twiddle.net>
5030
5031         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5032         with #ifndef NOT_IN_libc.
5033
5034         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5035         marked to avoid plt entry.
5036
5037 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5038
5039         [BZ #14112]
5040         * Makeconfig (default-abi): New macro.
5041         (abi-includes): Likewise.
5042         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5043         $(abi-$(default-abi)-lib-soname) for soname if defined.
5044         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5045         abi-variants.
5046         * Makefile (installed-stubs): Likewise.
5047         * include/stubs-biarch.h: Removed.
5048         * scripts/lib-names.awk: Only handle one library at a time.
5049         * scripts/soversions.awk: Remove WORDSIZE support.
5050         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5051         entries.
5052         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5053         Removed.
5054         (syscall-list-default-condition): Likewise.
5055         (syscall-list-default-condition): Likewise.
5056         (syscall-list-includes): Likewise.
5057         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5058         syscall-list-* with abi-*.  Handle undefined abi-variants.
5059         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5060         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5061         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5063         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5064         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5065         Removed.
5066         (syscall-list-32-options): Likewise.
5067         (syscall-list-32-condition): Likewise.
5068         (syscall-list-64-options): Likewise.
5069         (syscall-list-64-condition): Likewise.
5070         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5071         macro.
5072         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5073         Renamed to ...
5074         (abi-*): This.
5075         (abi-64-ld-soname): New macro.
5076         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5077         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5078         Renamed to ...
5079         (abi-*): This.
5080         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5081         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5082
5083 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5084
5085         * sysdeps/unix/sysv/linux/kernel-features.h
5086         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5087         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5088         include <kernel-features.h>.
5089         [!__NR_ftruncate64]: Remove conditional code.
5090         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5091         [__NR_ftruncate64]: Make code unconditional.
5092         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5093         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5094         include <kernel-features.h>.
5095         [!__NR_ftruncate64]: Remove conditional code.
5096         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5097         [__NR_ftruncate64]: Make code unconditional.
5098         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5100         include <kernel-features.h>.
5101         [!__NR_ftruncate64]: Remove conditional code.
5102         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5103         [__NR_ftruncate64]: Make code unconditional.
5104         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5106         include <kernel-features.h>.
5107         [!__NR_ftruncate64]: Remove conditional code.
5108         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5109         [__NR_ftruncate64]: Make code unconditional.
5110         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5111
5112         * configure.in (libc_cv_fpie): Weaken to a compile test using
5113         LIBC_TRY_CC_OPTION.
5114         * configure: Regenerated.
5115
5116 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5117
5118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5122         Refreshed.
5123         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5125         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5127         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5129         Refreshed.
5130
5131 2012-05-27  David S. Miller  <davem@davemloft.net>
5132
5133         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5134         (___Q_zero): New.
5135         (__Q_simulate_exceptions): Return void.  Change to simulate
5136         exceptions by writing into the %fsr.
5137         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5138         (__Qp_handle_exceptions): Likewise.
5139         (numbers): Delete.
5140         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5141         __Qp_handle_exceptions.
5142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5143         __Qp_handle_exceptions.
5144         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5145         as unused and give dummy FP_RND_NEAREST initializer.
5146         (FP_INHIBIT_RESULTS): Define.
5147         (___Q_simulate_exceptions): Update declaration.
5148         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5149         formatting.
5150         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5151         as unused and give dummy FP_RND_NEAREST initializer.
5152         (__Qp_handle_exceptions): Update declaration.
5153         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5154         formatting.
5155
5156 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5157
5158         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5159         the temporary FPU control word.
5160         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5161         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5162         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5163         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5164         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5165         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5166         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5167         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5168         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5169         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5170         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5171
5172 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5173
5174         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5175         fields.
5176
5177 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5178
5179         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5180         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5181         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5182         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5183         Likewise.
5184         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5185         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5186         Likewise.
5187
5188 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5189
5190         * po/h.po: Update from translation team.
5191
5192 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5193
5194         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5195
5196         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5197         handling of denormals.
5198         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5199         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5200         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5201         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5202         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5203         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5204         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5205         Likewise.
5206
5207 2012-05-26  Marek Polacek  <polacek@redhat.com>
5208
5209         [BZ #14152]
5210         * math/libm-test.inc (fma_test): Don't always expect underflow
5211         exception.
5212
5213 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5214
5215         [BZ #12416]
5216         * elf/tst-execstack.c: Include stackinfo.h.
5217         (do_test): Adjust test case to ensure that pthread_getattr_np
5218         behaviour remains the same after marking stack executable.
5219
5220 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5221
5222         * sysdeps/unix/sysv/linux/kernel-features.h
5223         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5224         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5225         kernel-features.h.
5226         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5227         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5228         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5229         kernel-features.h.
5230         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5231         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5232
5233 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5234
5235         * configure.in: Define the default includes to being none.
5236         * configure: Regenerated.
5237
5238 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5239
5240         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5241         * sysdeps/x86_64/setjmp.S: Likewise.
5242         * sysdeps/i386/bsd-setjmp.S: Likewise.
5243         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5244         * sysdeps/i386/setjmp.S: Likewise.
5245         * sysdeps/i386/__longjmp.S: Likewise.
5246         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5247         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5248
5249         * include/stap-probe.h: New file.
5250         * configure.in: Handle --enable-systemtap.
5251         * configure: Regenerated.
5252         * config.h.in (USE_STAP_PROBE): New #undef.
5253         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5254         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5255         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5256
5257 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5258
5259         [BZ #13717]
5260         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5261         to 2.4.0 where earlier.
5262         * sysdeps/unix/sysv/linux/configure: Regenerated.
5263         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5264         <kernel-features.h>.
5265         [__ASSUME_32BITUIDS]: Make code unconditional.
5266         [!__ASSUME_32BITUIDS]: Remove conditional code.
5267         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5268         <kernel-features.h>.
5269         [__ASSUME_32BITUIDS]: Make code unconditional.
5270         [!__ASSUME_32BITUIDS]: Remove conditional code.
5271         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5272         [__ASSUME_32BITUIDS]: Make code unconditional.
5273         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5274         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5275         <kernel-features.h>.
5276         [__ASSUME_32BITUIDS]: Make code unconditional.
5277         [!__ASSUME_32BITUIDS]: Remove conditional code.
5278         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5279         <kernel-features.h>.
5280         [__ASSUME_32BITUIDS]: Make code unconditional.
5281         [!__ASSUME_32BITUIDS]: Remove conditional code.
5282         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5283         <kernel-features.h>.
5284         [__ASSUME_32BITUIDS]: Make code unconditional.
5285         [!__ASSUME_32BITUIDS]: Remove conditional code.
5286         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5287         <kernel-features.h>.
5288         [__ASSUME_32BITUIDS]: Make code unconditional.
5289         [!__ASSUME_32BITUIDS]: Remove conditional code.
5290         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5291         <kernel-features.h>.
5292         [__ASSUME_32BITUIDS]: Make code unconditional.
5293         [!__ASSUME_32BITUIDS]: Remove conditional code.
5294         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5295         <kernel-features.h>.
5296         [__ASSUME_32BITUIDS]: Make code unconditional.
5297         [!__ASSUME_32BITUIDS]: Remove conditional code.
5298         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5299         <kernel-features.h>.
5300         [__ASSUME_32BITUIDS]: Make code unconditional.
5301         [!__ASSUME_32BITUIDS]: Remove conditional code.
5302         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5303         <kernel-features.h>.
5304         [__ASSUME_32BITUIDS]: Make code unconditional.
5305         [!__ASSUME_32BITUIDS]: Remove conditional code.
5306         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5307         <kernel-features.h>.
5308         [__ASSUME_32BITUIDS]: Make code unconditional.
5309         [!__ASSUME_32BITUIDS]: Remove conditional code.
5310         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5311         <kernel-features.h>.
5312         [__ASSUME_32BITUIDS]: Make code unconditional.
5313         [!__ASSUME_32BITUIDS]: Remove conditional code.
5314         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5315         <kernel-features.h>.
5316         [__NR_setresgid] (__setresgid): Do not declare.
5317         [__ASSUME_32BITUIDS]: Make code unconditional.
5318         [!__ASSUME_32BITUIDS]: Remove conditional code.
5319         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5320         <kernel-features.h>.
5321         [__NR_setresuid] (__setresuid): Do not declare.
5322         [__ASSUME_32BITUIDS]: Make code unconditional.
5323         [!__ASSUME_32BITUIDS]: Remove conditional code.
5324         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5325         <kernel-features.h>.
5326         [__ASSUME_32BITUIDS]: Make code unconditional.
5327         [!__ASSUME_32BITUIDS]: Remove conditional code.
5328         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5329         <kernel-features.h>.
5330         [__ASSUME_32BITUIDS]: Make code unconditional.
5331         [!__ASSUME_32BITUIDS]: Remove conditional code.
5332         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5333         <kernel-features.h>.
5334         [__ASSUME_32BITUIDS]: Make code unconditional.
5335         [!__ASSUME_32BITUIDS]: Remove conditional code.
5336         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5337         <kernel-features.h>.
5338         [__ASSUME_32BITUIDS]: Make code unconditional.
5339         [!__ASSUME_32BITUIDS]: Remove conditional code.
5340         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5341         <kernel-features.h>.
5342         [__ASSUME_32BITUIDS]: Make code unconditional.
5343         [!__ASSUME_32BITUIDS]: Remove conditional code.
5344         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5345         <kernel-features.h>.
5346         [__ASSUME_32BITUIDS]: Make code unconditional.
5347         [!__ASSUME_32BITUIDS]: Remove conditional code.
5348         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5349         <kernel-features.h>.
5350         [__ASSUME_32BITUIDS]: Make code unconditional.
5351         [!__ASSUME_32BITUIDS]: Remove conditional code.
5352         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5353         <kernel-features.h>.
5354         [__ASSUME_32BITUIDS]: Make code unconditional.
5355         [!__ASSUME_32BITUIDS]: Remove conditional code.
5356         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5357         <kernel-features.h>.
5358         [__ASSUME_32BITUIDS]: Make code unconditional.
5359         [!__ASSUME_32BITUIDS]: Remove conditional code.
5360         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5361         <kernel-features.h>.
5362         [__ASSUME_32BITUIDS]: Make code unconditional.
5363         [!__ASSUME_32BITUIDS]: Remove conditional code.
5364         * sysdeps/unix/sysv/linux/kernel-features.h
5365         (__ASSUME_SETRESUID_SYSCALL): Remove.
5366         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5367         (__ASSUME_32BITUIDS): Likewise.
5368         (__ASSUME_LDT_WORKS): Likewise.
5369         (__ASSUME_O_DIRECTORY): Likewise.
5370         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5371         architecture but not kernel version.
5372         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5373         (__ASSUME_MMAP2_SYSCALL): Likewise.
5374         (__ASSUME_STAT64_SYSCALL): Likewise.
5375         (__ASSUME_IPC64): Likewise.
5376         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5377         <kernel-features.h>.
5378         [__ASSUME_32BITUIDS]: Make code unconditional.
5379         [!__ASSUME_32BITUIDS]: Remove conditional code.
5380         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5381         <kernel-features.h>.
5382         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5383         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5384         132096]: Remove conditional code.
5385         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5386         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5387         <kernel-features.h>.
5388         [__ASSUME_32BITUIDS]: Make code unconditional.
5389         [!__ASSUME_32BITUIDS]: Remove conditional code.
5390         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5391         <kernel-features.h>.
5392         [__ASSUME_32BITUIDS]: Make code unconditional.
5393         [!__ASSUME_32BITUIDS]: Remove conditional code.
5394         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5395         <kernel-features.h>.
5396         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5397         unconditional.
5398         (__setresgid): Do not declare.
5399         [__ASSUME_32BITUIDS]: Make code unconditional.
5400         [!__ASSUME_32BITUIDS]: Remove conditional code.
5401         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5402         <kernel-features.h>.
5403         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5404         unconditional.
5405         (__setresuid): Do not declare.
5406         [__ASSUME_32BITUIDS]: Make code unconditional.
5407         [!__ASSUME_32BITUIDS]: Remove conditional code.
5408         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5409         <kernel-features.h>.
5410         [__ASSUME_32BITUIDS]: Make code unconditional.
5411         [!__ASSUME_32BITUIDS]: Remove conditional code.
5412         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5413         <kernel-features.h>.
5414         [__ASSUME_32BITUIDS]: Make code unconditional.
5415         [!__ASSUME_32BITUIDS]: Remove conditional code.
5416
5417 2012-05-25  Richard Henderson  <rth@twiddle.net>
5418
5419         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5420         dl_hwcap to ifunc resolver.
5421         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5422         elf_ifunc_invoke.
5423         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5424         dl_hwcap to ifunc resolver.
5425         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5426
5427 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5428
5429         [BZ #14153]
5430         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5431         for |x| <= 2**-26, not 2**-57.
5432         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5433         exception.
5434
5435 2012-05-24  Jeff Law  <law@redhat.com>
5436
5437         * stdio-common/Makefile (tests): Add bug25.
5438         * stdio-common/bug25.c: New test.
5439
5440 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         [BZ #13576]
5443         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5444         multiple of MALLOC_ALIGNMENT in size.
5445         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5446
5447 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5448
5449         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5450         Require >= 256.
5451         (FILENAME_MAX): Use macro-int-constant.
5452         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5453         (_IOFBF): Use macro-int-constant.
5454         (_IOLBF): Likewise.
5455         (_IONBF): Likewise.
5456         (SEEK_CUR): Likewise.
5457         (SEEK_END): Likewise.
5458         (SEEK_SET): Likewise.
5459         (TMP_MAX): Likewise.
5460         (EOF): Use macro-int-constant.  Require < 0.
5461         (NULL): Use macro-constant.  Require == 0.
5462         (stdin): Require type to be FILE *.
5463         (stdout): Likewise.
5464         (stderr): Likewise.
5465         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5466         macro-int-constant.
5467         (EXIT_SUCCESS): Likewise.
5468         (NULL): Use macro-constant.  Require == 0.
5469         (RAND_MAX): Use macro-int-constant.
5470         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5471         [C99-based standards] (strtof): Require function.
5472         [C99-based standards] (strtold): Likewise.
5473         [C99-based standards] (strtoll): Likewise.
5474         [C99-based standards] (strtoull): Likewise.
5475         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5476         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5477         [ISO || ISO99 || ISO11] (math.h): Likewise.
5478         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5479         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5480         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5481
5482 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5483
5484         [BZ #14132]
5485         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5486         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5487         * intl/dgettext.c (DCGETTEXT): Likewise.
5488         * intl/gettext.c (DCGETTEXT): Likewise.
5489         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5490         * posix/regex_internal.h (gettext): Likewise.
5491         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5492         Remove declaration.
5493         * include/argz.h (__argz_count_internal)
5494         (__argz_stringify_internal): Remove declaration.
5495         (__argz_count, __argz_stringify): Declare hidden proto.
5496         * intl/dcgettext.c: Remove use of INTDEF.
5497         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5498         * string/argz-stringify.c: Likewise.
5499         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5500         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5501         Declare hidden proto.
5502         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5503         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5504         Declare hidden proto.
5505         * include/stdio.h (__asprintf_internal): Don't declare.
5506         (__asprintf): Don't define as macro.  Declare hidden proto.
5507         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5508         (__fsetlocking): Declare hidden proto.
5509         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5510         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5511         hidden proto.
5512         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5513         (_IO_setlinebuf): Remove use of INTUSE.
5514         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5515         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5516         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5517         Remove declaration.
5518         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5519         (_IO_do_flush): Remove use of INTUSE.
5520         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5521         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5522         (_IO_adjust_column, _IO_least_wmarker)
5523         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5524         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5525         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5526         (_IO_default_doallocate, _IO_wdefault_doallocate)
5527         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5528         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5529         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5530         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5531         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5532         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5533         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5534         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5535         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5536         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5537         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5538         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5539         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5540         proto.
5541         (_IO_flush_all_internal, _IO_adjust_column_internal)
5542         (_IO_default_uflow_internal, _IO_default_finish_internal)
5543         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5544         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5545         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5546         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5547         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5548         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5549         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5550         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5551         (_IO_file_close_internal, _IO_file_close_it_internal)
5552         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5553         (_IO_file_init_internal, _IO_file_attach_internal)
5554         (_IO_file_fopen_internal, _IO_file_read_internal)
5555         (_IO_file_sync_internal, _IO_file_seek_internal)
5556         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5557         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5558         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5559         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5560         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5561         (_IO_list_all_internal, _IO_link_in_internal)
5562         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5563         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5564         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5565         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5566         (_IO_do_write_internal, _IO_padn_internal)
5567         (_IO_getline_info_internal, _IO_getline_internal)
5568         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5569         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5570         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5571         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5572         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5573         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5574         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5575         with libc_hidden_ver, remove use of INTUSE.
5576         * libio/genops.c: Likewise.
5577         * libio/freopen.c: Likewise.
5578         * libio/freopen64.c: Likewise.
5579         * libio/iofclose.c: Likewise.
5580         * libio/iofdopen.c: Likewise.
5581         * libio/iofflush.c: Likewise.
5582         * libio/iofflush_u.c: Likewise.
5583         * libio/iofgets.c: Likewise.
5584         * libio/iofgets_u.c: Likewise.
5585         * libio/iofopen.c: Likewise.
5586         * libio/iofopncook.c: Likewise.
5587         * libio/iofread.c: Likewise.
5588         * libio/iofread_u.c: Likewise.
5589         * libio/ioftell.c: Likewise.
5590         * libio/iofwrite.c: Likewise.
5591         * libio/iogetline.c: Likewise.
5592         * libio/iogets.c: Likewise.
5593         * libio/iogetwline.c: Likewise.
5594         * libio/iopadn.c: Likewise.
5595         * libio/iopopen.c: Likewise.
5596         * libio/ioseekoff.c: Likewise.
5597         * libio/ioseekpos.c: Likewise.
5598         * libio/iosetbuffer.c: Likewise.
5599         * libio/iosetvbuf.c: Likewise.
5600         * libio/ioungetc.c: Likewise.
5601         * libio/ioungetwc.c: Likewise.
5602         * libio/iovdprintf.c: Likewise.
5603         * libio/iovsprintf.c: Likewise.
5604         * libio/iovsscanf.c: Likewise.
5605         * libio/memstream.c: Likewise.
5606         * libio/obprintf.c: Likewise.
5607         * libio/oldfileops.c: Likewise.
5608         * libio/oldiofclose.c: Likewise.
5609         * libio/oldiofdopen.c: Likewise.
5610         * libio/oldiofopen.c: Likewise.
5611         * libio/oldiopopen.c: Likewise.
5612         * libio/oldstdfiles.c: Likewise.
5613         * libio/putc.c: Likewise.
5614         * libio/setbuf.c: Likewise.
5615         * libio/setlinebuf.c: Likewise.
5616         * libio/stdfiles.c: Likewise.
5617         * libio/strops.c: Likewise.
5618         * libio/vasprintf.c: Likewise.
5619         * libio/vscanf.c: Likewise.
5620         * libio/vsnprintf.c: Likewise.
5621         * libio/vswprintf.c: Likewise.
5622         * libio/wfiledoalloc.c: Likewise.
5623         * libio/wfileops.c: Likewise.
5624         * libio/wgenops.c: Likewise.
5625         * libio/wmemstream.c: Likewise.
5626         * libio/wstrops.c: Likewise.
5627         * libio/__fpurge.c: Likewise.
5628         * libio/__fsetlocking.c: Likewise.
5629         * assert/assert.c: Likewise.
5630         * debug/fgets_chk.c: Likewise.
5631         * debug/fgets_u_chk.c: Likewise.
5632         * debug/fread_chk.c: Likewise.
5633         * debug/fread_u_chk.c: Likewise.
5634         * debug/gets_chk.c: Likewise.
5635         * debug/obprintf_chk.c: Likewise.
5636         * debug/vasprintf_chk.c: Likewise.
5637         * debug/vdprintf_chk.c: Likewise.
5638         * debug/vsnprintf_chk.c: Likewise.
5639         * debug/vsprintf_chk.c: Likewise.
5640         * malloc/mtrace.c: Likewise.
5641         * misc/error.c: Likewise.
5642         * misc/syslog.c: Likewise.
5643         * stdio-common/asprintf.c: Likewise.
5644         * stdio-common/fxprintf.c: Likewise.
5645         * stdio-common/getw.c: Likewise.
5646         * stdio-common/isoc99_fscanf.c: Likewise.
5647         * stdio-common/isoc99_scanf.c: Likewise.
5648         * stdio-common/isoc99_vfscanf.c: Likewise.
5649         * stdio-common/isoc99_vscanf.c: Likewise.
5650         * stdio-common/isoc99_vsscanf.c: Likewise.
5651         * stdio-common/printf-prs.c: Likewise.
5652         * stdio-common/printf_fp.c: Likewise.
5653         * stdio-common/printf_fphex.c: Likewise.
5654         * stdio-common/printf_size.c: Likewise.
5655         * stdio-common/putw.c: Likewise.
5656         * stdio-common/scanf.c: Likewise.
5657         * stdio-common/sprintf.c: Likewise.
5658         * stdio-common/tmpfile.c: Likewise.
5659         * stdio-common/vfprintf.c: Likewise.
5660         * stdio-common/vfscanf.c: Likewise.
5661         * stdlib/strfmon_l.c: Likewise.
5662         * sunrpc/openchild.c: Likewise.
5663         * sunrpc/xdr_stdio.c: Likewise.
5664         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5665         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5666
5667 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5668
5669         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5670
5671         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5672         in the third column, to generate for the shared library an IFUNC
5673         that uses _dl_vdso_vsym.
5674         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5675         * Makeconfig (object-suffixes-noshared): New variable.
5676
5677         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5678         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5679         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5680         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5681
5682         [BZ #14132]
5683         * include/sys/time.h (__gettimeofday): Remove macro.
5684         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5685         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5686         Remove INTDEF.
5687         (__gettimeofday): Add libc_hidden_def.
5688         (gettimeofday): Add libc_hidden_weak.
5689         * sysdeps/mach/gettimeofday.c: Likewise.
5690         * sysdeps/posix/gettimeofday.c: Likewise.
5691         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5692         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5693         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5694         (__gettimeofday_internal): Remove strong_alias.
5695         (__gettimeofday): Add libc_hidden_def.
5696         (gettimeofday): Add libc_hidden_weak.
5697         * sysdeps/unix/syscalls.list (gettimeofday):
5698         Remove __gettimeofday_internal alias.
5699
5700 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5701             H.J. Lu  <hongjiu.lu@intel.com>
5702
5703         [BZ #12495]
5704         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5705         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5706         (largebin_index_32_big): New.
5707         (largebin_index): Use it for 16-byte alignment.
5708         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5709         correction with front_misalign.
5710
5711 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5715         Likewise.
5716         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5717         Likewise.
5718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5719         Likewise.
5720         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5721         Likewise.
5722         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5723         Likewise.
5724         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5725         Likewise.
5726         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5727         Likewise.
5728         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5729         Likewise.
5730         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5731         Likewise.
5732         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5733         Likewise.
5734         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5735         Likewise.
5736         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5737         Likewise.
5738
5739         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5740         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5741
5742 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5743
5744         [BZ #10846]
5745         [BZ #14036]
5746         * math/libm-test.inc (exp_test): Add test from bug 14036.
5747         (pow_test): Add test from bug 10846.
5748
5749         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5750         and other flags.
5751         (special_function): Do not include flags in test name.
5752         (parse_args): Likewise.
5753         * sysdeps/i386/fpu/libm-test-ulps: Update.
5754         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5755         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5756         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5758
5759         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5760         exceptions.
5761         * math/libm-test.inc ("Philosophy"): Update comment about
5762         exception testing.
5763         (UNDERFLOW_EXCEPTION): New macro.
5764         (UNDERFLOW_EXCEPTION_OK): Likewise.
5765         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5766         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5767         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5768         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5769         (INVALID_EXCEPTION_OK): Update value.
5770         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5771         (OVERFLOW_EXCEPTION_OK): Likewise.
5772         (IGNORE_ZERO_INF_SIGN): Likewise.
5773         (test_exceptions): Handle underflow exceptions.
5774         (acos_test): Update for underflow exception expectations.
5775         (cexp_test): Likewise.
5776         (clog_test): Likewise.
5777         (clog10_test): Likewise.
5778         (csqrt_test): Likewise.
5779         (ctan_test): Likewise.
5780         (ctanh_test): Likewise.
5781         (exp_test): Likewise.
5782         (exp10_test): Likewise.
5783         (exp2_test): Likewise.
5784         (expm1_test): Likewise.
5785         (fma_test): Likewise.
5786         (j0_test): Likewise.
5787         (jn_test): Likewise.
5788         (nexttoward_test): Likewise.
5789         (pow_test): Likewise.
5790         (scalbn_test): Likewise.
5791         (scalbln_test): Likewise.
5792         (tan_test): Likewise.
5793         (y1_test): Likewise.
5794         * sysdeps/i386/fpu/libm-test-ulps: Update.
5795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5796
5797 2012-05-23  David S. Miller  <davem@davemloft.net>
5798
5799         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5800         (__libc_sigaction): Remove unused local variables.
5801
5802 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5803
5804         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5805
5806 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5807
5808         mktime: avoid signed integer overflow
5809         * time/mktime.c (__mktime_internal): Do not mishandle the case
5810         where diff == INT_MIN.
5811
5812         mktime: simplify computation of average
5813         * time/mktime.c (ranged_convert): Use new time_t_avg function
5814         instead of rolling our own (probably-slower) code.
5815
5816         mktime: do not assume signed right shift propagates sign bit
5817         * time/mktime.c (isdst_differ): New static function.
5818         (__mktime_internal): No need to normalize tm_isdst now.
5819         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5820         tm_isdst values.
5821
5822         mktime: merge another wrapv change from gnulib
5823         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5824         from some compilers.
5825
5826         mktime: remove incorrect attempt at unusual arithmetics
5827         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5828         The code didn't really work on such machines anyway.
5829         (TYPE_MINIMUM): Assume two's complement.
5830         (twos_complement_arithmetic): Verify that long_int and time_t
5831         are two's complement (or unsigned, in the latter case).
5832
5833         mktime: check signed shifts on long_int and time_t, too
5834         * time/mktime.c (SHR): Check that shifts work as desired
5835         on the types long_int and time_t too, as SHR is used on
5836         such types.
5837
5838         mktime: do not assume 'long' is wide enough
5839         * time/mktime.c (verify): Move decl up.
5840         (long_int): New type.
5841         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5842         to remove assumption in the code that 'long' is wide enough to
5843         store year values.  This assumption is not true on x32 and on
5844         some non-glibc platforms.
5845
5846         mktime: merge wrapv change from gnulib
5847         * time/mktime.c (WRAPV): New macro.
5848         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5849         (guess_time_tm, __mktime_internal): Do not assume that signed
5850         integer overflow wraps around; modern compilers generate code
5851         where this assumption is no longer valid.
5852
5853 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5854
5855         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5856         Replace "jmp L(pseudo_end)" with "ret".
5857         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5858         Likewise.
5859
5860 2012-05-23  Andreas Jaeger  <aj@suse.de>
5861
5862         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5863         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5864
5865 2012-05-23  Andreas Jaeger  <aj@suse.de>
5866             Maximilian Attems  <max@stro.at>
5867
5868         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5869         New macros.
5870
5871 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5872
5873         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5874         code so that pseudo_end is just ret and the stack pointer is
5875         correct also for static library in error case.
5876
5877 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5878
5879         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5880         move to syscalls.list.
5881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5885
5886         * manual/install.texi (Running make install): Do not mention Linux
5887         kernel version for which pt_chown is not needed.
5888         (Linux): Do not mention problems with nscd with 2.0 kernels.
5889         * INSTALL: Regenerated.
5890
5891 2012-05-23  Andreas Jaeger  <aj@suse.de>
5892
5893         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5894         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5895         macro.
5896         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5897         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5898         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5899         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5900         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5901         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5902         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5903         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5904         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5905         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5906         * sysdeps/unix/sysv/linux/bits/in.h
5907         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5908
5909 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5910
5911         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5912         (PREPARE_VERSION): Just use assert instead, it will be elided
5913         under [NDEBUG] anyway.
5914
5915 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5916
5917         * sysdeps/unix/sysv/linux/Makefile: Include
5918         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5919         (sysdep_routines): Remove sysctl.
5920         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5921         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5922         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5923         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5924         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5925
5926 2012-05-22  Andreas Jaeger  <aj@suse.de>
5927
5928         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5929         that pseudo_end is just ret and the stack pointer is correct also
5930         for static library in error case.
5931
5932 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5933
5934         [BZ #14122]
5935         * nss/nsswitch.c (defconfig_entries): New variable.
5936         (__nss_database_lookup): Don't leak defconfig entries.
5937         (nss_parse_service_list): Don't leak on error paths.
5938         (free_database_entries): New function.
5939         (free_defconfig): New function.
5940         (free_mem): Move common code to free_database_entries.
5941
5942 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5943
5944         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5945         Add arch_prctl.
5946         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5947
5948         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5949         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5950         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5951         New macro.
5952         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5953         (INTERNAL_SYSCALL_TYPES): Likewise.
5954         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5955         (LOAD_REGS_TYPES_[1-6]): Likewise.
5956         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5957         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5958
5959 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5960
5961         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5962         copysignl for GLIBC_2_0.
5963         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5964         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5965         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5966         logbl for GLIBC_2_0.
5967         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5968         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5969
5970 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5971
5972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5973         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5974
5975         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5976         Use "neg %eax".
5977
5978         * time/mktime.c: Update copyright years.
5979
5980 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         mktime: merge comment-quoting-style change from gnulib
5983         * time/mktime.c: Quote 'like this' in comments.
5984         The GNU coding standards suggest that we no longer quote `like this',
5985         as "`" and "'" are typically rendered asymmetrically nowadays.
5986         The typical gnulib style is to quote 'like this' when quoting
5987         code, and "like this" when quoting English.
5988
5989         * time/mktime.c (compile-command): Add "-I.".
5990
5991         mktime: merge mktime-internal.h change from gnulib
5992         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5993
5994         mktime: merge time_r change from gnulib
5995         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5996
5997         mktime: merge DEBUG change from gnulib
5998         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5999         case system <time.h> has a #define.
6000
6001         mktime: merge <sys/types.h> change from gnulib
6002         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6003         since <time.t> is now guaranteed to define time_t.
6004
6005         mktime: merge HAVE_CONFIG_H change from gnulib
6006         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6007
6008 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6011         Use "neg %eax".
6012
6013         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6014         __rlim_t cast.
6015         (struct rusage): Use anonymous union to pad each field to
6016         __syscall_slong_t.
6017
6018 2012-05-21  David S. Miller  <davem@davemloft.net>
6019
6020         * Makefules (o-iterator): Remove .s cases.
6021         (compile-command.s): Delete.
6022         (COMPILE.s): Delete.
6023         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6024
6025 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6026
6027         * configure.in (libc_cv_predef_stack_protector): Only consider
6028         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6029         * configure: Regenerated.
6030
6031 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6032
6033         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6034         New macro.  Use R*LP on int and pointer.
6035         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6036         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6037         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6038         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6039
6040         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6041         [__WORDSIZE_TIME64_COMPAT32] instead of
6042         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6043         (struct utmp): Likewise.
6044         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6045         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6046         Renamed to ...
6047         (__WORDSIZE_TIME64_COMPAT32): This.
6048         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6049         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6050         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6051         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6052         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6053         (__WORDSIZE_TIME64_COMPAT32): New macro.
6054
6055 2012-05-21  Andreas Jaeger  <aj@suse.de>
6056
6057         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6058         only if [SHARED]. Add prototype for __wcschr_ia32.
6059
6060 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6061
6062         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6063         of %rbp unmolested in the jmp_buf while mangling the low bits.
6064         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6065         unmolested high bits of %rbp while demangling the low bits.
6066         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6067
6068 2012-05-21  Andreas Jaeger  <aj@suse.de>
6069
6070         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6071         * sunrpc/svc_simple.c: Use it for registerrpc.
6072         * sunrpc/xcrypt.c: Use it for passwd2des.
6073
6074         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6075
6076 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6077
6078         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6079         Don't define if [__SYSCALL_WORDSIZE != 32].
6080         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6081         New macro.
6082
6083 2012-05-21  Bruno Haible  <bruno@clisp.org>
6084             Andreas Jaeger  <aj@suse.de>
6085
6086         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6087         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6088         inptr and inend for must_buffer_ch.
6089         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6090         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6091         * stdio-common/Makefile (tests): Remove bug15.
6092         (bug15-ENV): Remove macro.
6093         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6094         anymore.
6095
6096 2012-05-19  Andreas Jaeger  <aj@suse.de>
6097             Roland McGrath  <roland@hack.frob.com>
6098
6099         * manual/contrib.texi: Completely rewritten. It contains now an
6100         alphabetical list of contributors and their contributions.
6101
6102 2012-05-21  Richard Henderson  <rth@twiddle.net>
6103
6104         * misc/getauxval.c (__getauxval): Use unsigned long int.
6105         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6106         (getauxval): Use unsigned long int.
6107
6108 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6109
6110         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6111
6112 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6113
6114         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6115         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6116         __alignof__ (long double).
6117
6118 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6119
6120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6121
6122 2012-05-20  Richard Henderson  <rth@twiddle.net>
6123
6124         * misc/getauxval.c: New file.
6125         * misc/sys/auxv.h: New file.
6126         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6127         (routines): Add getauxval.
6128         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6129         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6130         * elf/dl-sysdep.c (_dl_auxv): Remove.
6131         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6132         * elf/dl-support.c (_dl_auxv): New variable.
6133         (_dl_aux_init): Initialize it.
6134         * manual/startup.texi (Auxiliary Vector): New node.
6135         * sysdeps/generic/bits/hwcap.h: New file.
6136         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6137         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6138         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6139         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6140         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6141         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6143         Update.
6144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6147         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6151         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6152
6153 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6154
6155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6156
6157 2012-05-19  David S. Miller  <davem@davemloft.net>
6158
6159         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6160
6161 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6162
6163         [BZ #14123]
6164         * math/s_ccosh.c: Include <float.h>
6165         (__ccosh): Avoid internal overflow calculating sinh and cosh
6166         values before multiplying by sin and cos values.
6167         * math/s_ccoshf.c: Likewise.
6168         * math/s_ccoshl.c: Likewise.
6169         * math/s_csin.c: Likewise.
6170         * math/s_csinf.c: Likewise.
6171         * math/s_csinl.c: Likewise.
6172         * math/s_csinh.c: Likewise.
6173         * math/s_csinhf.c: Likewise.
6174         * math/s_csinhl.c: Likewise.
6175         * math/libm-test.inc (ccos_test): Add more tests.
6176         (ccosh_test): Likewise.
6177         (csin_test): Likewise.
6178         (csinh_test): Likewise.
6179         * sysdeps/i386/fpu/libm-test-ulps: Update.
6180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6181
6182 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6183
6184         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6185         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6186
6187         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6188
6189 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6190
6191         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6192         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6193         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6194         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6195         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6196         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6197         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6198         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6199         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6200         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6201         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6202         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6203         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6204         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6205         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6206         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6207         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6208         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6209         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6210         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6211         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6212         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6213         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6214         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6215         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6216         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6217         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6218         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6219         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6220         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6221         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6222
6223 2012-05-18  Andreas Jaeger  <aj@suse.de>
6224
6225         * csu/.gitignore: Delete.
6226
6227 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6228
6229         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6230         (timex): Use __syscall_slong_t.
6231
6232 2012-05-18  Andreas Jaeger  <aj@suse.de>
6233             Carlos O'Donell  <carlos_odonell@mentor.com>
6234
6235         * manual/install.texi (Configuring and compiling): Update
6236         description about files modified in the source directory.
6237         * INSTALL: Regenerated.
6238
6239 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6240
6241         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6242         value.  Use "or" to set return value to -1.
6243         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6244         negate return value.
6245
6246 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6247
6248         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6249         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6250         failure if the compiler has Graphite support disabled.
6251         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6252         Likewise.
6253         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6254         CFLAGS-memmove.c): Likewise.
6255         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6256         Likewise.
6257
6258 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         * sysdeps/x86_64/x32/_itoa.h: New file.
6261
6262         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6263         getdents system call only if kernel and user dirents have the
6264         same d_ino and d_off.
6265
6266         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6267         LLONG_MAX != LONG_MAX.
6268         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6269         (_fitoa_word): Likewise.
6270
6271         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6272         years.
6273         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6274         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6275         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6276
6277         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6278         include <bits/wordsize.h>.  Check __x86_64__ instead of
6279         __WORDSIZE.
6280         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6281         if __x86_64__ is defined.  Use anonymous union on fpstate.
6282
6283         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6284         anonymous union.
6285
6286 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6287
6288         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6289         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6290         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6291         Refer to _rtld_local_ro instead of _rtld_global_ro.
6292         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6293         Likewise.
6294         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6295         Likewise.
6296         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6297         Likewise.
6298         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6299         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6300         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6301
6302         * sysdeps/powerpc/powerpc32/dl-machine.c
6303         (__elf_machine_runtime_setup) [PROF]: Don't reference
6304         _dl_prof_resolve.
6305
6306 2012-05-18  Andreas Jaeger  <aj@suse.de>
6307
6308         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6309         function only available for GCCs before 3.4 since GCC 3.4
6310         introduced a builtin.
6311         (lrint): Likewise.
6312         (llrintf): Likewise.
6313         (llrint): Likewise.
6314         (fmaxf): Likewise.
6315         (fmax): Likewise.
6316         (fminf): Likewise.
6317         (fmin): Likewise.
6318         (rint): Likewise.
6319         (rintf): Likewise.
6320         (nearbyint): Likewise.
6321         (nearbyintf): Likewise.
6322         (ceil): Likewise.
6323         (ceilf): Likewise.
6324         (floor): Likewise.
6325         (floorf): Likewise.
6326
6327 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6328
6329         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6330         on both fields and cast pointer to __syscall_ulong_t.
6331
6332         * bits/types.h (__fsword_t): New type.
6333         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6334         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6335         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6336         (__FSWORD_T_TYPE): Likewise.
6337         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6338         (__FSWORD_T_TYPE): Likewise.
6339         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6340         (__FSWORD_T_TYPE): Likewise.
6341         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6342         (__FSWORD_T_TYPE): Likewise.
6343         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6344         __SWORD_TYPE with __fsword_t.
6345         (statfs64): Likewise.
6346
6347 2012-05-17  David S. Miller  <davem@davemloft.net>
6348
6349         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6350
6351 2012-05-17  Andreas Jaeger  <aj@suse.de>
6352
6353         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6354         warning.
6355
6356 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6357
6358         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6359
6360 2012-05-17  Andreas Jaeger  <aj@suse.de>
6361
6362         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6363         when it is used.
6364
6365 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6366
6367         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6368
6369 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6370
6371         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6372         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6373
6374 2012-05-17  Andreas Jaeger  <aj@suse.de>
6375             Carlos O'Donell  <carlos_odonell@mentor.com>
6376
6377         [BZ #14059]
6378         * sysdeps/x86_64/multiarch/init-arch.h
6379         (bit_YMM_Usable): Rename to...
6380         (bit_AVX_Usable): ... this.
6381         (bit_FMA4_Usable): New macro.
6382         (bit_XMM_state): New macro.
6383         (bit_YMM_state): New macro.
6384         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6385         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6386         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6387         (CPUID_OSXSAVE): New macro.
6388         (CPUID_AVX): New macro.
6389         (CPUID_FMA4): New macro.
6390         (index_YMM_Usable): Rename to...
6391         (index_AVX_Usable): ... this.
6392         (HAS_AVX): Use HAS_ARCH_FEATURE.
6393         (HAS_FMA4): Likewise.
6394         (HAS_YMM_USABLE): Remove.
6395         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6396         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6397         are present.
6398         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6399         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6400         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6401         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6402         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6403
6404 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6405
6406         * math/libm-test.c: Support platforms without multiple rounding modes.
6407         * math/bug-nextafter.c: Support platforms without FP exceptions.
6408         * math/bug-nexttoward.c: Likewise.
6409         * math/test-fenv.c: Likewise.
6410         * math/test-misc.c: Likewise.
6411         * stdlib/bug-getcontext.c: Likewise.
6412
6413 2012-05-17  Andreas Jaeger  <aj@suse.de>
6414
6415         * manual/examples/search.c (critter_cmp): Change signature to
6416         avoid warnings.
6417         * manual/string.texi (Collation Functions): Likewise.
6418
6419 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6420
6421         * bits/types.h: Fold copyright years.
6422         * bits/typesizes.h: Likewise.
6423         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6424         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6425         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6426         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6427         * time/time.h: Likewise.
6428
6429 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6430
6431         [BZ #208]
6432         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6433         in instead of returning them.  Return void.
6434         (__libc_mallinfo): Accumulate over all arenas.
6435         (__malloc_stats): Adjust for change in int_mallinfo interface.
6436
6437 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6438
6439         [BZ #10375]
6440         * configure.in (NM): Add AC_CHECK_TOOL for it.
6441         (libc_extra_cflags): New substituted variable.
6442         Check for -fstack-protector being used implicitly.
6443         * configure: Regenerated.
6444         * config.make.in (config-extra-cflags): New variable,
6445         gets @libc_extra_cflags@.
6446         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6447
6448         [BZ #10375]
6449         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6450         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6451         * configure: Regenerated.
6452         * config.make.in (CPPUNDEFS): New substituted variable.
6453         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6454         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6455         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6456
6457 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6458
6459         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6460         (mq_attr): Use __syscall_slong_t.
6461
6462 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6463
6464         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6465         Check __x86_64__ instead of __WORDSIZE.
6466         (_STAT_VER_LINUX): Likewise.
6467         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6468         __syscall_ulong_t and __syscall_slong_t.
6469         (stat64): Likewise.
6470
6471 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6472
6473         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6474
6475 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6476
6477         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6478
6479 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6480
6481         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6482         __syscall_ulong_t.
6483
6484         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6485         include <bits/wordsize.h>.  Check __x86_64__ instead of
6486         __WORDSIZE.
6487         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6488         defined.
6489         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6490
6491         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6492         include <bits/wordsize.h>.  Check __x86_64__ instead of
6493         __WORDSIZE.
6494         (user_regs_struct): Use "__extension__ unsigned long long"
6495         instead of "unsigned long" if __x86_64__ is defined.
6496         (user): Likewise.  Pad after pointer field if __ILP32__ is
6497         defined.
6498
6499 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6500
6501         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6502         versions 5 to 9.
6503         * configure: Regenerated.
6504         * manual/install.texi (texinfo): Increase version requirement to
6505         4.5 or later.
6506         * INSTALL: Regenerated.
6507
6508         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6509
6510 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6511
6512         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6513
6514         * sysdeps/x86_64/x32/ffs.c: New file.
6515
6516         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6517         __syscall_ulong_t.
6518         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6519         defined.  Use __syscall_ulong_t.
6520         (shminfo): Use __syscall_ulong_t.
6521         (shm_info): Likewise.
6522
6523         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6524         __syscall_ulong_t.
6525
6526         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6527         <bits/wordsize.h>.
6528         (msgqnum_t): Use __syscall_ulong_t.
6529         (msglen_t): Likewise.
6530         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6531         __syscall_ulong_t.
6532
6533         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6534         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6535
6536         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6537
6538         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6539         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6540
6541         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6542         __syscall_slong_t.
6543
6544         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6545         include <bits/wordsize.h>.  Check __x86_64__ instead of
6546         __WORDSIZE.
6547
6548         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6549         "unsigned long long int" if __x86_64__ is defined.
6550         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6551
6552         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6553         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6554         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6555
6556         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6557         <stdint.h>.
6558         (GET_PC): Cast to uintptr_t first.
6559         (GET_FRAME): Likewise.
6560         (GET_STACK): Likewise.
6561
6562         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6563         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6564         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6565         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6566         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6567         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6568         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6569         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6570         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6571         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6572         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6573         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6574         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6575         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6576         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6577         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6578         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6579         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6580         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6581         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6582         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6583         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6584         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6585         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6586         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6587         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6588         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6589         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6590         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6591
6592 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6593
6594         * Makerules (+depfiles): Also collect depfiles from .oS in
6595         $(extra-objs).
6596         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6597         .oS, $(libnldbl-routines)).
6598
6599         * Makerules (native-compile-mkdep-flags): Define.
6600         * sunrpc/Makefile (extra-objs): Add $(addprefix
6601         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6602         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6603         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6604         calling $(make-target-directory).
6605
6606 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6607
6608         * bits/types.h (__snseconds_t): Removed.
6609         * time/time.h (struct timespec): Replace __snseconds_t with
6610         __syscall_slong_t.
6611         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6612         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6613         Likewise.
6614         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6615         (__SNSECONDS_T_TYPE): Likewise.
6616         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6617         (__SNSECONDS_T_TYPE): Likewise.
6618         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6619         (__SNSECONDS_T_TYPE): Likewise.
6620
6621 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6622
6623         * sysdeps/mach/hurd/bits/typesizes.h
6624         (__SYSCALL_SLONG_TYPE): New macro.
6625         (__SYSCALL_ULONG_TYPE): Likewise.
6626
6627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         * bits/types.h (__syscall_slong_t): New type.
6630         (__syscall_ulong_t): Likewise.
6631
6632         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6633         (__SYSCALL_ULONG_TYPE): Likewise.
6634         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6635         (__SYSCALL_SLONG_TYPE): Likewise.
6636         (__SYSCALL_ULONG_TYPE): Likewise.
6637         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6638         (__SYSCALL_SLONG_TYPE): Likewise.
6639         (__SYSCALL_ULONG_TYPE): Likewise.
6640         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6641         (__SYSCALL_SLONG_TYPE): Likewise.
6642         (__SYSCALL_ULONG_TYPE): Likewise.
6643
6644 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6645
6646         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6647         Add sigaltstack-offsets.sym.
6648         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6649         <sigaltstack-offsets.h>.
6650         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6651         longjmp_msg pointer.
6652         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6653         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6654         signal stack.
6655         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6656
6657 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6658
6659         * elf/stackguard-macros.h: Remove file.
6660         * sysdeps/generic/stackguard-macros.h: New file.
6661         * sysdeps/i386/stackguard-macros.h: Likewise.
6662         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6663         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6664         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6665         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6666         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6667         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6668         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6669         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6670         <elf/stackguard-macros.h>.
6671
6672         [BZ #14109]
6673         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6674         __aligned__ in attribute.
6675         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6676         (gregset_t): Likewise.
6677
6678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6679
6680         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6681         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6682         * sysdeps/x86_64/x32/Implies-after: New file.
6683
6684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6685
6686         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6687         and access return value for _dl_profile_fixup.  Use R10_LP to
6688         load frame size.
6689
6690 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6693
6694 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6695
6696         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6697         * sysdeps/x86_64/x32/sysdep.h: New file.
6698
6699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6700
6701         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6702         * sysdeps/x86_64/setjmp.S: Likewise.
6703
6704 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6705
6706         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6707         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6708         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6709         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6710         remove unused global constant.
6711
6712 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6713
6714         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6715         include of <not-cancel.h>.
6716
6717 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6718
6719         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6720
6721 2012-05-15  Jeff Law  <law@redhat.com>
6722             Andreas Jaeger  <aj@suse.de>
6723
6724         [BZ #13594]
6725         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6726         out from...
6727         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6728         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6729         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6730         code changing __hst_map_handle.map.
6731
6732 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6733
6734         * configure.in (sysnames): Look for Implies-before and Implies-after
6735         files.
6736         * configure: Regenerated.
6737
6738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6739
6740         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6741         8-byte data alignment with LP_SIZE alignment.
6742
6743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6746         into R10_LP.
6747
6748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6749
6750         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6751
6752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6753
6754         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6755         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6756         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6757         Likewise.
6758         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6759
6760 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6761
6762         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6763         (stackinfo_sub_sp): Likewise.
6764
6765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6766
6767         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6768         RAX_LP.
6769
6770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6773         into R*_LP.
6774
6775 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6776
6777         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6778         sizes into R*_LP.
6779
6780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6783
6784 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6785
6786         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6787         into R11_LP and load __x86_64_shared_cache_size_half into
6788         R8_LP.
6789
6790 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6791
6792         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6793         R8_LP.
6794
6795 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6796
6797         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6798         logb for POWER7.
6799         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6800         logbf for POWER7.
6801         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6802         logbl for POWER7.
6803         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6804         powerpc32/power7/fpu/s_logb.c via #include.
6805         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6806         powerpc32/power7/fpu/s_logbf.c via #include.
6807         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6808         powerpc32/power7/fpu/s_logbl.c via #include.
6809
6810 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6811
6812         * README.libm: Remove file.
6813
6814 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6815
6816         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6817         count for x32.  Use R*_LP and omit operand-size suffix.
6818
6819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6822         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6823         * sysdeps/x86_64/x32/shlib-versions: New file.
6824
6825 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6826
6827         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6828         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6829         Use _dl_fatal_printf instead.
6830
6831 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6832
6833         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6834         set if not set by the user.  Do not allow for being unset.
6835         * sysdeps/unix/sysv/linux/configure: Regenerated.
6836
6837 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6838
6839         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6840         the `q' suffix from lea and replace .quad with ASM_ADDR.
6841
6842 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6843
6844         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6845         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6846         instead of $17.
6847         (PTR_DEMANGLE): Likewise.
6848
6849 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6850
6851         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6852         (LP_OP): Likewise.
6853         (ASM_ADDR): Likewise.
6854         (RAX_LP): Likewise.
6855         (RBP_LP): Likewise.
6856         (RBX_LP): Likewise.
6857         (RCX_LP): Likewise.
6858         (RDI_LP): Likewise.
6859         (RSI_LP): Likewise.
6860         (RSP_LP): Likewise.
6861         (R8_LP): Likewise.
6862         (R9_LP): Likewise.
6863         (R10_LP): Likewise.
6864         (R10_LP): Likewise.
6865         (R11_LP): Likewise.
6866         (R12_LP): Likewise.
6867         (R13_LP): Likewise.
6868         (R14_LP): Likewise.
6869         (R15_LP): Likewise.
6870
6871 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6872
6873         * sysdeps/x86_64/x32/dl-machine.h: New file.
6874
6875 2012-05-14  Andreas Jaeger  <aj@suse.de>
6876
6877         * manual/Makefile (subdir): Remove export of subdir.
6878         (all): Remove target.
6879         (.PHONY): Remove all from list.
6880         (mkinstalldirs): Remove.
6881         (.PHONY): Remove installdirs from list.
6882         ($(inst_infodir)/libc.info): Use make-target-directory.
6883         (installdirs): Remove.
6884         (subdir_%): Remove.
6885         (glibc-targets): Remove.
6886         (lib): Remove.
6887         (stubs): Remove.
6888         ($(objpfx)stubs ../po/manual.pot): Remove.
6889         ($(objpfx)stamp%): Remove.
6890         (make-target-directory): Remove.
6891         (subdir_install): Remove.
6892         (routines): Remove.
6893         (aux): Remove.
6894         (sources): Remove.
6895         (objects): Remove.
6896         (headers): Remove.
6897
6898         [BZ #13750]
6899         * manual/.gitignore: Remove, it's not needed anymore.
6900         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6901         all files in it.
6902         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6903         directory.
6904         (texis): Renamed to $(objpfx)texis.
6905         (texis-path): New, contains path to generated files.
6906         (chapters.%): Use texis-path for complete path, add extra argument
6907         libc-texinfo.sh.
6908         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6909         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6910         (summary,texi, stamp-summary): Use complete path of
6911         files. Generate files in build dir.
6912         (dir-add.texi): Build in build dir.
6913         (libm-err.texi,stamp-libm-err): Likewise.
6914         (version.texi, stamp-version): Likewise.
6915         (.%c.texi): Likewise.
6916         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6917         (mostlyclean): Remove target.
6918         (realclean): Remove target.
6919         (generated): Add new variable with contents from mostlyclean and
6920         realclean, remove entries duplicated in common-mostlyclean, add
6921         stamp-libm-err and stamp-version.
6922         (generated-dirs): Add libc directory.
6923         ($(inst_infodir)/libc.info): Install files from build dir.
6924
6925         * manual/install.texi (Configuring and compiling): Adjust since
6926         the info files are not part of the tar ball anymore.
6927
6928 2012-05-14  Andreas Jaeger  <aj@suse.de>
6929
6930         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6931         variable.
6932
6933 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6934
6935         [BZ #13717]
6936         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6937         to 2.2.0 where earlier.
6938         * sysdeps/unix/sysv/linux/configure: Regenerated.
6939         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6940         Remove conditional code.
6941         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6942         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6943         Remove conditional code.
6944         [!__NR_lchown]: Likewise.
6945         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6946         [__NR_lchown]: Likewise.
6947         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6948         comment referencing __ASSUME_LCHOWN_SYSCALL.
6949         * sysdeps/unix/sysv/linux/i386/sigaction.c
6950         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6951         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6952         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6953         Remove conditional code.
6954         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6955         (__protocol_available): Remove #if 0 code.
6956         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6957         conditional code.
6958         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6959         * sysdeps/unix/sysv/linux/kernel-features.h
6960         (__ASSUME_GETCWD_SYSCALL): Don't define.
6961         (__ASSUME_REALTIME_SIGNALS): Likewise.
6962         (__ASSUME_PREAD_SYSCALL): Likewise.
6963         (__ASSUME_PWRITE_SYSCALL): Likewise.
6964         (__ASSUME_POLL_SYSCALL): Likewise.
6965         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6966         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6967         non-SPARC.
6968         (__ASSUME_SIOCGIFNAME): Don't define.
6969         (__ASSUME_MSG_NOSIGNAL): Likewise.
6970         (__ASSUME_SENDFILE): Define unconditionally.
6971         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6972         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6973         conditional code.
6974         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6975         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6976         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6977         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6978         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6979         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6980         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6982         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6983         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6985         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6986         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6988         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6989         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6991         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6992         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6994         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6995         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6997         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6998         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7000         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7001         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7003         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7004         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7005         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7006         Remove conditional code.
7007         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7008         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7009         Remove conditional code.
7010         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7011         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7012         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7013         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7014         Remove conditional code.
7015         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7016         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7017         Remove conditional code.
7018         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7019         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7020         Remove conditional code.
7021         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7022         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7023         Remove conditional code.
7024         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7025         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7026         Remove conditional code.
7027         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7028         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7029         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7030         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7031         * sysdeps/unix/sysv/linux/sigaction.c
7032         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7033         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7034         * sysdeps/unix/sysv/linux/sigpending.c
7035         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7036         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7037         * sysdeps/unix/sysv/linux/sigprocmask.c
7038         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7039         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7040         * sysdeps/unix/sysv/linux/sigsuspend.c
7041         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7042         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7043         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7044         (__libc_missing_rt_sigs): Remove.
7045         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7046         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7047         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7048         Remove conditional code.
7049         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7050         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7051         return 1.
7052         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7053         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7054         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7055         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7056
7057 2012-05-14  Andreas Jaeger  <aj@suse.de>
7058
7059         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7060         it's not used in glibc.
7061         (__coshm1): Likewise.
7062         (__acosh1p): Likewise.
7063         (__sgn): Likewise.
7064
7065         * manual/string.texi (Copying and Concatenation): Add missing
7066         variable in concat example.
7067         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7068
7069 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7070
7071         [BZ #14103]
7072         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7073         __builtin_clzl with __builtin_clzll.
7074
7075 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7076
7077         [BZ #14104]
7078         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7079         libc_freeres_ptr.
7080
7081 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7082
7083         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7084         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7085         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7086         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7087
7088 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7089
7090         * NEWS: Update ia64 info.
7091
7092 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7093
7094         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7095         used as bcopy.
7096
7097 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7098
7099         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7100         * sysdeps/unix/syscalls.list (dup3): Likewise.
7101         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7102         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7103
7104 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7107         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7108
7109 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7110
7111         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7112         thread pointer.
7113         (TLS_IE): Use mov/add instead of movq/addq to load thread
7114         pointer.
7115         (TLS_GD_PREFIX): New.
7116         (TLS_GD): Use it.
7117
7118 2012-05-11  David S. Miller  <davem@davemloft.net>
7119
7120         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7121         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7122         (_FPU_SETCW): Likewise.
7123
7124 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7125
7126         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7127         is 32-byte aligned.
7128
7129 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7130
7131         [BZ #11837]
7132         * iconvdata/gb18030.c: Update tables.
7133         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7134         characters specially.
7135         (BODY for TO_LOOP): Add encoding of missing ranges.
7136
7137 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7138
7139         [BZ #13673]
7140         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7141         * sysdeps/mach/hurd/dup3.c: Likewise.
7142         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7143         * sysdeps/powerpc/memmove.c:: Likewise.
7144
7145 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7146
7147         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7148         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7149
7150 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7151
7152         * elf/elf.h (R_X86_64_RELATIVE64): New.
7153         (R_X86_64_NUM): Updated.
7154         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7155         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7156         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7157         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7158         tst-quad1pie tst-quad2pie
7159         (modules-names): Add tst-quadmod1 tst-quadmod2.
7160         ($(objpfx)tst-quad1): New dependency.
7161         ($(objpfx)tst-quad2): Likewise.
7162         ($(objpfx)tst-quad1pie): Likewise.
7163         ($(objpfx)tst-quad2pie): Likewise.
7164         * sysdeps/x86_64/tst-quad1.c: New file.
7165         * sysdeps/x86_64/tst-quad1pie.c: New file.
7166         * sysdeps/x86_64/tst-quad2.c: Likewise.
7167         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7168         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7169         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7170         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7171         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7172
7173 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7174
7175         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7176         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7177         * streams/stropts.h (t_scalar_t): Define type.
7178
7179         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7180         (_PATH_PRESERVE): Set to "/var/lib".
7181         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7182
7183         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7184         instead of int.
7185
7186         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7187         if __dir_mkfile succeeded.
7188
7189         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7190         checking for _hurd_dtablesize.  Unlock it right after having
7191         finished _hurd_dtable allocation.
7192
7193 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7194
7195         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7196         * sysdeps/mach/hurd/configure: Regenerated.
7197         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7198         special-casing to...
7199         * sysdeps/gnu/configure.in: ... this new file.
7200         * sysdeps/unix/sysv/linux/configure: Regenerated.
7201         * sysdeps/gnu/configure: New generated file.
7202
7203         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7204         for Linux: use nsec instead of usec, as well as:
7205         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7206         members of type struct timespec.
7207         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7208         New macros.
7209         (struct stat64): Likewise.
7210         (_STATBUF_ST_NSEC): New macro.
7211         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7212
7213         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7214         __strtoul_internal rather than strtoul.
7215
7216 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7217
7218         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7219         and reject them.
7220
7221 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7222
7223         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7224         which preserves existing values.
7225         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7226
7227 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7228
7229         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7230         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7231         greater than FD_SETSIZE.
7232
7233 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7234
7235         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7236         allocated, call __vm_protect to finish enabling the existing space, and
7237         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7238         allocate the remainder.
7239
7240 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7241
7242         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7243         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7244
7245 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7246
7247         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7248         sysdeps/mach/hurd/readlink.c.
7249
7250         * posix/tst-sysconf.c (posix_options): Only use
7251         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7252         _POSIX_SYNCHRONIZED_IO when they are defined
7253         * sysdeps/mach/hurd/bits/posix_opt.h:
7254         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7255         (_XOPEN_REALTIME): Undefine macro.
7256         (_XOPEN_REALTIME_THREADS): Undefine macro.
7257         (_XOPEN_SHM): Undefine macro.
7258         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7259         macro to -1.
7260         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7261         macro to -1.
7262         (_POSIX_ASYNC_IO): Undefine macro.
7263         (_POSIX_PRIORITIZED_IO): Undefine macro.
7264         (_POSIX_SPIN_LOCKS): Define macro to -1.
7265
7266         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7267         SA_NODEFER, SA_RESETHAND.
7268         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7269         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7270         F_DUPFD_CLOEXEC.
7271
7272 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7273
7274         * elf/Makefile (pldd-modules): Define unconditionally.
7275
7276 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7277
7278         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7279
7280 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7281
7282         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7283         Return ENOENT when name is empty.
7284         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7285
7286 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7287
7288         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7289
7290         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7291
7292 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7293
7294         Fix mlock in all cases except non-readable pages.
7295         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7296         instead of VM_PROT_ALL as parameter to __vm_wire function.
7297
7298         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7299         (__mkdir): When path is `/', just fail with EEXIST.
7300         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7301
7302 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7303
7304         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7305         <sys/uio.h> (for writev).
7306         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7307         and <sys/param.h> (for MIN).
7308
7309 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7310
7311         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7312         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7313         if interrupted.
7314
7315 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7316
7317         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7318         Depend on against $(link-rpcuserlibs).
7319
7320 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7321
7322         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7323         (__libc_stack_end): Do not use attribute_relro.
7324         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7325         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7326         to libthread-provided value.
7327         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7328         attribute_relro.
7329
7330 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7331
7332         [BZ #3748]
7333         * bits/libc-lock.h (__libc_once_get): New macro.
7334         * sysdeps/mach/bits/libc-lock.h: Likewise.
7335         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7336         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7337         instead of using implementation details.
7338
7339         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7340         * libio/freopen.c: Likewise.
7341         * libio/freopen64.c: Likewise.
7342         * misc/syslog.c: Likewise.
7343         * nscd/connections.c: Likewise.
7344         * nscd/netgroupcache.c: Likewise.
7345         * sysdeps/posix/getcwd.c: Likewise.
7346
7347 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7348
7349         * math/w_ilogbf.c: Add #include <limits.h>.
7350
7351 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7352
7353         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7354         path instead of returning without unlocking.
7355
7356         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7357         immediate-write ioctls.
7358         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7359
7360 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7361
7362         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7363         __builtin_frame_address instead of making assumptions about the
7364         location of the return address relative to DATA.  Force early load of
7365         the return address.
7366         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7367         __builtin_frame_address.
7368
7369         dup3 for GNU Hurd.
7370         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7371         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7372         implement dup3 and do some further code clean-ups.
7373         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7374         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7375
7376 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7377
7378         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7379
7380         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7381         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7382         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7383         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7384         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7385         d->port.lock.
7386
7387         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7388         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7389         when handler == SIG_ERR, not when handler != SIG_ERR.
7390
7391 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7392
7393         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7394         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7395         definitions.
7396
7397         accept4 for GNU Hurd.
7398         * include/sys/socket.h (__libc_accept4): New prototype.
7399         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7400         to implement __libc_accept4.
7401         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7402         __libc_accept4.
7403         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7404
7405         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7406         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7407         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7408         signal-defines.sym.
7409
7410 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7411
7412         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7413
7414 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7415
7416         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7417         assertion on O_CLOEXEC flag.
7418         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7419         * hurd/intern-fd.c: Likewise.
7420         * hurd/port2fd.c: Likewise.
7421
7422 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7423
7424         [BZ #3906]
7425         * bits/in.h (IPV6_PKTINFO): Define new macro.
7426         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7427
7428 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7429
7430         [BZ #13954]
7431         [BZ #13955]
7432         [BZ #13956]
7433         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7434         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7435         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7436         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7437         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7438         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7439         * math/libm-test.inc (logb_test) : Additional logb tests.
7440
7441 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7442             Andreas Jaeger  <aj@suse.de>
7443
7444         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7445         * configure: Regenerated.
7446         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7447         * config.make.in (link-obsolete-rpc): New substituted variable.
7448         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7449         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7450         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7451         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7452         so that libc.a contains the symbols.
7453         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7454         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7455         * sunrpc/auth_none.c: Likewise.
7456         * sunrpc/auth_unix.c: Likewise.
7457         * sunrpc/authdes_prot.c: Likewise.
7458         * sunrpc/authuxprot.c: Likewise.
7459         * sunrpc/clnt_gen.c: Likewise.
7460         * sunrpc/clnt_perr.c: Likewise.
7461         * sunrpc/clnt_raw.c: Likewise.
7462         * sunrpc/clnt_simp.c: Likewise.
7463         * sunrpc/clnt_tcp.c: Likewise.
7464         * sunrpc/clnt_udp.c: Likewise.
7465         * sunrpc/clnt_unix.c: Likewise.
7466         * sunrpc/des_crypt.c: Likewise.
7467         * sunrpc/des_soft.c: Likewise.
7468         * sunrpc/get_myaddr.c: Likewise.
7469         * sunrpc/key_call.c: Likewise.
7470         * sunrpc/key_prot.c: Likewise.
7471         * sunrpc/netname.c: Likewise.
7472         * sunrpc/pm_getmaps.c: Likewise.
7473         * sunrpc/pm_getport.c: Likewise.
7474         * sunrpc/pmap_clnt.c: Likewise.
7475         * sunrpc/pmap_prot.c: Likewise.
7476         * sunrpc/pmap_prot2.c: Likewise.
7477         * sunrpc/pmap_rmt.c: Likewise.
7478         * sunrpc/publickey.c: Likewise.
7479         * sunrpc/rpc_cmsg.c: Likewise.
7480         * sunrpc/rpc_common.c: Likewise.
7481         * sunrpc/rpc_dtable.c: Likewise.
7482         * sunrpc/rpc_prot.c: Likewise.
7483         * sunrpc/rpc_thread.c: Likewise.
7484         * sunrpc/rtime.c: Likewise.
7485         * sunrpc/svc.c: Likewise.
7486         * sunrpc/svc_auth.c: Likewise.
7487         * sunrpc/svc_raw.c: Likewise.
7488         * sunrpc/svc_run.c: Likewise.
7489         * sunrpc/svc_tcp.c: Likewise.
7490         * sunrpc/svc_udp.c: Likewise.
7491         * sunrpc/svc_unix.c: Likewise.
7492         * sunrpc/svcauth_des.c: Likewise.
7493         * sunrpc/xcrypt.c: Likewise.
7494         * sunrpc/xdr.c: Likewise.
7495         * sunrpc/xdr_array.c: Likewise.
7496         * sunrpc/xdr_float.c: Likewise.
7497         * sunrpc/xdr_intXX_t.c: Likewise.
7498         * sunrpc/xdr_mem.c: Likewise.
7499         * sunrpc/xdr_rec.c: Likewise.
7500         * sunrpc/xdr_ref.c: Likewise.
7501         * sunrpc/xdr_sizeof.c: Likewise.
7502         * sunrpc/xdr_stdio.c: Likewise.
7503
7504 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7505
7506         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7507         change.  Update copyright years.
7508
7509 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7510
7511         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7512
7513 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7514             Joseph Myers  <joseph@codesourcery.com>
7515             Paul Pluzhnikov  <ppluzhnikov@google.com>
7516
7517         [BZ #14012]
7518         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7519         requiring rpcgen.
7520         [cross-compiling] (extra-libs): Likewise.
7521         [cross-compiling] (extra-libs-others): Likewise.
7522         [cross-compiling] (librpcsvc-routines): Likewise.
7523         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7524         [cross-compiling] (omit-deps): Likewise.
7525         (sunrpc-CPPFLAGS): New variable.
7526         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7527         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7528         (cross-rpcgen-objs): New variable.
7529         (extra-objs): Append $(cross-rpcgen-objs).
7530         ($(cross-rpcgen-objs)): New rule.
7531         ($(objpfx)cross-rpcgen): Likewise.
7532         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7533         comment.
7534         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7535         ($(objpfx)x%.stmp): Likewise.
7536         * sunrpc/proto.h [IS_IN_build] (_): Define.
7537         [IS_IN_build] (_libc_intl_domainname): Likewise.
7538
7539 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7540
7541         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7542         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7543         and R_X86_64_TPOFF64.
7544
7545 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7546
7547         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7548         sysdeps/unix/sysv/syscalls.list.
7549         (stime): Likewise.
7550         (utime): Likewise.
7551         * sysdeps/unix/sysv/syscalls.list: Remove file.
7552
7553 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7554
7555         [BZ #3440]
7556         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7557         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7558         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7559         (__LC_IDENTIFICATION): Make these macros useful in #if
7560         expressions, as required by C99.
7561
7562 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7563
7564         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7565         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7566         after this.
7567
7568 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7569
7570         * stdlib/longlong.h: Updated from GCC.
7571
7572 2012-05-09  Andreas Jaeger  <aj@suse.de>
7573
7574         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7575         default is first entry.
7576         (run_mode): Set type.
7577         (main): Remove informal message about syslog.
7578         (options): Fix typo.
7579
7580         [BZ #14053]
7581         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7582         to asm.
7583         (lrint): Likewise.
7584         (llrintf): Likewise.
7585         (llrint): Likewise.
7586         (rint): Likewise.
7587         (rintf): Likewise.
7588         (nearbyint): Likewise.
7589         (nearbyintf): Likewise.
7590
7591 2012-05-09  Andreas Jaeger  <aj@suse.de>
7592             Pedro Alves  <palves@redhat.com>
7593
7594         * nscd/nscd.c (run_mode): Use enum.
7595         (main): Cleanup coding style issue.
7596
7597 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7598             Andreas Jaeger  <aj@suse.de>
7599
7600         * nscd/nscd.c (go_background): Replaced with...
7601         (run_mode): ... this.
7602         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7603         (options): Add -F --foreground.
7604         (main): Implement it.
7605         (parse_opt): Parse it.
7606
7607 2012-05-09  Andreas Jaeger  <aj@suse.de>
7608
7609         [BZ #14083]
7610         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7611         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7612         -Wconversion warning.
7613         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7614         Likewise.
7615
7616 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7617
7618         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7619         == 0.
7620         (LC_ALL): Use macro-int-constant.
7621         (LC_COLLATE): Likewise.
7622         (LC_CTYPE): Likewise.
7623         (LC_MESSAGES): Likewise.
7624         (LC_MONETARY): Likewise.
7625         (LC_NUMERIC): Likewise.
7626         (LC_TIME): Likewise.
7627         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7628         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7629         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7630         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7631         Specify type.
7632         [C99-based standards] (float_t): Expect type.
7633         [C99-based standards] (double_t): Expect type.
7634         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7635         type.
7636         [C99-based standards] (HUGE_VALL): Likewise.
7637         [C99-based standards] (INFINITY): Likewise.
7638         [C99-based standards] (NAN): Likewise.
7639         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7640         [C99-based standards] (FP_NAN): Likewise.
7641         [C99-based standards] (FP_NORMAL): Likewise.
7642         [C99-based standards] (FP_SUBNORMAL): Likewise.
7643         [C99-based standards] (FP_ZERO): Likewise.
7644         [C99-based standards] (FP_FAST_FMA): Use
7645         optional-macro-int-constant.  Specify type.  Require == 1.
7646         [C99-based standards] (FP_FAST_FMAF): Likewise.
7647         [C99-based standards] (FP_FAST_FMAL): Likewise.
7648         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7649         [C99-based standards] (FP_ILOGBNAN): Likewise.
7650         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7651         Specify type.
7652         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7653         [C99-based standards] (math_errhandling): Specify type.
7654         [ISO99 || ISO11] (signgam): Do not allow.
7655         [non-C99-based standards] (copysignf): Do not allow.
7656         [non-C99-based standards] (exp2f): Likewise.
7657         [non-C99-based standards] (log2f): Likewise.
7658         [non-C99-based standards] (modff): Allow.
7659         [non-C99-based standards] (erff): Do not allow.
7660         [non-C99-based standards] (erfcf): Likewise.
7661         [non-C99-based standards] (gammaf): Likewise.
7662         [non-C99-based standards] (hypotf): Likewise.
7663         [non-C99-based standards] (j0f): Likewise.
7664         [non-C99-based standards] (j1f): Likewise.
7665         [non-C99-based standards] (jnf): Likewise.
7666         [non-C99-based standards] (lgammaf): Likewise.
7667         [non-C99-based standards] (tgammaf): Likewise.
7668         [non-C99-based standards] (y0f): Likewise.
7669         [non-C99-based standards] (y1f): Likewise.
7670         [non-C99-based standards] (ynf): Likewise.
7671         [non-C99-based standards] (isnanf): Likewise.
7672         [non-C99-based standards] (acoshf): Likewise.
7673         [non-C99-based standards] (asinhf): Likewise.
7674         [non-C99-based standards] (atanhf): Likewise.
7675         [non-C99-based standards] (cbrtf): Likewise.
7676         [non-C99-based standards] (expm1f): Likewise.
7677         [non-C99-based standards] (ilogbf): Likewise.
7678         [non-C99-based standards] (log1pf): Likewise.
7679         [non-C99-based standards] (logbf): Likewise.
7680         [non-C99-based standards] (nextafterf): Likewise.
7681         [non-C99-based standards] (remainderf): Likewise.
7682         [non-C99-based standards] (rintf): Likewise.
7683         [non-C99-based standards] (scalbf): Likewise.
7684         [non-C99-based standards] (copysignl): Likewise.
7685         [non-C99-based standards] (exp2l): Likewise.
7686         [non-C99-based standards] (log2l): Likewise.
7687         [non-C99-based standards] (modfl): Allow.
7688         [non-C99-based standards] (erfl): Do not allow.
7689         [non-C99-based standards] (erfcl): Likewise.
7690         [non-C99-based standards] (gammal): Likewise.
7691         [non-C99-based standards] (hypotl): Likewise.
7692         [non-C99-based standards] (j0l): Likewise.
7693         [non-C99-based standards] (j1l): Likewise.
7694         [non-C99-based standards] (jnl): Likewise.
7695         [non-C99-based standards] (lgammal): Likewise.
7696         [non-C99-based standards] (tgammal): Likewise.
7697         [non-C99-based standards] (y0l): Likewise.
7698         [non-C99-based standards] (y1l): Likewise.
7699         [non-C99-based standards] (ynl): Likewise.
7700         [non-C99-based standards] (isnanl): Likewise.
7701         [non-C99-based standards] (acoshl): Likewise.
7702         [non-C99-based standards] (asinhl): Likewise.
7703         [non-C99-based standards] (atanhl): Likewise.
7704         [non-C99-based standards] (cbrtl): Likewise.
7705         [non-C99-based standards] (expm1l): Likewise.
7706         [non-C99-based standards] (ilogbl): Likewise.
7707         [non-C99-based standards] (log1pl): Likewise.
7708         [non-C99-based standards] (logbl): Likewise.
7709         [non-C99-based standards] (nextafterl): Likewise.
7710         [non-C99-based standards] (remainderl): Likewise.
7711         [non-C99-based standards] (rintl): Likewise.
7712         [non-C99-based standards] (scalbl): Likewise.
7713         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7714         [non-C99-based standards] (FP_*): Do not allow.
7715         [C99-based standards] (FP_*): Change to
7716         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7717         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7718         allow.
7719         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7720         (SIG_ERR): Likewise.
7721         [X/Open-based standards] (SIG_HOLD): Likewise.
7722         (SIG_IGN): Likewise.
7723         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7724         positive value.
7725         (SIGFPE): Likewise.
7726         (SIGILL): Likewise.
7727         (SIGINT): Likewise.
7728         (SIGSEGV): Likewise.
7729         (SIGTER): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7748         [X/Open-based standards] (SIGTRAP): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7753         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7754         allow.
7755
7756 2012-05-08  Ian Wienand  <ianw@vmware.com>
7757
7758         [BZ #14080]
7759         * time/tzset.c (__tzset_parse_tz): Update default rules for
7760         daylight time changes in the Energy Policy Act of 2005.
7761
7762 2012-05-09  Andreas Jaeger  <aj@suse.de>
7763
7764         [BZ #13983]
7765         * elf/ldconfig.c (parse_conf): Change string to make clear that
7766         ldconfig only issued a warning if ld.so.conf does not exist.
7767
7768 2012-05-08  David S. Miller  <davem@davemloft.net>
7769
7770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7771         movxtod instead of popping the value on the stack.
7772
7773         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7774
7775 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7776
7777         * config.h.in: Add HAVE_ARM_PCS_VFP.
7778
7779 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7780
7781         [BZ #13979]
7782         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7783         checking but the checks are disabled for any reason.
7784
7785 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7788         and ELF64_R_TYPE with ELFW(R_TYPE).
7789
7790 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7791
7792         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7793         (ulimit): Likewise.
7794
7795         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7796         (settimeofday): Likewise.
7797
7798 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7799
7800         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7801         a struct th_u2 inside the union, and move tu_block/tu_code into
7802         a new th_u3 union of tu_block/tu_code inside of that.  Move
7803         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7804         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7805         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7806         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7807         (th_stuff): Change to th_u1.tu_stuff.
7808         (th_data): Define.
7809         (th_msg): Change to th_u1.th_u2.tu_data.
7810
7811 2012-05-07  David S. Miller  <davem@davemloft.net>
7812
7813         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7814
7815         [BZ #14074]
7816         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7817         (SETUP_PIC_REG): Use it.
7818         (SETUP_PIC_REG_LEAF): Use it.
7819
7820 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7821
7822         [BZ #13885]
7823         [BZ #13923]
7824         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7825         USE_AS_EXPM1L.
7826         (EXPL_FINITE): Likewise.
7827         (FLDLOG): Likewise.
7828         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7829         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7830         e_expl.S.
7831         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7832         USE_AS_EXPM1L.
7833         (EXPL_FINITE): Likewise.
7834         (FLDLOG): Likewise.
7835         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7836         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7837         e_expl.S.
7838         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7839         test of -max_value argument for long double.
7840         * sysdeps/i386/fpu/libm-test-ulps: Update.
7841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7842
7843 2012-05-06  David S. Miller  <davem@davemloft.net>
7844
7845         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7846         quad soft-float symbols whose references which are compiler
7847         generated.
7848         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7849
7850 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7851
7852         [BZ #13884]
7853         [BZ #13914]
7854         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7855         USE_AS_EXP10L.
7856         (EXPL_FINITE): Likewise.
7857         (FLDLOG): Likewise.
7858         (c0): Likewise.
7859         (c1): Likewise.
7860         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7861         Adjust comments for base varying.
7862         (__expl_finite): Change alias to EXPL_FINITE.
7863         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7864         e_expl.S.
7865         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7866         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7867         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7868         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7869         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7870         USE_AS_EXP10L.
7871         (EXPL_FINITE): Likewise.
7872         (FLDLOG): Likewise.
7873         (c0): Likewise.
7874         (c1): Likewise.
7875         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7876         Adjust comments for base varying.
7877         (__expl_finite): Change alias to EXPL_FINITE.
7878         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7879         tests for bugs.
7880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7881
7882         [BZ #14064]
7883         * math/libm-test.inc (check_float_internal): Correct ulp
7884         calculation for subnormal expected results.
7885
7886 2012-05-06  Andreas Jaeger  <aj@suse.de>
7887
7888         * Makeconfig (+math-flags): New, set to -frounding-math.
7889         (+cflags): Add +math-flags so that all of glibc gets compiled with
7890         it.
7891
7892         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7893
7894 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7895
7896         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7897         Disable one test.
7898
7899         [BZ #13787]
7900         [BZ #13922]
7901         [BZ #14036]
7902         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7903         (__ieee754_expl): Allow for and saturate large arguments.
7904         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7905         (u_threshold): Likewise.
7906         (__exp): Call __ieee754_exp before checking for overflow and
7907         underflow.
7908         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7909         (u_threshold): Likewise.
7910         (__expf): Call __ieee754_expf before checking for overflow and
7911         underflow.
7912         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7913         (u_threshold): Likewise.
7914         (__expl): Call __ieee754_expl before checking for overflow and
7915         underflow.
7916         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7917         (__ieee754_expl): Allow for and saturate large arguments.
7918         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7919         missing overflow exception on overflow.
7920         (expm1_test): Do not allow missing overflow exception on overflow.
7921
7922         * sysdeps/i386/fpu/e_expl.c: Move to ...
7923         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7924         rather than using inline asm.
7925         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7926         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7927         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7928
7929         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7930         (nice): Likewise.
7931         (poll): Likewise.
7932         (signal): Likewise.
7933         (time): Likewise.
7934         (times): Likewise.
7935
7936 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7937
7938         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7939         sysdeps/unix/common/syscalls.list.
7940         (fchmod): Likewise.
7941         (fchown): Likewise.
7942         (ftruncate): Likewise.
7943         (getrusage): Likewise.
7944         (gettimeofday): Likewise.
7945         (setpgid): Likewise.
7946         (setregid): Likewise.
7947         (setreuid): Likewise.
7948         (sigaction): Likewise.
7949         (truncate): Likewise.
7950         (vhangup): Likewise.
7951         * sysdeps/unix/common/syscalls.list: Remove file.
7952         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7953         * sysdeps/unix/sysv/linux/Implies: Likewise.
7954
7955 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7956
7957         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7959         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7960         Moved to ...
7961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7962         Here.
7963         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7964         to ...
7965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7966         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7967         to ...
7968         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7969         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7970         to ...
7971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7972         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7973         to ...
7974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7975         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7976         to ...
7977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7978         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7979         to ...
7980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7981         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7982         to ...
7983         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7984         Here.
7985         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7986         to ...
7987         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7988         Here.
7989         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7990         to ...
7991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7992         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7993         Moved to ...
7994         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7995         Here.
7996         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7997         to ...
7998         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7999
8000 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8001
8002         * sysdeps/unix/common/bits/dirent.h: Remove file.
8003         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8004
8005         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8006         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8007         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8008         * sysdeps/unix/bsd/isatty.c: Likewise.
8009         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8010         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8011         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8012
8013 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8014
8015         [BZ #13563]
8016         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8017         long double comparison inaccuracies.
8018         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8020
8021 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8022
8023         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8024         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8025
8026 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8027
8028         [BZ #14049]
8029         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8030         nonzero digits before rounding a hex value.
8031         * stdlib/tst-strtod.c (tests): Add another test.
8032
8033 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8034
8035         * sysdeps/s390/fpu/libm-test-ulps: Update.
8036
8037 2012-05-03  Andreas Jaeger  <aj@suse.de>
8038
8039         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8040         does not get optimized out.
8041         (malloc_opt_barrier): New.
8042
8043 2012-05-03  Andreas Jaeger  <aj@suse.de>
8044             Roland McGrath  <roland@hack.frob.com>
8045
8046         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8047         intermediate file deletion.
8048         (generated): Add .symlist files.
8049
8050 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8051
8052         [BZ #13775]
8053         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8054         Redirect under this condition.
8055         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8056         [__USE_GNU] (__dprintf_chk): Not under this condition.
8057         [__USE_GNU] (__vdprintf_chk): Likewise.
8058         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8059         under this condition.
8060         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8061         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8062         [__USE_XOPEN2K8] (vdprintf): Likewise.
8063         [__USE_GNU] (__dprintf_chk): Not under this condition.
8064         [__USE_GNU] (__vdprintf_chk): Likewise.
8065         [__USE_GNU] (dprintf): Likewise.
8066         [__USE_GNU] (vdprintf): Likewise.
8067
8068 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8069
8070         * elf/Makefile (common-generated): Set this instead of generated for
8071         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8072         $(all-built-dso)-derived lists.
8073
8074 2012-05-03  Andreas Jaeger  <aj@suse.de>
8075
8076         * sysdeps/i386/fpu/libm-test-ulps: Update.
8077
8078         * FAQ: Removed.
8079         * FAQ.in: Likewise.
8080         * scripts/gen-FAQ.pl: Likewise.
8081         * manual/install.texi (Installation): Point to online location of
8082         FAQ.
8083         * Makefile (files-for-dist): Remove FAQ.
8084         (FAQ): Remove.
8085
8086 2012-05-02  Allan McRae  <allan@archlinux.org>
8087
8088         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8089         (LDFLAGS-reldepmod5.so): Likewise.
8090         (LDFLAGS-reldep6mod1.so): Likewise.
8091         (LDFLAGS-reldep6mod4.so): Likewise.
8092         (LDFLAGS-reldep8mod3.so): Likewise.
8093         (LDFLAGS-unload4mod1.so): Likewise.
8094         (LDFLAGS-unload4mod2.so): Likewise.
8095         (LDFLAGS-tst-initorder): Likewise.
8096         (LDFLAGS-tst-initordera2.so): Likewise.
8097         (LDFLAGS-tst-initordera3.so): Likewise.
8098         (LDFLAGS-tst-initordera4.so): Likewise.
8099         (LDFLAGS-tst-initorderb2.so): Likewise.
8100         (LDFLAGS-noload): Likewise.
8101         (LDFLAGS-next): Likewise.
8102         (LDFLAGS-order2mod1.so): Likewise.
8103         (LDFLAGS-order2mod2.so): Likewise.
8104         (LDFLAGS-tst-initorder2): Likewise.
8105         (LDFLAGS-tst-initorder2a.so): Likewise.
8106         (LDFLAGS-tst-initorder2b.so): Likewise.
8107         (LDFLAGS-tst-initorder2c.so): Likewise.
8108         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8109
8110 2012-05-02  David S. Miller  <davem@davemloft.net>
8111
8112         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8113
8114 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8115
8116         [BZ #14055]
8117         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8118
8119 2012-05-02  Andreas Jaeger  <aj@suse.de>
8120
8121         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8122         since we manipulate rounding mode.
8123         (CPPFLAGS-test-idouble.c): Likewise.
8124         (CPPFLAGS-test-ifloat.c): Likewise.
8125         (CFLAGS-test-ldouble.c): Likewise.
8126         (CFLAGS-test-double.c): Likewise.
8127         (CFLAGS-test-float.c): Likewise.
8128         (CFLAGS-test-misc.c): Likewise.
8129         (CFLAGS-test-test-fenv.c): Likewise.
8130
8131 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8132
8133         [BZ #2550]
8134         [BZ #2570]
8135         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8136         comparisons to determine direction to adjust input.
8137
8138 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8139
8140         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8141         output to the target.
8142
8143         * scripts/localplt.awk: New file.
8144         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8145         (check-localplt-CFLAGS): Variable removed.
8146         ($(all-built-dso:=.jmprel)): New static pattern rule.
8147         (generated): Add those targets.
8148         (localplt-built-dso): New variable.
8149         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8150
8151         * elf/check-localplt.c: File removed.
8152
8153         * scripts/check-execstack.awk: New file.
8154         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8155         (check-execstack-CFLAGS): Variable removed.
8156         ($(objpfx)check-execstack.h): Target removed.
8157         ($(objpfx)execstack-default): New target.
8158         (generated): Add that instead of check-execstack.h.
8159         ($(all-built-dso:=.phdr)): New static pattern rule.
8160         (generated): Add those targets.
8161         * elf/check-execstack.c: File removed.
8162
8163         * scripts/check-textrel.awk: New file.
8164         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8165         (check-textrel-CFLAGS): Variable removed.
8166         (all-built-dso): Use := to define.o
8167         ($(all-built-dso:=.dyn)): New static pattern rule.
8168         (generated): Add those targets.
8169         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8170         * config.make.in (READELF): New substituted variable.
8171         * elf/check-textrel.c: File removed.
8172
8173 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8174
8175         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8176         allow.
8177         * conform/data/ctype.h-data [C99-based standards] (isblank):
8178         Expect function.
8179         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8180         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8181         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8182         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8183         Specify type.  Require positive value.
8184         (EILSEQ): Likewise.
8185         (ERANGE): Likewise.
8186         [ISO || POSIX] (EILSEQ): Do not expect.
8187         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8188         Specify type.  Require positive value.
8189         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8209         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8210         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8223         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8224         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8225         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8226         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8227         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8228         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8229         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8230         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8231         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8232         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8233         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8234         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8235         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8236         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8237         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8238         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8239         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8240         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8241         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8242         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8243         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8244         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8245         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8246         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8247         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8248         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8249         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8250         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8251         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8252         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8253         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8254         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8255         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8256         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8257         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8258         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8259         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8260         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8261         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8262         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8263         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8264         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8265         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8266         Require >= 2.
8267         (FLT_ROUNDS): Expect as macro, not constant.
8268         (FLT_MANT_DIG): Use macro-int-constant.
8269         (DBL_MANT_DIG): Likewise.
8270         (LDBL_MANT_DIG): Likewise.
8271         (FLT_DIG): Likewise.
8272         (DBL_DIG): Likewise.
8273         (LDBL_DIG): Likewise.
8274         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8275         (DBL_MIN_EXP): Likewise.
8276         (LDBL_MIN_EXP): Likewise.
8277         (FLT_MAX_EXP): Use macro-int-constant.
8278         (DBL_MAX_EXP): Likewise.
8279         (LDBL_MAX_EXP): Likewise.
8280         (FLT_MAX_10_EXP): Likewise.
8281         (DBL_MAX_10_EXP): Likewise.
8282         (LDBL_MAX_10_EXP): Likewise.
8283         (FLT_MAX): Use macro-constant.
8284         (DBL_MAX): Likewise.
8285         (LDBL_MAX): Likewise.
8286         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8287         (DBL_EPSILON): Likewise.
8288         (LDBL_EPSILON): Likewise.
8289         (FLT_MIN): Likewise.
8290         (DBL_MIN): Likewise.
8291         (LDBL_MIN): Likewise.
8292         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8293         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8294         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8295         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8296         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8297         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8298         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8299         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8300         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8301         [ISO11] (FLT_TRUE_MIN): Likewise.
8302         [ISO11] (LDBL_TRUE_MIN): Likewise.
8303         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8304         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8305         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8306         (SCHAR_MAX): Likewise.
8307         (UCHAR_MAX): Likewise.
8308         (CHAR_MIN): Likewise.
8309         (CHAR_MAX): Likewise.
8310         (MB_LEN_MAX): Use macro-int-constant.
8311         (SHRT_MIN): Use macro-int-constant.  Specify type.
8312         (SHRT_MAX): Likewise.
8313         (USHRT_MAX): Likewise.
8314         (INT_MAX): Likewise.
8315         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8316         bound negative.
8317         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8318         bound with "U".
8319         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8320         bound with "L".
8321         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8322         bound negative.  Suffix upper bound with "L".
8323         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8324         bound with "UL".
8325         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8326         Specify type.
8327         [C99-based standards] (LLONG_MAX): Likewise.
8328         [C99-based standards] (ULLONG_MAX): Likewise.
8329         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8330         == 0.
8331         [ISO11] (max_align_t): Require type.
8332         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8333
8334         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8335         from $CFLAGS, without defining away __attribute__ calls.
8336         (checknamespace): Use $CFLAGS_namespace.
8337
8338         * conform/conformtest.pl (@keywords): Only include C99 keywords
8339         for standards based on C99 or C11.
8340
8341         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8342         Disable tests.
8343         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8344         UNIX98]: Likewise.
8345
8346         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8347         usability of symbols in #if.
8348
8349         * conform/conformtest.pl: If macro or constant types start
8350         "promoted:", expect the symbol to be of the following type
8351         promoted by the integer promotions.
8352
8353         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8354         in one place.  Also handle "macro-constant".
8355
8356         * conform/conformtest.pl: Only accept expected macro values with
8357         "==".  Parse all "macro" lines in one place.
8358         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8359
8360         * conform/conformtest.pl: Handle braced types on "constant" lines
8361         instead of handling "typed-constant".
8362         * conform/data/signal.h-data: Use "constant" instead of
8363         "typed-constant".
8364
8365         * conform/conformtest.pl: Handle "optional-" at start of lines in
8366         one place rather than duplicating several cases.  Handle each
8367         format of "macro" line with initial "optional-".
8368
8369         * conform/conformtest.pl: Only accept expected constant or
8370         optional-constant values with "==".  Parse all "constant" lines in
8371         one place.  Parse all "optional-constant" lines in one place.
8372         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8373         * conform/data/fmtmsg.h-data: Likewise.
8374         * conform/data/netinet/in.h-data: Likewise.
8375         * conform/data/tar.h-data: Likewise.
8376         * conform/data/limits.h-data: Use "==" form on "constant" and
8377         "optional-constant" lines.
8378
8379         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8380         Use -std=c99 for XOPEN2K.
8381         (@knownproblems): Remove.
8382         (newtoken): Don't check %isknown.
8383
8384         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8385         Do not expect macro.
8386         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8398         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8399         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8416         [XPG3] (acosh): Likewise.
8417         [XPG3] (asinh): Likewise.
8418         [XPG3] (atanh): Likewise.
8419         [XPG3] (cbrt): Likewise.
8420         [XPG3] (expm1): Likewise.
8421         [XPG3] (ilogb): Likewise.
8422         [XPG3] (log1p): Likewise.
8423         [XPG3] (logb): Likewise.
8424         [XPG3] (nextafter): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8427         [XPG3] (remainder): Likewise.
8428         [XPG3] (rint): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8436         [UNIX98 || XOPEN2K] (scalb): Expect.
8437         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8438         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8574
8575         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8576         _XOPEN_SOURCE_EXTENDED for XPG4.
8577
8578         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8579
8580         * Makeconfig (localtime): Remove variable.
8581         (inst_localtime-file): Likewise.
8582
8583 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8584
8585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8586         Update.
8587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8588         Update.
8589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8590         Update.
8591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8592         Update.
8593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8594         Update.
8595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8596         Update.
8597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8598         Update.
8599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8600         Update.
8601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8602         Update.
8603
8604 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8605
8606         [BZ #2550]
8607         [BZ #2570]
8608         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8609         comparisons to determine direction to adjust input.
8610         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8611         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8612         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8613         Likewise.
8614         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8615         Likewise.
8616         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8617         Likewise.
8618         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8619         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8620         Likewise.
8621         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8622         Likewise.
8623         * math/libm-test.inc (nexttoward_test): Add more tests.
8624
8625 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8626
8627         [BZ #14040]
8628         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8629         in version GLIBC_2.1, not GLIBC_2.0.
8630         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8631         Likewise.
8632
8633 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8634
8635         [BZ #13942]
8636         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8637         (1 - x) * (1 + x).
8638         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8639         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8640         * math/libm-test.inc (acos_test): Add more tests.
8641         (asin_test): Likewise.
8642         * sysdeps/i386/fpu/libm-test-ulps: Update.
8643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8644
8645         [BZ #14034]
8646         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8647         of square root.
8648         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8649         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8650         * math/libm-test.inc (acos_test_tonearest): New function.
8651         (acos_test_towardzero): Likewise.
8652         (acos_test_downward): Likewise.
8653         (acos_test_upward): Likewise.
8654         (asin_test_tonearest): Likewise.
8655         (asin_test_towardzero): Likewise.
8656         (asin_test_downward): Likewise.
8657         (asin_test_upward): Likewise.
8658         (main): Call the new functions.
8659         * sysdeps/i386/fpu/libm-test-ulps: Update.
8660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8661
8662         [BZ #13884]
8663         [BZ #13924]
8664         * math/e_exp10.c: Include <float.h>.
8665         (__ieee754_exp10): Handle underflow here rather than multiplying
8666         large negative argument by M_LN10.
8667         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8668         of __ieee754_expf.
8669         * math/e_exp10l.c: Include <float.h>.
8670         (__ieee754_exp10l): Handle underflow here rather than multiplying
8671         large negative argument by M_LN10l.
8672         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8673         spurious overflow exception on underflow.
8674
8675 2012-04-29  Marek Polacek  <polacek@redhat.com>
8676
8677         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8678         (__fortify_function): New macro.
8679         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8680         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8681         __extern_always_inline.
8682         * libio/bits/stdio2.h: Likewise.
8683         * libio/bits/stdio.h: Likewise.
8684         * string/string.h: Likewise.
8685         * string/bits/string3.h: Likewise.
8686         * include/stdio.h: Likewise.
8687         * stdlib/bits/stdlib.h: Likewise.
8688         * stdlib/stdlib.h: Likewise.
8689         * rt/bits/mqueue2.h: Likewise.
8690         * rt/mqueue.h: Likewise.
8691         * posix/bits/unistd.h: Likewise.
8692         * posix/unistd.h: Likewise.
8693         * io/bits/poll2.h: Likewise.
8694         * io/bits/fcntl2.h: Likewise.
8695         * io/fcntl.h: Likewise.
8696         * io/sys/poll.h: Likewise.
8697         * misc/bits/syslog.h: Likewise.
8698         * misc/bits/syslog-ldbl.h: Likewise.
8699         * misc/sys/syslog.h: Likewise.
8700         * socket/bits/socket2.h: Likewise.
8701         * socket/sys/socket.h: Likewise.
8702         * debug/tst-chk1.c: Likewise.
8703         * wcsmbs/bits/wchar2.h: Likewise.
8704         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8705         * wcsmbs/wchar.h: Likewise.
8706
8707 2012-04-29  Andreas Jaeger  <aj@suse.de>
8708
8709         * Makerules (tests): Remove enable-check-abi protection.
8710         (check-abi-warn): Remove.
8711         (check-abi-%): Remove check-abi-warn usage.
8712
8713         * configure.in: Remove check-abi configure option.
8714         * configure: Regenerated.
8715         * config.make.in (enable-check-abi): Remove.
8716
8717 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8718
8719         [BZ #14033]
8720         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8721         double functions to double *_finite functions.
8722
8723         [BZ #13941]
8724         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8725         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8726         LDBL_MIN_EXP.
8727         * stdio-common/Makefile (tests): Add tst-sprintf3.
8728         * stdio-common/tst-sprintf3.c: New file.
8729
8730         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8731         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8732
8733 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8734
8735         * conform/conformtest.pl: Remove duplicate typed-constant
8736         handling.
8737
8738 2012-04-28  David S. Miller  <davem@davemloft.net>
8739
8740         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8741         (check-abi-%): Remove AWK script prerequisite and explicit
8742         abilist directory.
8743         (check-abi): Rewrite to just diff the symlist with the abilist.
8744         (config-tls, config-abi-config): Delete, no longer used.
8745         (update-abi-%): Remove AWK script and explicit abilist directory.
8746         (update-abi): Rewrite to simply compare and conditionally copy the
8747         symlist and the sysdep abilist file.  Remove update-abi-config
8748         checks.
8749         * abilist/ld.abilist: Remove.
8750         * abilist/libBrokenLocale.abilist: Remove.
8751         * abilist/libanl.abilist: Remove.
8752         * abilist/libcrypt.abilist: Remove.
8753         * abilist/libdl.abilist: Remove.
8754         * abilist/librt.abilist: Remove.
8755         * abilist/libthread_db.abilist: Remove.
8756         * abilist/libutil.abilist: Remove.
8757         * scripts/extract-abilist.awk: Remove.
8758         * scripts/merge-abilist.awk: Remove.
8759         * sysdeps/generic/libcidn.abilist: New file.
8760         * sysdeps/generic/libnss_compat.abilist: New file.
8761         * sysdeps/generic/libnss_db.abilist: New file.
8762         * sysdeps/generic/libnss_dns.abilist: New file.
8763         * sysdeps/generic/libnss_files.abilist: New file.
8764         * sysdeps/generic/libnss_hesiod.abilist: New file.
8765         * sysdeps/generic/libnss_nis.abilist: New file.
8766         * sysdeps/generic/libnss_nisplus.abilist: New file.
8767         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8768         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8769         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8770         file.
8771         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8772         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8773         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8774         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8775         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8776         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8777         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8778         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8779         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8780         file.
8781         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8782         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8783         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8784         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8785         file.
8786         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8787         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8788         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8789         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8790         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8791         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8792         file.
8793         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8794         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8795         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8796         file.
8797         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8798         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8799         New file.
8800         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8801         New file.
8802         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8803         New file.
8804         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8805         New file.
8806         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8807         New file.
8808         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8809         New file.
8810         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8811         New file.
8812         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8813         New file.
8814         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8815         New file.
8816         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8817         New file.
8818         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8819         New file.
8820         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8821         New file.
8822         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8823         New file.
8824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8825         file.
8826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8827         New file.
8828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8829         New file.
8830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8831         file.
8832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8833         New file.
8834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8835         New file.
8836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8837         file.
8838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8839         New file.
8840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8841         New file.
8842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8843         New file.
8844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8845         New file.
8846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8847         New file.
8848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8849         New file.
8850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8851         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8852         file.
8853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8854         New file.
8855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8856         file.
8857         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8858         file.
8859         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8860         file.
8861         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8862         file.
8863         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8864         file.
8865         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8866         New file.
8867         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8868         file.
8869         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8870         file.
8871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8872         New file.
8873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8874         file.
8875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8877         file.
8878         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8879         New file.
8880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8881         file.
8882         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8883         file.
8884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8885         file.
8886         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8887         file.
8888         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8889         file.
8890         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8891         New file.
8892         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8893         file.
8894         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8895         file.
8896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8897         New file.
8898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8899         file.
8900         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8901         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8902         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8903         file.
8904         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8905         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8906         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8907         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8908         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8909         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8910         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8911         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8912         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8913         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8914         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8916         file.
8917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8918         New file.
8919         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8920         file.
8921         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8922         file.
8923         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8924         file.
8925         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8926         file.
8927         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8928         file.
8929         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8930         New file.
8931         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8932         New file.
8933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8934         file.
8935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8936         New file.
8937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8938         file.
8939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8940         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8941         file.
8942         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8943         New file.
8944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8945         file.
8946         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8947         file.
8948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8949         file.
8950         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8951         file.
8952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8953         file.
8954         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8955         New file.
8956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8957         New file.
8958         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8959         file.
8960         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8961         New file.
8962         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8963         file.
8964
8965 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8966
8967         * conform/conformtest.pl: Fix typo in handling typed-constant from
8968         allow-header.
8969
8970 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8971
8972         * README: Cut down references to pre-2.6 Linux kernels and
8973         Linuxthreads.  Update lists of configurations in libc and ports
8974         and sort alphabetically.  Say "or newer" with Linux kernel version
8975         requirements.
8976
8977         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8978
8979 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8980
8981         [BZ #887]
8982         * math/libm-test.inc (logb_test_downward): New test to expose
8983         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8984         rounding mode.
8985
8986 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8987
8988         [BZ #14027]
8989         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8990         to be done.
8991         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8992         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8993
8994 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8995
8996         * sysdeps/unix/i386/brk.S: Remove file.
8997         * sysdeps/unix/i386/dl-brk.S: Likewise.
8998         * sysdeps/unix/i386/pipe.S: Likewise.
8999         * sysdeps/unix/i386/sigreturn.S: Likewise.
9000         * sysdeps/unix/i386/syscall.S: Likewise.
9001         * sysdeps/unix/i386/vfork.S: Likewise.
9002         * sysdeps/unix/i386/wait.S: Likewise.
9003
9004         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9005         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9006
9007         * configure.in (arm*-none*): Do not allow without
9008         --enable-hacker-mode.
9009         (netbsd*): Remove case setting base_os.
9010         (386bsd*): Likewise.
9011         (freebsd*): Likewise.
9012         (bsdi*): Likewise.
9013         (osf*): Likewise.
9014         (sunos*): Likewise.
9015         (ultrix*): Likewise.
9016         (newsos*): Likewise.
9017         (dynix*): Likewise.
9018         (*bsd*): Likewise.
9019         (sysv*): Likewise.
9020         (isc*): Likewise.
9021         (esix*): Likewise.
9022         (sco*): Likewise.
9023         (minix*): Likewise.
9024         (irix4*): Likewise.
9025         (irix6*): Likewise.
9026         (solaris[2-9]*): Likewise.
9027         (none): Likewise.
9028         * configure: Regenerated.
9029
9030 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9031
9032         [BZ #11521]
9033         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9034         overflow or cancellation in calculating denominator.
9035         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9036         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9037         down expression to avoid unexpected rounding in newer GCCs.
9038         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9039
9040 2012-04-26  David S. Miller  <davem@davemloft.net>
9041
9042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9043         long-double compat symbols.
9044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9057
9058 2012-04-25  David S. Miller  <davem@davemloft.net>
9059
9060         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9061         HWCAP_* values only after the memory barriers have been defined.
9062         (atomic_full_barrier): Define.
9063         (atomic_read_barrier): Define.
9064         (atomic_write_barrier): Define.
9065
9066 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9067
9068         * shlib-versions: Add libgcc_s version information.
9069         * sysdeps/generic/libgcc_s.h: Remove.
9070         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9071         libgcc_s.h.
9072         * sysdeps/gnu/unwind-resume.c: Likewise.
9073         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9074
9075 2012-04-25  David S. Miller  <davem@davemloft.net>
9076
9077         * sysdeps/unix/sparc/brk.S: Delete.
9078         * sysdeps/unix/sparc/dl-brk.S: Delete.
9079         * sysdeps/unix/sparc/pipe.S: Delete.
9080         * sysdeps/unix/sparc/sysdep.S: Delete.
9081         * sysdeps/unix/sparc/sysdep.h: Delete.
9082         * sysdeps/unix/sparc/vfork.S: Delete.
9083         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9084         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9085         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9086         ret_ERRVAL, r0, r1, MOVE): Define.
9087         (JUMPTARGET): Remove.
9088         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9089         sysdeps/unix/sparc/sysdep.h
9090         (ENTRY, END): Remove.
9091         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9092
9093 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9094
9095         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9096         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9097         -DIS_IN_build.
9098
9099         * timezone/README: Update upstream location and email address for
9100         tzcode and tzdata.
9101         * timezone/zdump.c: Update from tzcode 2012b.
9102         * timezone/zic.c: Likewise.
9103
9104         * configure.in (libc_cv_as_needed): Remove test.
9105         * configure: Regenerated.
9106         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9107         conditional definition.
9108         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9109         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9110         * config.make.in (have-as-needed): Remove variable.
9111
9112 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9113             Paul Pluzhnikov  <ppluzhnikov@google.com>
9114
9115         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9116         strings correctly.
9117
9118 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9119
9120         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9121         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9122         * sysdeps/sh/strlen.S: Likewise.
9123
9124 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9125
9126         * sysdeps/unix/fork.S: Remove file.
9127         * sysdeps/unix/i386/fork.S: Likewise.
9128         * sysdeps/unix/sparc/fork.S: Likewise.
9129
9130         * sysdeps/unix/system.c: Remove file.
9131         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9132
9133         * sysdeps/unix/getegid.S: Remove file.
9134         * sysdeps/unix/geteuid.S: Likewise.
9135
9136 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9137
9138         * scripts/check-localplt.awk: New file.
9139         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9140         of diff.
9141         * scripts/data/localplt-generic.data: Add a comment.
9142
9143         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9144         NODE when __dir_mkfile failed.
9145         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9146         Reported by Ludovic Courtès <ludo@gnu.org>.
9147
9148 2012-04-24  Andreas Jaeger  <aj@suse.de>
9149
9150         * Makerules (common-clean): Also remove gen-as-const-headers
9151         files.
9152
9153 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9154
9155         * Makerules (native-compile): Do not change working directory for
9156         build.  Use $(OUTPUT_OPTION) in command.
9157         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9158
9159 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9160
9161         [BZ #13886]
9162         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9163         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9164         * math/libm-test.inc (floor_test): Add more tests.
9165         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9166
9167 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9168
9169         * sysdeps/unix/getdents.c: Remove file.
9170         * sysdeps/unix/sysv/getdents.c: Likewise.
9171         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9172
9173         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9174         sysdeps/unix/mman/syscalls.list.
9175         (mmap): Likewise.
9176         (mprotect): Likewise.
9177         (msync): Likewise.
9178         (munmap): Likewise.
9179         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9180         * sysdeps/unix/mman/syscalls.list: Remove.
9181         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9182
9183         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9184         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9185         * configure: Regenerated.
9186         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9187         $(libgcc_s_suffix).
9188         * config.make.in (libgcc_s_suffix): Remove variable.
9189
9190 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9191
9192         * sysdeps/unix/sysv/gethostname.c: Move to ...
9193         * sysdeps/posix/gethostname.c: ... here.
9194
9195         * sysdeps/unix/execve.S: Remove file.
9196
9197         * sysdeps/unix/_exit.S: Remove file.
9198
9199 2012-04-23  Andreas Jaeger  <aj@suse.de>
9200
9201         [BZ #13739]
9202         * manual/Makefile: Remove make dist support, there's no
9203         need for a stand-alone documentation tar ball.
9204         (TEXI2DVI): Define always, it's not in Makeconfig.
9205         (dist): Removed.
9206         (tar-it): Removed.
9207         (edition): Removed.
9208         (glibc-doc-$(edition).tar): Removed
9209         (%.Z): Removed.
9210         (%.gz): Removed.
9211         (%.uu): Removed.
9212         (ETAGS): Remove, it's in Makeconfig.
9213         (move-if-change): Remove, it's in Makeconfig.
9214
9215 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9216
9217         [BZ #13970]
9218         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9219         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9220         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9221         (strtod_l, strtof_l, strtold_l): Remove __wur.
9222         It is not necessarily an error to ignore strtol's return value.
9223         One can reliably look at the stored endptr to decide whether
9224         the number had valid syntax.
9225
9226 2012-04-21  Andreas Jaeger  <aj@suse.de>
9227
9228         [BZ #13739]
9229         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9230
9231 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9232
9233         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9234         * sysdeps/unix/sysv/Versions: Remove file.
9235
9236 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9237
9238         [BZ #13927]
9239         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9240
9241 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9242
9243         [BZ #7064]
9244         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9245         version from __vm86.
9246
9247 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9248
9249         * sysdeps/unix/common/lxstat.c: Remove file.
9250         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9251
9252         * sysdeps/unix/sysv/Makefile: Remove file.
9253
9254         * sysdeps/unix/sysv/direct.h: Remove file.
9255
9256         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9257         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9258         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9259         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9260         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9261         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9262         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9263
9264         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9265
9266         * sysdeps/unix/xmknod.c: Remove file.
9267         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9268
9269         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9270
9271         * sysdeps/unix/sysv/i386/time.S: Remove file.
9272
9273         * sysdeps/unix/fxstat.c: Remove file.
9274         * sysdeps/unix/xstat.c: Likewise.
9275         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9276
9277         * sysdeps/unix/sysv/sigaction.c: Remove file.
9278
9279         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9280         (sysdep_headers): Remove variable.
9281         [termio.h not in sysdep_headers] (generated): Likewise.
9282         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9283         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9284         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9285         * sysdeps/unix/sysv/tcflow.c: Likewise.
9286         * sysdeps/unix/sysv/tcflush.c: Likewise.
9287         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9288         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9289         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9290         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9291         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9292
9293         * sysdeps/unix/siglist.c: Remove file.
9294
9295         * sysdeps/unix/getppid.S: Remove file.
9296
9297         * sysdeps/unix/mkdir.c: Remove file.
9298         * sysdeps/unix/rmdir.c: Likewise.
9299
9300 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9301
9302         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9303         ERR_MAX value.
9304         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9305         errlist-compat value.
9306
9307 2012-04-18  David S. Miller  <davem@davemloft.net>
9308
9309         * sysdeps/generic/memcopy.h (reg_char): Delete.
9310         * debug/strcat_chk.c: Use char, not reg_char.
9311         * debug/strcpy_chk.c: Likewise.
9312         * debug/strncat_chk.c: Likewise.
9313         * debug/strncpy_chk.c: Likewise.
9314         * string/memchr.c: Likewise.
9315         * string/memrchr.c: Likewise.
9316         * string/rawmemchr.c: Likewise.
9317         * string/strcat.c: Likewise.
9318         * string/strchr.c: Likewise.
9319         * string/strchrnul.c: Likewise.
9320         * string/strcmp.c: Likewise.
9321         * string/strcpy.c: Likewise.
9322         * string/strncat.c: Likewise.
9323         * string/strncmp.c: Likewise.
9324         * string/strncpy.c: Likewise.
9325
9326 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9327
9328         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9329         __builtin_memcopy is called when src and dest ranges are known to not
9330         overlap.
9331
9332 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9333
9334         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9335         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9336         fwd_align_merge macro call.
9337         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9338         bwd_align_merge macro call.
9339         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9340
9341 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9342
9343         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9344         bwd_align_merge macros.
9345         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9346         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9347         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9348
9349 2012-04-18  David S. Miller  <davem@davemloft.net>
9350
9351         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9352
9353 2012-04-18  Andreas Jaeger  <aj@suse.de>
9354
9355         [BZ# 6794]
9356         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9357         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9358         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9359
9360         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9361         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9362         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9363
9364         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9365         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9366         Adjust for changed ldbl-128 files.
9367
9368         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9369         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9370         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9371
9372 2012-04-17  David S. Miller  <davem@davemloft.net>
9373
9374         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9375
9376 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9377
9378         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9379         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9380         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9381         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9382         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9383         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9384
9385 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9386
9387         [BZ #6794]
9388         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9389         * math/libm-test.inc: Add ilogb errno and exception tests.
9390         * math/w_ilogb.c: New file: ilogb wrapper.
9391         * math/w_ilogbf.c: New file: ilogbf wrapper.
9392         * math/w_ilogbl.c: New file: ilogbl wrapper.
9393         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9394         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9395         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9396         exception being thrown with 0.0 as argument.
9397         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9398         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9399         exception being thrown with 0.0 as argument.
9400         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9401         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9402         exception being thrown with 0.0 as argument.
9403         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9404         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9405         exception being thrown with 0.0 as argument.
9406         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9407         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9408         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9409         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9410         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9411         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9412         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9413         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9414         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9415
9416 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9417
9418         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9419         with altivec.
9420
9421 2012-04-16  Marek Polacek  <polacek@redhat.com>
9422
9423         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9424
9425 2012-04-16  Marek Polacek  <polacek@redhat.com>
9426
9427         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9428         operands of fdivp instruction.
9429
9430 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9431
9432         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9433         * elf/tst-auditmod3b.c: Likewise.
9434         * elf/tst-auditmod4b.c: Likewise.
9435         * elf/tst-auditmod5b.c: Likewise.
9436         * elf/tst-auditmod6b.c: Likewise.
9437         * elf/tst-auditmod6c.c: Likewise.
9438         * elf/tst-auditmod7b.c: Likewise.
9439         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9440         * sysdeps/x86_64/preconfigure.in: Likewise.
9441         * sysdeps/x86_64/preconfigure: Regenerated.
9442
9443 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9444
9445         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9446         __ILP32__.
9447
9448 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9449
9450         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9451         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9452
9453 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9454
9455         [BZ #13973]
9456         * locale/iso-639.def: Fix gl language name. Spotted by
9457         Yaron Shahrabani.
9458
9459 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9460
9461         [BZ #2074]
9462         * libio/libio.h (__io_write_fn): Update comment.
9463
9464 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9465
9466         [BZ #2074]
9467         * stdio.texi (Hook Functions): The user provided writer function
9468         is not allowed to return -1.
9469
9470 2012-04-11  David S. Miller  <davem@davemloft.net>
9471
9472         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9473
9474 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9475
9476         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9477         Add a leading slash to rtkaio.
9478
9479 2012-04-11  Jim Meyering  <meyering@redhat.com>
9480
9481         [BZ #11959]
9482         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9483         It is not necessarily an error to ignore fwrite's return
9484         value.  One can reliably use ferror to test for errors after
9485         the fact.
9486
9487 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         * bits/types.h (__snseconds_t): New type.
9490         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9491
9492         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9493         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9494         (__SNSECONDS_T_TYPE): Likewise.
9495         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9496         (__SNSECONDS_T_TYPE): Likewise.
9497         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9498         (__SNSECONDS_T_TYPE): Likewise.
9499
9500 2012-04-10  Andreas Jaeger  <aj@suse.de>
9501
9502         [BZ #2636]
9503         * manual/time.texi (Processor Time): Return type of times is
9504         elapsed real time since an arbitrary point in the past.
9505         (CPU Time): Move CLK_TCK from here...
9506         (Processor Time): ...to here.  Correct description.
9507         * manual/conf.texi (Constants for Sysconf): Correct description of
9508         _SC_CLK_TCK.
9509
9510 2012-04-10  David S. Miller  <davem@davemloft.net>
9511
9512         [BZ #13967]
9513         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9514         where the is a gap between DT_REL(A) and DT_JMPREL.
9515
9516 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9517
9518         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9519         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9520         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9521
9522 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9523
9524         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9525         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9526         (dl_main): Handle --inhibit-cache.
9527         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9528         _dl_inhibit_cache.
9529         * elf/dl-load.c (_dl_map_object): Use it.
9530         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9531
9532 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9533
9534         [BZ #13872]
9535         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9536         (__ieee754_powl): Saturate large exponents rather than testing for
9537         overflow of y*log2(x).
9538         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9539         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9540         exceptions.
9541
9542         [BZ #11521]
9543         * math/s_ctan.c: Include <float.h>.
9544         (__ctan): Avoid internal overflow or cancellation in calculating
9545         denominator.
9546         * math/s_ctanf.c: Likewise.
9547         * math/s_ctanl.c: Likewise.
9548         * math/s_ctanh.c: Likewise.
9549         * math/s_ctanhf.c: Likewise.
9550         * math/s_ctanhl.c: Likewise.
9551         * math/libm-test.inc (ctan_test): Add more tests.
9552         (ctanh_test): Likewise.
9553         * sysdeps/i386/fpu/libm-test-ulps: Update.
9554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9555
9556 2012-04-09  Andreas Jaeger  <aj@suse.de>
9557
9558         [BZ #6894]
9559         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9560         is an optional BSD extension.
9561
9562         [BZ #10254]
9563         * manual/stdio.texi (Opening Streams): Document additional fopen
9564         parameters.
9565
9566 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9567
9568         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9569         %eax without telling the compiler.
9570
9571 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9572
9573         [BZ # 13963]
9574         * manual/install.texi: Use sourceware.org.
9575
9576 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9577
9578         [BZ #13873]
9579         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9580         (__ieee754_pow): Generate overflow and underflow using huge*huge
9581         and tiny*tiny rather than just returning constant infinity or zero
9582         for large exponents.
9583         * math/libm-test.inc (pow_test): Require overflow exceptions for
9584         applicable cases of large exponents.
9585
9586         [BZ #706]
9587         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9588         (__ieee754_pow): Use iterative multiplication algorithm only for
9589         integer exponents with absolute value below 1024.  Check for odd
9590         integer exponents when using algorithm for real exponents.
9591         * math/libm-test.inc (pow_test): Add more tests.
9592         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9593
9594 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9595
9596         [BZ #13705]
9597         * math/libm-test.inc (exp_test): Do not allow overflow exception
9598         on underflow test.
9599
9600 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9601
9602         [BZ #13705]
9603         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9604         instead of __kernel_standard_f.
9605
9606 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9607
9608         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9609         * sysdeps/x86_64/memset_chk.S: Likewise.
9610
9611 2012-04-08  Andreas Jaeger  <aj@suse.de>
9612
9613         [BZ #10153]
9614         * manual/startup.texi (Environment Access): Describe return value
9615         for putenv and setenv.
9616
9617         [BZ #6895]
9618         * manual/filesys.texi (Directory Entries): Add description for
9619         DT_LNK.
9620
9621         [BZ #6890]
9622         * manual/filesys.texi (Directory Entries): Clarify that it's file
9623         system not operating system in the description of DT_UNKNOWN.
9624
9625         [BZ #6578]
9626         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9627
9628 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9629
9630         [BZ #6649]
9631         * manual/llio.texi (Opening and Closing Files): Add cross
9632         reference to explain mode argument.
9633
9634 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9635
9636         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9637         * sysdeps/x86_64/memset_chk.S: Likewise.
9638
9639 2012-04-07  David S. Miller  <davem@davemloft.net>
9640
9641         * elf/elf.h (R_SPARC_WDISP10): Define.
9642         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9643         R_SPARC_SIZE32.
9644         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9645         R_SPARC_SIZE64 and R_SPARC_H34.
9646
9647 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9648
9649         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9650         conditions and remove no longer applicable assertion.
9651
9652 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9653
9654         * bits/byteswap.h: Include <features.h>.
9655         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9656         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9657
9658 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9659
9660         * bits/byteswap.h (__bswap_16): Removed.
9661         Include <bits/byteswap-16.h> to get __bswap_16.
9662         * sysdeps/i386/bits/byteswap.h: Likewise.
9663         * sysdeps/s390/bits/byteswap.h: Likewise.
9664         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9665         * bits/byteswap-16.h: New file.
9666         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9667         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9668         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9669         * string/Makefile (headers): Add bits/byteswap-16.h.
9670
9671 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9672
9673         [BZ #13895]
9674         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9675         extra indirection.
9676         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9677         * nss/tst-nss-static.c: New.
9678
9679 2012-04-06  Robert Millan  <rmh@gnu.org>
9680
9681         [BZ #6486]
9682         * manual/llio.texi (File Position Primitive): lseek
9683         refers to WHENCE when it really means OFFSET.
9684
9685 2012-04-06  Andreas Jaeger  <aj@suse.de>
9686
9687         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9688         strncmp declarations.
9689
9690         * abilist/libc.abilist: Add __poll and __ppoll.
9691
9692 2012-04-05  David S. Miller  <davem@davemloft.net>
9693
9694         * scripts/check-local-headers.sh: Accept a host triplet in the
9695         path matched by the exclude regexp.
9696
9697         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9698         definition.
9699         * sysdeps/powerpc/powerpc32/dl-machine.h
9700         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9701         * sysdeps/s390/s390-32/dl-machine.h
9702         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9703         * sysdeps/sparc/sparc32/dl-machine.h
9704         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9705         * sysdeps/sparc/sparc64/dl-machine.h
9706         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9707
9708         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9709         lazy binding.
9710         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9711         undefined symbol errors.
9712
9713         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9714         DT_NEEDED entries.
9715
9716 2012-04-05  Michael Matz  <matz@suse.de>
9717
9718         [BZ #13592]
9719         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9720
9721 2012-04-05  Andreas Jaeger  <aj@suse.de>
9722
9723         [BZ #13908]
9724         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9725         comment.
9726
9727 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9728
9729         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9730         which ROUND is no valid rounding mode.
9731
9732 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9733
9734         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9735         read again.
9736         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9737
9738 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9739
9740         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9741         an exception using FPU order intentionally.
9742
9743 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9744
9745         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9746         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9747         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9748         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9749
9750 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9751
9752         [BZ #12340]
9753         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9754         EINVAL when BUFLEN is too smal.
9755
9756 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9757
9758         [BZ #13553]
9759         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9760         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9761
9762 2012-04-03  Andreas Jaeger  <aj@suse.de>
9763
9764         [BZ #13938]
9765         * manual/setjmp.texi (System V contexts): Fix sentence.
9766
9767         [BZ #13926]
9768         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9769         New macro for this case.
9770         [!__GNUC__] (__bswap_64): New inline function for this case.
9771         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9772         * bits/byteswap.h: Likewise.
9773         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9774         ull, guard with __GLIBC_HAVE_LONG_LONG.
9775
9776         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9777         __GLIBC_HAVE_LONG_LONG.
9778
9779         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9780         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9781
9782 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9783
9784         [BZ #13691]
9785         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9786         inptr and inend, rather than using last_ch.
9787
9788 2012-04-02  David S. Miller  <davem@davemloft.net>
9789
9790         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9791         * stdio-common/printf-parse.h (read_int): Change return type to
9792         'int', return -1 on INT_MAX overflow.
9793         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9794         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9795         overflows INT_MAX.  Check for overflow of in-format-string precision
9796         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9797         SIZE_MAX not INT_MAX for integer overflow test.
9798         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9799         skip the construct in the format string but do not record anything.
9800         * stdio-common/bug22.c: Adjust to test both width/prevision
9801         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9802         explicitly for proper errno values.
9803
9804 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9805
9806         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9807         CHAR_MAX.
9808         * string/test-strcmp.c [! WIDE]: Likewise.
9809         * time/tst-mktime2.c: Likewise for INT_MAX.
9810         * string/test-string.h: #include <sys/param.h> for MIN.
9811
9812         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9813         * sysdeps/i386/init-first.c (init): Likewise.
9814         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9815         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9816         * sysdeps/sh/init-first.c (init): Likewise.
9817
9818 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9819
9820         * po/ru.po: Update from translation team.
9821         * po/vi.po: Likewise.
9822
9823 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9824
9825         * resolv/nss_dns/dns-host.c: Merge copyright years.
9826
9827 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9828
9829         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9830         Optimize memcpy with prefetch if
9831         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9832         src, dst pointers have unequal 16 byte alignments.
9833
9834 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9835
9836         [BZ #13928]
9837         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9838         from a CNAME entry and return the minimum ttl for the query.
9839         (gaih_getanswer_slice): Likewise.
9840
9841 2012-03-30  Jeff Law  <law@redhat.com>
9842
9843         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9844         due to long keys.
9845         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9846         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9847
9848         * resolv/nss_dns/dns-host.c: Update copyright year.
9849
9850 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9851
9852         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9853         requests to save a system call.  Fix check that all bytes are sent.
9854
9855         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9856         comments for sendmmsg.
9857
9858 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9859
9860         [BZ #13691]
9861         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9862         with only 1 character between 0x0041 and 0x01b0.
9863         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9864         * wcsmbs/tst-mbsnrtowcs.c: New file.
9865
9866 2012-03-29  David S. Miller  <davem@davemloft.net>
9867
9868         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9869         small copies by hand.
9870
9871 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9872
9873         [BZ #13761]
9874         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9875         _nss_compat_initgroups_dyn): Fall back to malloc/free
9876         for large group memberships.
9877
9878 2012-03-28  David S. Miller  <davem@davemloft.net>
9879
9880         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9881         that branches into memcpy.
9882         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9883         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9884         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9885         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9886         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9887         bits.
9888         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9889         implementation too.
9890         * sysdeps/sparc/mempcpy.S: New file.
9891
9892         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9893         the IFUNC routine in the libc case.
9894         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9895
9896         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9897         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9898         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9899         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9900         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9901         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9902         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9903         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9904
9905         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9906         loop to 256 bytes instead of 64 bytes and fix test signedness.
9907
9908         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9909         * sysdeps/sparc/sparc32/Makefile: rather than here...
9910         * sysdeps/sparc/sparc64/Makefile: and here.
9911
9912 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9913
9914         * malloc/mallocbug.c: Avoid warnings about unused variables.
9915
9916 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9917
9918         [BZ #13760]
9919         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9920         in the right place. Discard and retry query if response is
9921         larger than input buffer size.
9922
9923 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9924
9925         [BZ #369]
9926         [BZ #2678]
9927         [BZ #3866]
9928         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9929         x for large integer exponent.
9930         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9931         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9932         sign of result as needed afterwards.
9933         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9934         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9935         result for underflowing pow the same as for overflow.
9936         (__kernel_standard_l): Handle powl overflow and underflow here
9937         rather than calling __kernel_standard.
9938         * math/libm-test.inc (pow_test): Add more tests.
9939
9940         [BZ #3868]
9941         [BZ #13879]
9942         [BZ #13910]
9943         [BZ #13911]
9944         [BZ #13912]
9945         [BZ #13913]
9946         [BZ #13915]
9947         [BZ #13916]
9948         [BZ #13917]
9949         [BZ #13918]
9950         [BZ #13919]
9951         [BZ #13920]
9952         [BZ #13921]
9953         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9954         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9955         (__kernel_standard_l): New function.
9956         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9957         __kernel_standard.
9958         * math/w_acosl.c (__acosl): Likewise.
9959         * math/w_asinl.c (__asinl): Likewise.
9960         * math/w_atan2l.c (__atan2l): Likewise.
9961         * math/w_atanhl.c (__atanhl): Likewise.
9962         * math/w_coshl.c (__coshl): Likewise.
9963         * math/w_exp10l.c (__exp10l): Likewise.
9964         * math/w_exp2l.c (__exp2l): Likewise.
9965         * math/w_fmodl.c (__fmodl): Likewise.
9966         * math/w_hypotl.c (__hypotl): Likewise.
9967         * math/w_j0l.c (__j0l, __y0l): Likewise.
9968         * math/w_j1l.c (__j1l, __y1l): Likewise.
9969         * math/w_jnl.c (__jnl, __ynl): Likewise.
9970         * math/w_lgammal.c (__lgammal): Likewise.
9971         * math/w_log10l.c (__log10l): Likewise.
9972         * math/w_log2l.c (__log2l): Likewise.
9973         * math/w_logl.c (__logl): Likewise.
9974         * math/w_powl.c (__powl): Likewise.
9975         * math/w_remainderl.c (__remainderl): Likewise.
9976         * math/w_scalbl.c (sysv_scalbl): Likewise.
9977         * math/w_sinhl.c (__sinhl): Likewise.
9978         * math/w_sqrtl.c (__sqrtl): Likewise.
9979         * math/w_tgammal.c (__tgammal): Likewise.
9980         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9981         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9982         * math/libm-test.inc (acos_test): Add more tests.
9983         (acosh_test): Likewise.
9984         (asin_test): Likewise.
9985         (atanh_test): Likewise.
9986         (exp_test): Likewise.
9987         (exp10_test): Likewise.
9988         (exp2_test): Likewise.
9989         (expm1_test): Likewise.
9990         (lgamma_test): Likewise.
9991         (log_test): Likewise.
9992         (log10_test): Likewise.
9993         (log1p_test): Likewise.
9994         (log2_test): Likewise.
9995         (pow_test): Do not allow some spurious overflow exceptions.
9996         (sqrt_test): Add more tests.
9997         (tgamma_test): Likewise.
9998         (y0_test): Likewise.
9999         (y1_test): Likewise.
10000         (yn_test): Likewise.
10001
10002 2012-03-27  Anton Blanchard  <anton@samba.org>
10003
10004         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10005         MAP_HUGETLB.
10006         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10007         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10008         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10009
10010 2012-03-27  David S. Miller  <davem@davemloft.net>
10011
10012         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10013
10014         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10015         have-as-vis3 check.
10016
10017 2012-03-27  Andreas Jaeger  <aj@suse.de>
10018
10019         * sysdeps/x86_64/elf/configure.in: Moved to ...
10020         * sysdeps/x86_64/configure.in: ... here.
10021         * sysdeps/x86_64/elf/start.S: Moved to ...
10022         * sysdeps/x86_64/start.S: ... here.
10023         * sysdeps/x86_64/elf/configure: Delete.
10024
10025         * sysdeps/x86_64/configure.in: Merge contents from
10026         sysdeps/i386/configure.in (without i686 check).
10027
10028         * sysdeps/i386/elf/Versions: Merge into ...
10029         * sysdeps/i386/Versions: ... this.
10030         * sysdeps/i386/elf/Versions: Delete file.
10031         * sysdeps/i386/elf/start.S: Moved to ...
10032         * sysdeps/i386/start.S: ...here.
10033         * sysdeps/i386/elf/configure.in: Merge into...
10034         * sysdeps/i386/configure.in: ...here.
10035         * sysdeps/i386/elf/configure.in: Delete file.
10036         * sysdeps/i386/elf/configure: Delete file.
10037
10038         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10039         * debug/backtracesyms.c: ... here.
10040         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10041         * debug/backtracesymsfd.c: ... here.
10042         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10043         * sysdeps/generic/ifunc-sel.h: ... here.
10044
10045         * sysdeps/unix/i386/start.c: Delete file.
10046         * sysdeps/unix/sparc/start.c: Delete file.
10047         * sysdeps/unix/start.c: Delete file.
10048
10049         * sysdeps/sh/elf/configure.in: Moved to ...
10050         * sysdeps/sh/configure.in: ... here.
10051         * sysdeps/sh/elf/start.S: Moved to ...
10052         * sysdeps/sh/start.S: ... here.
10053         * sysdeps/sh/elf/configure: Delete file.
10054
10055         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10056         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10057         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10058         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10059         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10060         * sysdeps/powerpc/powerpc64/start.S: here.
10061         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10062         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10063         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10064         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10065         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10066
10067         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10068         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10069         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10070         * sysdeps/powerpc/powerpc32/start.S: ... here.
10071         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10072         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10073         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10074
10075         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10076         * sysdeps/powerpc/ifunc-sel.h: ... here.
10077         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10078         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10079
10080         * sysdeps/sparc/elf/configure.in: Moved to ...
10081         * sysdeps/sparc/configure.in: ... here.
10082         * sysdeps/sparc/elf/configure: Delete file.
10083         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10084         * sysdeps/sparc/sparc32/start.S: ... here.
10085         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10086         * sysdeps/sparc/sparc64/start.S: ... here.
10087         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10088         * sysdeps/sparc/sparc32/Makefile: ... this.
10089         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10090         * sysdeps/sparc/sparc64/Makefile: ... this.
10091
10092         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10093         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10094         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10095         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10096         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10097         * sysdeps/s390/s390-32/setjmp.S: ... here.
10098         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10099         * sysdeps/s390/s390-32/configure.in: ... here.
10100         * sysdeps/s390/s390-32/elf/configure: Delete file.
10101         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10102         * sysdeps/s390/s390-32/start.S: ... here.
10103
10104         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10105         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10106         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10107         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10108         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10109         * sysdeps/s390/s390-64/setjmp.S: ... here.
10110         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10111         * sysdeps/s390/s390-64/configure.in: ... here
10112         * sysdeps/s390/s390-64/elf/configure: Delete file.
10113         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10114         * sysdeps/s390/s390-64/start.S: ... here.
10115         * sysdeps/s390/s390-64/elf/configure: Delete.
10116
10117         * configure.in: Remove support for elf directories in sysdeps.
10118
10119         * configure: Regenerated.
10120         * sysdeps/i386/configure: Regenerated.
10121         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10122         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10123         * sysdeps/s390/s390-32/configure: Regenerated.
10124         * sysdeps/s390/s390-64/configure: Regenerated.
10125         * sysdeps/sh/configure: Regenerated.
10126         * sysdeps/sparc/configure: Regenerated.
10127         * sysdeps/x86_64/configure: Regenerated.
10128
10129 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10130
10131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10132
10133         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10134         denormal result into account.
10135
10136 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10137
10138         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10139         Reported by Allan McRae <allan@archlinux.org>.
10140
10141 2012-03-23  Jeff Law  <law@redhat.com>
10142
10143         * nss/getnssent.c (__nss_getent): Fix typo.
10144
10145 2012-03-23  David S. Miller  <davem@davemloft.net>
10146
10147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10148
10149 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10150
10151         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10152         to pad to uint64_t for each field.
10153         (dl_tls_index): Replace unsigned long with uint64_t.
10154
10155 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10156         Paul Pluzhnikov  <ppluzhnikov@google.com>
10157
10158         [BZ #6528]
10159         * grp/Makefile (otherlibs): Don't set it.
10160         * inet/Makefile (otherlibs): Likewise.
10161         * login/Makefile (otherlibs): Likewise.
10162         * nscd/Makefile (otherlibs): Likewise.
10163         * posix/Makefile (otherlibs): Likewise.
10164         * pwd/Makefile (otherlibs): Likewise.
10165         * rt/Makefile (otherlibs): Likewise.
10166         * sunrpc/Makefile (otherlibs): Likewise.
10167         * nss/Makefile (otherlibs): Likewise.
10168         Add libnss_files to routines and static-only-routines.
10169         ($(objpfx)getent): Remove rule.
10170         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10171         static-only-routines.
10172
10173 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10174
10175         [BZ #13892]
10176         * math/s_cexp.c: Include <float.h>.
10177         (__cexp): Handle exp result overflowing not necessarily
10178         overflowing both real and imaginary parts of result.
10179         * math/s_cexpf.c: Likewise.
10180         * math/s_cexpl.c: Likewise.
10181         * math/libm-test.inc (cexp_test): Add more tests.
10182         * sysdeps/i386/fpu/libm-test-ulps: Update.
10183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10184
10185 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         * include/link.h (ELFW): New macro.
10188         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10189         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10190
10191 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10192
10193         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10194         with uint64_t.
10195
10196 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10197
10198         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10199         declaration.
10200         (struct La_x32_retval): Likewise.
10201
10202 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10203
10204         * sysdeps/x86_64/preconfigure.in: New file.
10205         * sysdeps/x86_64/preconfigure: New generated file.
10206
10207 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10208
10209         [BZ #13824]
10210         * math/e_exp2l.c: Include <float.h>.
10211         (__ieee754_exp2l): Handle overflow and underflow cases
10212         separately.  Only pass fractional part of argument to
10213         __ieee754_expl.
10214         * math/libm-test.inc (exp2_test): Add more tests.
10215
10216         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10217         negating x to take absolute value.
10218         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10219         Likewise.
10220         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10221         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10222         Likewise.
10223         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10224         computing low part if x was negated.
10225         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10226
10227 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10228
10229         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10230         la_x32_gnu_pltexit.
10231         (pltexit): Cast int_retval to ptrdiff_t.
10232         * elf/tst-auditmod3b.c: Likewise.
10233         * elf/tst-auditmod4b.c: Likewise.
10234         * elf/tst-auditmod5b.c: Likewise.
10235         * elf/tst-auditmod6b.c: Likewise.
10236         * elf/tst-auditmod6c.c: Likewise.
10237         * elf/tst-auditmod7b.c: Likewise.
10238
10239         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10240         and x32_gnu_pltexit.
10241
10242         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10243         __ELF_NATIVE_CLASS.
10244         (La_x32_regs): New macro.
10245         (La_x32_retval): Likewise.
10246         (la_x32_gnu_pltenter): New function prototype.
10247         (la_x32_gnu_pltexit): Likewise.
10248
10249 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10250
10251         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10252         exponent.
10253
10254         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10255
10256         * configure.in (libc_cv_cc_nofma): Check for option to disable
10257         generation of FMA instructions.
10258         * configure: Regenerate.
10259         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10260         * sysdeps/ieee754/dbl-64/Makefile: New file.
10261         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10262         Remove brandred-fma4.
10263         (CFLAGS-brandred-fma4.c): Remove.
10264         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10265         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10266         define.
10267         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10268         define.
10269
10270 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10271
10272         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10273         LLONG_MAX != LONG_MAX.
10274         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10275         (_fitoa_word): Likewise.
10276         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10277         LLONG_MAX != LONG_MAX.
10278         * stdio-common/_itowa.h: Include <_itoa.h>.
10279         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10280         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10281         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10282         only if not defined.
10283         (_ITOA_WORD_TYPE): Likewise.
10284         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10285         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10286
10287 2012-03-21  David S. Miller  <davem@davemloft.net>
10288
10289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10290
10291 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10292
10293         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10294         of x86_64 when setting libc_cv_slibdir, libdir and
10295         libc_cv_localedir.
10296         * sysdeps/unix/sysv/linux/configure: Regenerated.
10297
10298 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10299
10300         * manual/lang.texi (Old Varargs): Remove section.
10301         (How Variadic): Update menu.
10302         (va_start): Do not mention varargs.h.
10303
10304 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10305             Joseph Myers  <joseph@codesourcery.com>
10306
10307         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10308         link test.
10309         * configure: Regenerated.
10310
10311 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10312
10313         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10314         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10315         conformtest.pl
10316
10317 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10318
10319         * NOTES: Remove.
10320         * Makefile (files-for-dist): Remove NOTES.
10321         (NOTES): Remove rule.
10322         * README: Don't refer to NOTES.
10323         * manual/creature.texi: Don't include macros.texi.
10324         * manual/intro.texi (creature.texi): Remove comment referring to
10325         NOTES.
10326
10327         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10328         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10329         * configure: Regenerated.
10330         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10331         LIBC_TRY_CC_OPTION.
10332         (libc_cv_as_i686): Likewise.
10333         (libc_cv_cc_avx): Likewise.
10334         (libc_cv_cc_sse2avx): Likewise.
10335         (libc_cv_cc_fma4): Likewise.
10336         (libc_cv_cc_novzeroupper): Likewise.
10337         * sysdeps/i386/configure: Regenerated.
10338
10339         [BZ #13883]
10340         * sysdeps/i386/fpu/s_cexp.S: Remove.
10341         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10342         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10343         * math/libm-test.inc (cexp_test): Add more tests.
10344         * sysdeps/i386/fpu/libm-test-ulps: Update.
10345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10346
10347 2012-03-21  Allan McRae  <allan@archlinux.org>
10348
10349         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10350
10351 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10352
10353         [BZ #13871]
10354         * math/w_exp2.c: Do not include <float.h>.
10355         (o_threshold, u_threshold): Remove.
10356         (__exp2): Calculate result before checking finiteness and calling
10357         __kernel_standard.
10358         * math/w_exp2f.c: Likewise.
10359         * math/w_exp2l.c: Likewise.
10360         * math/libm-test.inc (exp2_test): Require overflow exception for
10361         1e6 input.
10362
10363         [BZ #3866]
10364         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10365         range of signed 64-bit integers before using fistpll.  Remove
10366         checks for whether integers fit in mantissa bits.
10367         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10368         the range of signed 32-bit integers before using fistpl.  Remove
10369         checks for whether integers fit in mantissa bits.
10370         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10371         (__ieee754_powl): Test for y outside the range of signed 64-bit
10372         integers before using fistpll.  Reduce 64-bit values to 63-bit
10373         ones as needed.
10374         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10375         divide-by-zero is raised for zero to large negative powers.
10376         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10377         (__ieee754_powl): Test for y outside the range of signed 64-bit
10378         integers before using fistpll.  Reduce 64-bit values to 63-bit
10379         ones as needed.
10380         * math/libm-test.inc (pow_test): Add more tests.
10381
10382 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10383
10384         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10385         <stdio-common/_itoa.h>.
10386         * debug/segfault.c: Likewise.
10387         * elf/dl-cache.c: Likewise.
10388         * elf/dl-minimal.c: Likewise.
10389         * elf/dl-misc.c: Likewise.
10390         * elf/dl-sysdep.c: Likewise.
10391         * elf/dl-version.c: Likewise.
10392         * elf/rtld.c: Likewise.
10393         * hurd/hurdsock.c: Likewise.
10394         * hurd/lookup-retry.c: Likewise.
10395         * malloc/malloc.c: Likewise.
10396         * malloc/mtrace.c: Likewise.
10397         * nscd/nscd_getgr_r.c: Likewise.
10398         * nscd/nscd_getpw_r.c: Likewise.
10399         * nscd/nscd_getserv_r.c: Likewise.
10400         * posix/getopt_init.c: Likewise.
10401         * posix/wordexp.c: Likewise.
10402         * stdio-common/_itoa.c: Likewise.
10403         * stdio-common/printf_fphex.c: Likewise.
10404         * stdio-common/vfprintf.c: Likewise.
10405         * string/_strerror.c: Likewise.
10406         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10407         * sysdeps/i386/i686/hp-timing.h: Likewise.
10408         * sysdeps/mach/_strerror.c: Likewise.
10409         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10410         * sysdeps/mach/hurd/sethostid.c: Likewise.
10411         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10412         * sysdeps/mach/xpg-strerror.c: Likewise.
10413         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10414         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10415         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10416         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10417         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10418         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10419         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10420         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10421         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10422         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10423         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10424         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10425         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10426         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10427         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10428         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10429         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10430         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10431         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10432         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10433         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10434
10435         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10436
10437         * stdio-common/_itoa.h: Moved to ...
10438         * sysdeps/generic/_itoa.h: Here.
10439
10440         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10441
10442         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10443         instead of "_itoa.h" and "_itowa.h".
10444         * stdio-common/vfprintf.: Likewise.
10445
10446 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10447
10448         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10449         <bits/wordsize.h>.
10450         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10451         (__signbit): Likwise.
10452         (llrintf): Likwise.
10453         (llrint): Likwise.
10454
10455 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10456
10457         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10458         __WORDSIZE != 64.
10459
10460 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10461
10462         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10463         OVERFLOW_EXCEPTION_OK.
10464         * math/libm-test.inc ("Philosophy"): Update comment about
10465         exception testing.
10466         (OVERFLOW_EXCEPTION): Define.
10467         (OVERFLOW_EXCEPTION_OK): Likewise.
10468         (INVALID_EXCEPTION_OK): Renumber.
10469         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10470         (IGNORE_ZERO_INF_SIGN): Likewise.
10471         (test_exceptions): Handle FE_OVERFLOW.
10472         (exp10_test): Expect overflow exceptions.
10473         (exp2_test): Likewise.
10474         (expm1_test): Likewise.
10475         (nextafter_test): Likewise.
10476         (pow_test): Likewise.
10477         (scalbn_test): Likewise.
10478         (scalbln_test): Likewise.
10479
10480 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10481
10482         * sysdeps/x86_64/bits/atomic.h
10483         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10484         64bit integer.
10485         (atomic_exchange_acq): Likewise.
10486         (__arch_exchange_and_add_body): Likewise.
10487         (__arch_add_body): Likewise.
10488         (atomic_add_negative): Likewise.
10489         (atomic_add_zero): Likewise.
10490
10491 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10492
10493         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10494         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10495
10496 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10497
10498         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10499         Check __x86_64__ instead of __WORDSIZE.
10500
10501 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10502
10503         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10504
10505 2012-03-19  David S. Miller  <davem@davemloft.net>
10506
10507         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10508
10509         * sysdeps/sparc/fpu/fenv_private.h: New file.
10510         * sysdeps/sparc/fpu/math_private.h: Use it.
10511         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10512         Remove.
10513         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10514         (libc_feholdexcept_setroundl): Remove.
10515         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10516         Remove.
10517         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10518         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10519
10520 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10521
10522         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10523         int64_t instead of long int.
10524         (INSERT_WORDS64): Likwise.
10525
10526 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10527
10528         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10529         _Unwind_GetCFA return to _Unwind_Ptr first.
10530
10531 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10532
10533         [BZ #13629]
10534         * math/s_clog.c: Include <float.h>.
10535         (__clog): Scale large or subnormal inputs.
10536         * math/s_clogf.c: Likewise.
10537         * math/s_clogl.c: Likewise.
10538         * math/s_clog10.c: Include <float.h>.
10539         (M_LOG10_2): Define.
10540         (__clog10): Scale large or subnormal inputs.
10541         * math/s_clog10f.c: Likewise.
10542         * math/s_clog10l.c: Likewise.
10543         * math/libm-test.inc (clog_test): Add more tests.
10544         (clog10_test): Likewise.
10545         * sysdeps/i386/fpu/libm-test-ulps: Update.
10546         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10547
10548         [BZ #11451]
10549         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10550         x and y.
10551         * math/libm-test.inc (atan2_test): Add another test.
10552
10553         * Makerules (common-objdir-compile): Remove.
10554         * sysdeps/unix/Makefile (config-generated): Do not add
10555         $(unix-generated) to variable.
10556         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10557         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10558         Remove rule.
10559         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10560         Likewise.
10561         [generic bits/local_lim.h] (before-compile): Do not append to
10562         variable.
10563         [generic bits/local_lim.h] (common-generated): Likewise.
10564         [generic sys/param.h] (before-compile): Do not append to variable.
10565         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10566         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10567         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10568         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10569         include.
10570         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10571         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10572         [generic sys/param.h] ($(addprefix
10573         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10574         [generic sys/param.h] (common-generated): Do not append to
10575         variable.
10576         [generic sys/param.h] (sysdep_headers): Likewise.
10577         [generic bits/errno.h] (before-compile): Do not append to
10578         variable.
10579         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10580         rule.
10581         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10582         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10583         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10584         [generic bits/errno.h] (common-generated): Do not append to
10585         variable.
10586         [generic bits/ioctls.h] (before-compile): Do not append to
10587         variable.
10588         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10589         rule.
10590         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10591         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10592         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10593         rule.
10594         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10595         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10596         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10597         [generic bits/ioctls.h] (common-generated): Do not append to
10598         variable.
10599         [generic sys/syscall.h] (syscall.h): Remove variable.
10600         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10601         rule.
10602         [generic sys/syscall.h] (before-compile): Do not append to
10603         variable.
10604         [generic sys/syscall.h] (common-generated): Likewise.
10605         * sysdeps/unix/errnos-tmpl.c: Remove file.
10606         * sysdeps/unix/errnos.awk: Likewise.
10607         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10608         * sysdeps/unix/ioctls.awk: Likewise.
10609         * sysdeps/unix/mk-local_lim.c: Likewise.
10610         * sysdeps/unix/snarf-ioctls: Likewise.
10611
10612 2012-03-19  Richard Henderson  <rth@twiddle.net>
10613
10614         * sysdeps/i386/fpu/fenv_private.h: New file.
10615         * sysdeps/i386/fpu/math_private.h: Use it.
10616         (math_opt_barrier, math_force_eval): Remove.
10617         (libc_feholdexcept_setround_53bit): Remove.
10618         (libc_feupdateenv_53bit): Remove.
10619         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10620         (math_opt_barrier, math_force_eval): Remove.
10621         (libc_feholdexcept): Remove.
10622         (libc_feholdexcept_setround): Remove.
10623         (libc_fetestexcept, libc_fesetenv): Remove.
10624         (libc_feupdateenv_test): Remove.
10625         (libc_feupdateenv, libc_feholdsetround): Remove.
10626         (libc_feresetround): Remove.
10627
10628         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10629         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10630
10631         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10632         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10633         (libc_feupdateenv_testl): New.
10634         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10635         (libc_feupdateenv_testf): New.
10636         (libc_feupdateenv): Use libc_feupdateenv_test.
10637         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10638         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10639
10640         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10641         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10642         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10643         (libc_feresetround_noex): New.
10644         (libc_feresetround_noexf): New.
10645         (libc_feresetround_noexl): New.
10646         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10647         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10648         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10649         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10650         SET_RESTORE_ROUND.
10651         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10652         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10653         (__cos): Likewise.
10654         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10655         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10656         SET_RESTORE_ROUND_NOEX.
10657         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10658         SET_RESTORE_ROUND_NOEXF.
10659         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10660         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10661         (libc_feholdsetroundf): New.
10662         (libc_feresetround, libc_feresetroundf): New.
10663
10664         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10665         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10666         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10667
10668         * sysdeps/generic/math_private.h: Include <fenv.h>.
10669         (default_libc_feholdexcept): New.
10670         (default_libc_feholdexcept_setround): New.
10671         (default_libc_fesetenv, default_libc_feupdateenv): New.
10672         (libc_feholdexcept): Only define if undefined.
10673         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10674         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10675         (libc_feholdexcept_setroundl): Likewise.
10676         (libc_feholdexcept_setround_53bit): Likewise.
10677         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10678         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10679         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10680         (libc_feupdateenv_53bit): Likewise.
10681         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10682         (libc_feholdexcept): Convert from macro to inline function.
10683         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10684         (libc_fesetenv, libc_feupdateenv): Likewise.
10685
10686         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10687         not previously defined.
10688         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10689         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10690         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10691         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10692         * sysdeps/ieee754/flt-32/math_private.h: New file.
10693         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10694         math_private.h below SET_FLOAT_WORD.
10695         (__isnan, __isinf_ns, __finite): Remove.
10696         (__isnanf, __isinf_nsf, __finitef): Remove.
10697
10698 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10699
10700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10701
10702 2012-03-17  David S. Miller  <davem@davemloft.net>
10703
10704         [BZ #6471]
10705         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10706         for 2.16.
10707
10708 2012-03-16  David S. Miller  <davem@davemloft.net>
10709
10710         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10711         warnings.
10712
10713         [BZ #6471]
10714         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10715         properly.
10716         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10717         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10718         sysdep_routines when subdir is sysvipc.
10719         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10720         __getshmlba helper.
10721
10722         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10723
10724 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10725
10726         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10727         [__LP64__].
10728
10729 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10730
10731         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10732         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10733         (__lround): Renamed to ...
10734         (__llround): This.  Replace long int with long long int.
10735         Define lround functions as aliases of llround functions.
10736         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10737
10738 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10739
10740         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10741         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10742         adresses to uintptr_t.  Replace "long int" and "unsigned long
10743         int" with "greg_t" on va_arg.
10744
10745 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10746
10747         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10748         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10749
10750         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10751         Move e_machine check before EI_CLASS check.  Handle x32
10752         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10753         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10754         SKIP_EM_IA_64 and include
10755         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10756
10757         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10758         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10759         (add_system_dir): New macro.
10760
10761         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10762         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10763
10764 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10765
10766         [BZ #2551]
10767         [BZ #2552]
10768         [BZ #2553]
10769         [BZ #2554]
10770         [BZ #2562]
10771         [BZ #2563]
10772         [BZ #2565]
10773         [BZ #2566]
10774         [BZ #2576]
10775         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10776         (y0): Likewise.
10777         * math/w_j0f.c (j0f): Likewise.
10778         (y0f): Likewise.
10779         * math/w_j0l.c (__j0l): Likewise.
10780         (__y0l): Likewise.
10781         * math/w_j1.c (j1): Likewise.
10782         (y1): Likewise.
10783         * math/w_j1f.c (j1f): Likewise.
10784         (y1f): Likewise.
10785         * math/w_j1l.c (__j1l): Likewise.
10786         (__y1l): Likewise.
10787         * math/w_jn.c (jn): Likewise.
10788         (yn): Likewise.
10789         * math/w_jnf.c (jnf): Likewise.
10790         (ynf): Likewise.
10791         * math/w_jnl.c (__jnl): Likewise.
10792         (__ynl): Likewise.
10793         * math/libm-test.inc (j0_test): Add more tests.
10794         (j1_test): Likewise.
10795         (jn_test): Likewise.  Add trailing semicolon to existing test.
10796         (y0_test): Likewise.
10797         (y1_test): Likewise.
10798         * sysdeps/i386/fpu/libm-test-ulps: Update.
10799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10800
10801         [BZ #13851]
10802         [BZ #13854]
10803         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10804         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10805         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10806         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10807         (__tanl): Set errno for infinite argument.
10808         * sysdeps/i386/fpu/mptan.c: Remove.
10809         * sysdeps/i386/fpu/s_tan.S: Likewise.
10810         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10811         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10812         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10813         * math/libm-test.inc (tan_test): Add more tests and enable more
10814         tests for double and long double.
10815         * sysdeps/i386/fpu/libm-test-ulps: Update.
10816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10817
10818 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10819
10820         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10821         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10822
10823 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10824
10825         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10826         * configure.in: Use it for both main tree and add-ons.
10827         * configure: Regenerated.
10828
10829 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10830
10831         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10832
10833 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10836         in comment.
10837
10838         [BZ #13851]
10839         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10840         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10841         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10842         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10844         infinite argument.
10845         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10846         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10847         != 0 for prec == 2.
10848         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10849         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10850         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10851         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10852         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10853         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10854         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10855         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10856         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10857         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10858         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10859         * math/libm-test.inc (cos_test): Add more tests and enable more
10860         tests for long double.
10861         (sin_test): Likewise.
10862         (sincos_test): Likewise.
10863         * sysdeps/i386/fpu/libm-test-ulps: Update.
10864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10865
10866 2012-03-16  David S. Miller  <davem@davemloft.net>
10867
10868         * sysdeps/sparc/fpu/math_private.h: New file.
10869
10870 2012-03-15  David S. Miller  <davem@davemloft.net>
10871
10872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10873         file.
10874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10876         file.
10877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10878         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10879         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10880         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10881         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10882         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10883         sysdep routines.
10884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10885
10886         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10887         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10888
10889         * sysdeps/sparc/sparc-ifunc.h: New file.
10890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10891         sparc-ifunc.h
10892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10894         Likewise.
10895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10896         Likewise.
10897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10901         Likewise.
10902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10907         Likewise.
10908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10909         Likewise.
10910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10914         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10915         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10916         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10917         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10918         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10919         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10921         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10922         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10923         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10924         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10925         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10926         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10927         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10928         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10929         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10930         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10931         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10932         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10933         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10934
10935 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10936
10937         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10938         scaling.
10939         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10940
10941 2012-03-15  Andreas Jaeger  <aj@suse.de>
10942
10943         [BZ #13852]
10944         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10945         ieee754/flt-32 implementation for sin, cos and sincos.
10946         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10947         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10948         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10949         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10950         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10951         ieee754/flt-32 implementation for tan.
10952
10953         * math/libm-test.inc (cos_test): Enable some large input tests for
10954         float as well
10955         (sin_test): Likewise.
10956         (sincos_test): Likewise.
10957         (tan_test): Add tests for large input.
10958
10959         * sysdeps/i386/fpu/libm-test-ulps: Update.
10960
10961 2012-03-15  Andreas Jaeger  <aj@suse.de>
10962
10963         [BZ #13658]
10964         * math/libm-test.inc (cos_test): Add more test cases.
10965         (sin_test): Likewise.
10966         (sincos_test): Likewise.
10967
10968 2012-03-15  Andreas Jaeger  <aj@suse.de>
10969
10970         [BZ #13837]
10971         * math/libm-test.inc (cos_test): Add a test case for large input
10972         value.
10973         (sin_test): Likewise.
10974         (sincos_test): Likewise.
10975
10976 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10977         Joseph Myers  <joseph@codesourcery.com>
10978
10979         [BZ #13658]
10980         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10981         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10982         * sysdeps/i386/fpu/branred.c: Likewise.
10983         * sysdeps/i386/fpu/dosincos.c: Likewise.
10984         * sysdeps/i386/fpu/mpa.c: Likewise.
10985         * sysdeps/i386/fpu/s_cos.S: Likewise.
10986         * sysdeps/i386/fpu/s_sin.S: Likewise.
10987         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10988         * sysdeps/i386/fpu/sincos32.c: Likewise.
10989
10990         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10991         Define.
10992         (libc_feupdateenv_53bit): Define.
10993         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10994         Define.
10995         (libc_feupdateenv_53bit): Define.
10996
10997         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10998         53 bit (without extend i386 double precision).
10999
11000         * math/libm-test.inc (sincos_test): Add tests for large input.
11001         (sin): Likewise.
11002         (cos): Likewise.
11003
11004         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11005
11006 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11007
11008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11009
11010 2012-03-15  David S. Miller  <davem@davemloft.net>
11011
11012         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11013         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11014         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11015         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11019         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11022         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11023         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11024         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11025         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11028         file.
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11031         file.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11034         file.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11037         file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11039         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11040         fmin/fmax sysdep routines.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11042
11043 2012-03-14  David S. Miller  <davem@davemloft.net>
11044
11045         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11046         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11047         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11048         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11049         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11050         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11051         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11052         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11053         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11054         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11055         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11056         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11058         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11059         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11060         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11061         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11062         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11063         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11064         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11065         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11066         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11069         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11070         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11071         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11072         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11073         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11074         routines.
11075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11076         file.
11077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11079         file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11082         file.
11083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11085         file.
11086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11088         file.
11089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11091         file.
11092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11093         file.
11094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11095         file.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11097         file.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11099         New file.
11100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11101         file.
11102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11103         file.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11106         file.
11107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11109         file.
11110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11112         file.
11113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11115         VIS3 routines.
11116
11117         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11118         New file.
11119
11120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11121
11122         * sysdeps/sparc/configure.in: New file.
11123         * sysdeps/sparc/configure: Generate.
11124         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11125         * configure: Regenerate.
11126         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11127         * config.make.in (have-as-vis3): New.
11128         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11129         available use -Av9d instead of -Av9a.
11130         * sysdeps/sparc/sparc64/Makefile: Likewise.
11131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11133         New file.
11134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11135         file.
11136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11137         New file.
11138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11139         file.
11140         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11141         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11142         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11143         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11144         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11145
11146         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11147         fzeros/fnegs to load 0x80000000 into a float register instead of
11148         using the stack.
11149         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11150
11151 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11152
11153         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11154         bits/syscall.h.
11155         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11156         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11157         ($(inst_includedir)/bits/syscall.h): Remove rule.
11158         ($(objpfx)bits/syscall.d): Include instead of
11159         $(objpfx)syscall-list.d.
11160         (generated): Change syscall-list.h and syscall-list.d to
11161         bits/syscall.h and bits/syscall.d.
11162
11163 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11164
11165         [BZ #13846]
11166         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11167
11168 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11169
11170         [BZ #13841]
11171         * math/s_csqrt.c: Include <float.h>.
11172         (__csqrt): Scale large or subnormal inputs.
11173         * math/s_csqrtf.c: Likewise.
11174         * math/s_csqrtl.c: Likewise.
11175         * math/libm-test.inc (csqrt_test): Add more tests.
11176         * sysdeps/i386/fpu/libm-test-ulps: Update.
11177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11178
11179         [BZ #13840]
11180         * math/libm-test.inc (hypot_test): Add more tests.
11181
11182 2012-03-13  David S. Miller  <davem@davemloft.net>
11183
11184         [BZ #13840]
11185         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11186         double-precision for the calculation instead of scaling.
11187
11188 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11189
11190         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11191         manipulate bits before adding and subtracting TWO52[sx].
11192         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11193         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11194         Likewise.
11195         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11196
11197 2012-03-13  David S. Miller  <davem@davemloft.net>
11198
11199         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11200         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11201         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11202         rtld-global-offsets.h
11203         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11204
11205         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11206         large parameters.
11207
11208         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11209
11210         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11211         'err' in the ifdef scope in which it is actually used.
11212
11213         * nss/nss_db/db-init.c: Include string.h
11214
11215 2012-03-12  David S. Miller  <davem@davemloft.net>
11216
11217         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11218         masking out of the most significant byte of random value used.
11219         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11220         Fix coding style in previous change.
11221
11222         * sysdeps/unix/sysv/linux/kernel-features.h
11223         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11224         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11225         expression.
11226         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11227         later.
11228
11229 2012-03-11  David S. Miller  <davem@davemloft.net>
11230
11231         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11232         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11233         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11234         for 'resultvar' otherwise things get truncated on 64-bit.
11235
11236         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11237         Fix masking out of the most significant byte of random value used.
11238
11239         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11240
11241 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11242
11243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11244
11245 2012-03-09  David S. Miller  <davem@davemloft.net>
11246
11247         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11248         variables with appropriate CPP guards.
11249         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11250         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11251         on resulting framesize and the management of the outregs buffer for pltexit.
11252         Preserve floating point return values across _dl_call_pltexit call.
11253         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11254         framesize and the management of the outregs buffer for pltexit.
11255         Preserve floating point return values across _dl_call_pltexit
11256         call.
11257         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11258         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11259         (print_exit): Fix format string for return register value.
11260
11261 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11262
11263         * sunrpc/Makefile (others): Add rpcgen.
11264         ($(objpfx)rpcgen): Remove special build rule and dependency on
11265         libc.
11266         * sunrpc/rpcgen.c: New file.
11267
11268 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11269
11270         [BZ #13673]
11271         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11272         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11273         * sysdeps/i386/crti.S: Likewise.
11274         * sysdeps/i386/crtn.S: Likewise.
11275         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11276         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11277         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11278         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11279         * sysdeps/sh/crti.S: Likewise.
11280         * sysdeps/sh/crtn.S: Likewise.
11281         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11282
11283         [BZ #13673]
11284         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11285         with URL.
11286         * locale/programs/locfile-kw.gperf: Likewise.
11287         * locale/programs/charmap-kw.h: Regenerated.
11288         * locale/programs/locfile-kw.h: Likewise.
11289
11290         [BZ #13673]
11291         * intl/plural.y: Replace FSF snail mail address with URL.
11292         * intl/plural.c: Regenerated.
11293
11294 2012-03-09  Richard Henderson  <rth@twiddle.net>
11295
11296         * include/math_private.h: Remove file.
11297         * math/math_private.h: Move file ...
11298         * sysdeps/generic/math_private.h: ... here.
11299
11300         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11301         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11302         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11303
11304         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11305         and <math_private.h>.
11306         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11307         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11308         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11309         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11310         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11357         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11358         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11359         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11366         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11367         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11368         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11369         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11370         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11371         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11372         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11373         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11374         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11375         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11394         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11397         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11398         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11399         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11401         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11402         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11403         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11404         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11405         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11406         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11407         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11408         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11409         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11410         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11411         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11412         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11413         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11415         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11416         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11418         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11419         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11420         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11421         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11422         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11423         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11424         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11425         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11426         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11427         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11428         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11429         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11430         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11431         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11432         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11433         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11434         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11435         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11436         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11437         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11438         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11439         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11440         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11441         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11442         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11443         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11444         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11445         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11446         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11447         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11448         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11449         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11450         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11451         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11452         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11453         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11454         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11455         * sysdeps/ieee754/k_standard.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11571         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11575         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11576         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11578         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11583         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11588         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11592         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11604         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11616         * sysdeps/ieee754/s_lib_version.c: Likewise.
11617         * sysdeps/ieee754/s_matherr.c: Likewise.
11618         * sysdeps/ieee754/s_signgam.c: Likewise.
11619         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11620         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11621         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11622         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11623         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11624         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11625         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11626         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11627         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11628         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11629         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11630         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11631         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11632         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11633         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11634         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11635         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11636         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11637         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11638         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11639         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11640
11641 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11642
11643         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11644         * sunrpc/rpc_main.c: Likewise.
11645         * sunrpc/rpc_svcout.c: Likewise.
11646
11647 2012-03-09  David S. Miller  <davem@davemloft.net>
11648
11649         * include/math_private.h: New file.
11650
11651 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11652
11653         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11654         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11655         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11656         from <bits/socket_type.h>.
11657         (enum __socket_type): Don't define here.
11658         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11659         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11660         bits/socket_type.h.
11661
11662         [BZ #13566]
11663         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11664         checking __USE_GNU.
11665
11666         * Makerules ($(inst_includedir)/%.h): New rule.
11667         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11668         (install-others): Remove variable setting.
11669         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11670
11671 2012-03-08  Richard Henderson  <rth@twiddle.net>
11672
11673         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11674         from macro to inline function; merge with the
11675         !__LIBC_INTERNAL_MATH_INLINES version.
11676         (__ieee754_sqrtf): Likewise.
11677
11678         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11679         to inline function.
11680         (__rintf, __floor, __floorf): Likewise.
11681
11682         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11683         macro to inline function.
11684         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11685
11686         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11687         not <math/math_private.h>.
11688
11689 2012-03-08  David S. Miller  <davem@davemloft.net>
11690
11691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11692         copyright year.
11693         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11694
11695 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11696
11697         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11698         normalization.
11699         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11700         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11701
11702 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11703
11704         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11705         be defined individually, they must be defined as a block.  Define
11706         S for printing a string instead of hidint the different by using a
11707         macro for adding the 'l'.
11708         * stdio-common/tst-fphex-wide.c: Adjust.
11709
11710 2012-03-07  Marek Polacek  <polacek@redhat.com>
11711
11712         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11713
11714 2012-03-08  Marek Polacek  <polacek@redhat.com>
11715
11716         [BZ #13806]
11717         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11718         * stdio-common/tst-fphex.c: Define a few macros to make the
11719         test reusable.  Use them.
11720         * stdio-common/tst-fphex-wide.c: New file.
11721
11722 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11723
11724         [BZ #6911]
11725         * manual/macros.texi (gnusystems): New macro.
11726         (nongnusystems): Likewise.
11727         (gnulinuxhurdsystems): Likewise.
11728         (gnuhurdsystems): Likewise..
11729         (gnulinuxsystems): Likewise.
11730         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11731         variants of the GNU system, not "GNU system".
11732         * manual/conf.texi: Likewise.
11733         * manual/errno.texi: Likewise.  Update example of errno macro
11734         expansion.
11735         * manual/filesys.texi: Likewise.
11736         (getumask): Document as specific to GNU/Hurd.
11737         * manual/install.texi: Likewise.  Reword some references to
11738         GNU/Linux.
11739         * manual/intro.texi: Likewise.
11740         * manual/io.texi: Likewise.
11741         (File Name Portability): Detail which constraints are inapplicable
11742         to all GNU systems and which are only inapplicable to GNU/Hurd.
11743         * manual/job.texi: Likewise.
11744         * manual/llio.texi: Likewise.
11745         (O_NOCTTY): Document as present on GNU/Linux.
11746         * manual/maint.texi: Likewise.
11747         * manual/memory.texi: Likewise.
11748         * manual/pattern.texi: Likewise.
11749         * manual/pipe.texi: Likewise.
11750         * manual/process.texi: Likewise.
11751         * manual/resource.texi: Likewise.
11752         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11753         child on GNU/Hurd.
11754         * manual/setjmp.texi: Likewise.
11755         * manual/signal.texi: Likewise.
11756         * manual/startup.texi: Likewise.
11757         * manual/stdio.texi: Likewise.
11758         * manual/terminal.texi: Likewise.
11759         (ONLCR): Document as POSIX.
11760         (OXTABS): Document availability on GNU/Linux as XTABS.
11761         (ONOEOT): Document availability separately from other bits.
11762         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11763         * manual/time.texi: Likewise.
11764         * manual/users.texi: Likewise.
11765         * INSTALL: Regenerated.
11766         * sysdeps/gnu/errlist.c: Regenerated.
11767
11768         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11769         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11770         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11771         puts.
11772         * configure: Regenerated.
11773
11774 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11775
11776         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11777         default includes instead of AC_HEADER_CHECK.
11778         * sysdeps/i386/configure: Regenerated.
11779
11780         [BZ #10716]
11781         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11782         * math/s_cacoshf.c (__cacoshf): Likewise.
11783         * math/s_cacoshl.c (__cacoshl): Likewise.
11784         * math/s_casinh.c (__casinh): Set signs of result from argument.
11785         * math/s_casinhf.c (__casinhf): Likewise.
11786         * math/s_casinhl.c (__casinhl): Likewise.
11787         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11788         (casinh_test): Add more tests.
11789         * sysdeps/i386/fpu/libm-test-ulps: Update.
11790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11791
11792 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11793
11794         * po/zh_TW.po: Update from translation team.
11795
11796         * login/Makefile (distribute): Remove variable.
11797         * catgets/Makefile: Likewise.
11798         * mach/Makefile: Likewise.
11799         * malloc/Makefile: Likewise.
11800         * misc/Makefile: Likewise.
11801         * iconv/Makefile: Likewise.
11802         * nscd/Makefile: Likewise.
11803         * hurd/Makefile: Likewise.
11804         * manual/Makefile: Likewise.
11805         * locale/Makefile: Likewise.
11806         * intl/Makefile: Likewise.
11807         * conform/Makefile: Likewise.
11808         * nss/Makefile: Likewise.
11809         * time/Makefile: Likewise.
11810         * soft-fp/Makefile: Likewise.
11811         * dirent/Makefile: Likewise.
11812         * gmon/Makefile: Likewise.
11813         * po/Makefile: Likewise.
11814         * rt/Makefile: Likewise.
11815         * socket/Makefile: Likewise.
11816         * math/Makefile: Likewise.
11817         * signal/Makefile: Likewise.
11818         * debug/Makefile: Likewise.
11819         * elf/Makefile: Likewise.
11820         * timezone/Makefile: Likewise.
11821         * stdlib/Makefile: Likewise.
11822         * iconvdata/Makefile: Likewise.
11823         * sunrpc/Makefile: Likewise.
11824         * io/Makefile: Likewise.
11825         * argp/Makefile: Likewise.
11826         * inet/Makefile: Likewise.
11827         * hesiod/Makefile: Likewise.
11828         * grp/Makefile: Likewise.
11829         * csu/Makefile: Likewise.
11830         * wctype/Makefile: Likewise.
11831         * crypt/Makefile: Likewise.
11832         * libio/Makefile: Likewise.
11833         * string/Makefile: Likewise.
11834         * nis/Makefile: Likewise.
11835         * resolv/Makefile: Likewise.
11836         * stdio-common/Makefile: Likewise.
11837         * wcsmbs/Makefile: Likewise.
11838         * dlfcn/Makefile: Likewise.
11839         * posix/Makefile: Likewise.
11840
11841         [BZ #6959]
11842         * timezone/Makefile: Don't install timezone files, just the programs
11843         and scripts.
11844
11845 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11846
11847         * nss/databases.def: Add missing gshadow entry.
11848
11849         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11850
11851 2012-03-06  Marek Polacek  <polacek@redhat.com>
11852
11853         [BZ #13726]
11854         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11855         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11856         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11857         * stdio-common/tst-long-dbl-fphex.c: New file.
11858
11859 2012-03-06  David S. Miller  <davem@davemloft.net>
11860
11861         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11862         (set_obp_int): New function.
11863         (get_obp_int): New function.
11864         (__get_clockfreq_via_dev_openprom): Likewise.
11865         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11866         Avoid unused variable warnings on 'val' and use builtin_expect.
11867         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11868         __builtin_expect.
11869         (INLINE_CLONE_SYSCALL): Likewise.
11870
11871 2012-03-05  David S. Miller  <davem@davemloft.net>
11872
11873         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11874
11875 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11876
11877         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11878
11879         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11880         only for |x| >= 40.
11881         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11882
11883 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11884
11885         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11886         Replace gettimeofday with __vdso_gettimeofday.
11887
11888         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11889         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11890         __vdso_clock_gettime and __vdso_getcpu.
11891
11892         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11893         time with __vdso_time.
11894
11895 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11896
11897         * manual/lang.texi (size_t): Note types to which size_t may be
11898         equivalent with the GNU C Library, but do not describe when
11899         differences between them are significant.
11900
11901 2012-03-05  Andreas Jaeger  <aj@suse.de>
11902
11903         * sysdeps/i386/fpu/libm-test-ulps: Update.
11904
11905 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11906
11907         [BZ #3976]
11908         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11909         (__ieee754_pow): Save and restore rounding mode and use
11910         round-to-nearest for main computations.
11911         * math/libm-test.inc (pow_test_tonearest): New function.
11912         (pow_test_towardzero): Likewise.
11913         (pow_test_downward): Likewise.
11914         (pow_test_upward): Likewise.
11915         (main): Call the new functions.
11916         * sysdeps/i386/fpu/libm-test-ulps: Update.
11917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11918
11919         [BZ #3976]
11920         * math/libm-test.inc (cosh_test_tonearest): New function.
11921         (cosh_test_towardzero): Likewise.
11922         (cosh_test_downward): Likewise.
11923         (cosh_test_upward): Likewise.
11924         (sinh_test_tonearest): Likewise.
11925         (sinh_test_towardzero): Likewise.
11926         (sinh_test_downward): Likewise.
11927         (sinh_test_upward): Likewise.
11928         (main): Call the new functions.
11929         * sysdeps/i386/fpu/libm-test-ulps: Update.
11930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11931
11932 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11933
11934         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11935         default stack guard is set in last bytes.
11936         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11937
11938 2012-03-05  Kees Cook  <keescook@chromium.org>
11939
11940         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11941
11942         [BZ #13656]
11943         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11944         possibly allocate from heap instead of stack.
11945         * stdio-common/bug-vfprintf-nargs.c: New file.
11946         * stdio-common/Makefile (tests): Add nargs overflow test.
11947
11948 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11949
11950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11951
11952 2012-03-03  Marek Polacek  <polacek@redhat.com>
11953
11954         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11955         * math/math_private.h: Likewise.
11956         * stdlib/tst-strtod.c: Likewise.
11957         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11958         * sysdeps/x86_64/bits/atomic.h: Likewise.
11959
11960 2012-03-02  David S. Miller  <davem@davemloft.net>
11961
11962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11966         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11967         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11968         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11969         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11970
11971 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11972
11973         [BZ #13792]
11974         * manual/examples/README: New file, says the example source files
11975         can be used under GPL>=2.
11976         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11977         line containing just "*/".
11978         * manual/examples/add.c: Add copyright header (GPL>=2).
11979         * manual/examples/argp-ex1.c: Likewise.
11980         * manual/examples/argp-ex2.c: Likewise.
11981         * manual/examples/argp-ex3.c: Likewise.
11982         * manual/examples/argp-ex4.c: Likewise.
11983         * manual/examples/atexit.c: Likewise.
11984         * manual/examples/db.c: Likewise.
11985         * manual/examples/dir.c: Likewise.
11986         * manual/examples/dir2.c: Likewise.
11987         * manual/examples/execinfo.c: Likewise.
11988         * manual/examples/filecli.c: Likewise.
11989         * manual/examples/filesrv.c: Likewise.
11990         * manual/examples/fmtmsgexpl.c: Likewise.
11991         * manual/examples/genpass.c: Likewise.
11992         * manual/examples/inetcli.c: Likewise.
11993         * manual/examples/inetsrv.c: Likewise.
11994         * manual/examples/isockad.c: Likewise.
11995         * manual/examples/longopt.c: Likewise.
11996         * manual/examples/memopen.c: Likewise.
11997         * manual/examples/memstrm.c: Likewise.
11998         * manual/examples/mkfsock.c: Likewise.
11999         * manual/examples/mkisock.c: Likewise.
12000         * manual/examples/mygetpass.c: Likewise.
12001         * manual/examples/pipe.c: Likewise.
12002         * manual/examples/popen.c: Likewise.
12003         * manual/examples/rprintf.c: Likewise.
12004         * manual/examples/search.c: Likewise.
12005         * manual/examples/select.c: Likewise.
12006         * manual/examples/setjmp.c: Likewise.
12007         * manual/examples/sigh1.c: Likewise.
12008         * manual/examples/sigusr.c: Likewise.
12009         * manual/examples/stpcpy.c: Likewise.
12010         * manual/examples/strdupa.c: Likewise.
12011         * manual/examples/strftim.c: Likewise.
12012         * manual/examples/strncat.c: Likewise.
12013         * manual/examples/subopt.c: Likewise.
12014         * manual/examples/swapcontext.c: Likewise.
12015         * manual/examples/termios.c: Likewise.
12016         * manual/examples/testopt.c: Likewise.
12017         * manual/examples/testpass.c: Likewise.
12018         * manual/examples/timeval_subtract.c: Likewise.
12019
12020         [BZ #13792]
12021         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12022         function to ...
12023         * manual/timeval_subtract.c.texi: ... here, new file.
12024
12025 2012-03-02  David S. Miller  <davem@davemloft.net>
12026
12027         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12028
12029 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12030
12031         [BZ #3976]
12032         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12033         (__sin): Save and restore rounding mode and use round-to-nearest
12034         for all computations.
12035         (__cos): Save and restore rounding mode and use round-to-nearest
12036         for all computations.
12037         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12038         <fenv.h>.
12039         (tan): Save and restore rounding mode and use round-to-nearest for
12040         all computations.
12041         * math/libm-test.inc (cos_test_tonearest): New function.
12042         (cos_test_towardzero): Likewise.
12043         (cos_test_downward): Likewise.
12044         (cos_test_upward): Likewise.
12045         (sin_test_tonearest): Likewise.
12046         (sin_test_towardzero): Likewise.
12047         (sin_test_downward): Likewise.
12048         (sin_test_upward): Likewise.
12049         (tan_test_tonearest): Likewise.
12050         (tan_test_towardzero): Likewise.
12051         (tan_test_downward): Likewise.
12052         (tan_test_upward): Likewise.
12053         (main): Call the new functions.
12054         * sysdeps/i386/fpu/libm-test-ulps: Update.
12055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12056
12057         [BZ #10135]
12058         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12059         small n, then large n, before computing and testing k+n.
12060         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12061         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12062         Likewise.
12063         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12064         Likewise.
12065         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12066         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12067         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12068         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12069         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12070         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12071         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12072         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12073         * math/libm-test.inc (scalbn_test): Add more tests.
12074         (scalbln_test): Likewise.
12075
12076         * manual/filesys.texi (mode_t): Describe constraints on size and
12077         signedness, not exact equivalence to a particular type.
12078         (ino_t): Likewise.
12079         (ino64_t): Likewise.
12080         (dev_t): Likewise.
12081         (nlink_t): Likewise.
12082         (blkcnt_t): Likewise.
12083         (blkcnt64_t): Likewise.
12084         * manual/llio.texi (off_t): Likewise.
12085
12086         [BZ #3976]
12087         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12088         (__ieee754_exp): Save and restore rounding mode and use
12089         round-to-nearest for all computations.
12090         * math/libm-test.inc (exp_test_tonearest): New function.
12091         (exp_test_towardzero): Likewise.
12092         (exp_test_downward): Likewise.
12093         (exp_test_upward): Likewise.
12094         (main): Call the new functions.
12095         * sysdeps/i386/fpu/libm-test-ulps: Update.
12096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12097
12098 2012-03-01  Chris Demetriou  <cgd@google.com>
12099
12100         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12101         have predictable order.
12102
12103 2012-03-01  David S. Miller  <davem@davemloft.net>
12104
12105         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12106
12107         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12108         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12109         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12110         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12111
12112         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12113         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12114         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12116         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12117         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12118         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12119         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12120         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12121
12122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12123
12124         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12125         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12126         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12127
12128         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12129         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12130         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12131         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12132         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12133         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12134         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12135         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12136         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12137         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12138         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12139         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12140         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12141         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12142         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12143         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12144         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12145         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12146         * sysdeps/sparc/elf/configure: Regenerated.
12147
12148 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12149
12150         * configure.in (AS, LD): Require binutils 2.20 or later.
12151         * configure: Regenerated.
12152         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12153         as required minimum version.
12154         * INSTALL: Regenerated.
12155
12156         [BZ #2541]
12157         [BZ #4108]
12158         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12159         before squaring exponent.
12160         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12161         bottom long double and 27 bits of top long double before squaring
12162         exponent.
12163         * math/libm-test.inc (erfc_test): Add more tests.
12164         * sysdeps/i386/fpu/libm-test-ulps: Update.
12165         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12167
12168 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12169
12170         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12171         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12172         containing bit-fields.
12173         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12174         * soft-fp/single.h (_FP_UNION_S): Likewise.
12175         * soft-fp/double.h (_FP_UNION_D): Likewise.
12176
12177 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12178
12179         [BZ #13786]
12180         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12181         not include ../strcmp.S.
12182         [USE_AS_STRNCASECMP_L]: Likewise.
12183         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12184         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12185         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12186         (__strncasecmp_l_ia32): Define as alias to
12187         __strncasecmp_l_nonascii.
12188
12189         [BZ #5794]
12190         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12191         * sysdeps/i386/fpu/libm-test-ulps: Update.
12192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12193
12194         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12196
12197 2012-02-29  Jeff Law  <law@redhat.com>
12198
12199         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12200         out of bounds read.
12201
12202 2012-02-29  Marek Polacek  <polacek@redhat.com>
12203
12204         [BZ #13706]
12205         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12206         * elf/Makefile: Add rules to run tst-unused-dep.out.
12207
12208 2012-02-28  David S. Miller  <davem@davemloft.net>
12209
12210         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12211         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12212         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12213         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12214         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12215         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12216
12217 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12218
12219         * math/libm-test.inc (llround_test): Move one test from
12220         lround_test.  Use TEST_f_L in moved test.
12221         (lround_test): Move misplaced test to llround_test.  Add testcase
12222         from bug 2561.
12223
12224 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12225
12226         * sysdeps/x86_64/fpu/e_expf.S: New file.
12227         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12228
12229 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12230
12231         [BZ #13637]
12232         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12233         of remain_len that may cause incomplete multi-byte character and
12234         false match.
12235         * posix/bug-regex33.c: New file.
12236         * posix/Makefile (tests): Add bug-regex33.
12237
12238 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * manual/macros.texi: New file.
12241         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12242         * manual/libc.texinfo: Include macros.texi.
12243         * manual/creatute.texi: Likewise.
12244         * manual/install.texi: Likewise.
12245         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12246         @glibcadj{} in references to the GNU C Library.
12247         * manual/charset.texi: Likewise.
12248         * manual/conf.texi: Likewise.
12249         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12250         when not using those macros.
12251         * manual/creature.texi: Likewise.
12252         * manual/crypt.texi: Likewise.
12253         * manual/errno.texi: Likewise.
12254         * manual/filesys.texi: Likewise.
12255         * manual/header.texi: Likewise.
12256         * manual/install.texi: Likewise.
12257         * manual/intro.texi: Likewise.
12258         * manual/io.texi: Likewise.
12259         * manual/job.texi: Likewise.
12260         * manual/lang.texi: Likewise.
12261         * manual/libc.texiinfo: Likewise.
12262         * manual/llio.texi: Likewise.
12263         * manual/locale.texi: Likewise.
12264         * manual/maint.texi: Likewise.
12265         * manual/math.texi: Likewise.
12266         * manual/memory.texi: Likewise.
12267         * manual/message.texi: Likewise.
12268         * manual/nss.texi: Likewise.
12269         * manual/pattern.texi: Likewise.
12270         * manual/process.texi: Likewise.
12271         * manual/resource.texi: Likewise.
12272         * manual/search.texi: Likewise.
12273         * manual/setjmp.texi: Likewise.
12274         * manual/signal.texi: Likewise.
12275         * manual/socket.texi: Likewise.
12276         * manual/startup.texi: Likewise.
12277         * manual/stdio.texi: Likewise.
12278         * manual/string.texi: Likewise.
12279         * manual/sysinfo.texi: Likewise.
12280         * manual/syslog.texi: Likewise.
12281         * manual/terminal.texi: Likewise.
12282         * manual/time.texi: Likewise.
12283         * manual/users.texi: Likewise.
12284         * INSTALL: Regenerated.
12285         * NOTES: Regenerated.
12286         * sysdeps/gnu/errlist.c: Regenerated.
12287
12288 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12289
12290         * include/dirent.h: Include <dirstream.h> before
12291         <dirent/dirent.h>.
12292
12293 2012-02-28  David S. Miller  <davem@davemloft.net>
12294
12295         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12296         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12297         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12298         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12299
12300 2012-02-27  David S. Miller  <davem@davemloft.net>
12301
12302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12304         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12305         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12306
12307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12308         frame pointer instead of stack pointer relative arg slot.
12309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12310         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12311         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12312
12313 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12314
12315         [BZ #3992]
12316         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12317
12318 2012-02-27  David S. Miller  <davem@davemloft.net>
12319
12320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12322         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12324         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12325         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12326         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12327         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12328
12329 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12330
12331         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12332         later.  Allow versions 5-9.
12333         * configure: Regenerated.
12334         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12335         required minimum version and 4.6 as recommended version.  Do not
12336         mention bugs in GCC 2.7 and 2.8.
12337         * INSTALL: Regenerated.
12338
12339 2012-02-27  David S. Miller  <davem@davemloft.net>
12340
12341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12345         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12346         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12347         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12348         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12349
12350         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12351         manipulate bits before adding and subtracting TWO112[sx].
12352         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12353
12354 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12355
12356         [BZ #13775]
12357         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12358         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12359         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12360         being in POSIX, because they are in 1003.1-2008.
12361
12362         * rt/tst-aio.c: Include <fcntl.h>.
12363         * rt/tst-aio7.c: Likewise.
12364         * rt/tst-aio64.c: Likewise.
12365
12366         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12367
12368 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12369
12370         * manual/install.texi (--with-headers): Describe headers as
12371         interface headers, not private headers.
12372         (Specific advice for GNU/Linux systems): Describe use of headers
12373         from "make headers_install", not private headers from older
12374         kernels.
12375         * INSTALL: Regenerated.
12376         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12377         Change to 2.6.19.
12378         * sysdeps/unix/sysv/linux/configure: Regenerated.
12379
12380         * manual/llio.texi (fclean): Remove documentation.
12381
12382         * manual/Makefile (libc-texi-generated): New variable.  Include
12383         version.texi.
12384         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12385         $(libc-texi-generated), not duplicated list of files.
12386         (version.texi, stamp-version): New rules.
12387         (realclean): Remove $(libc-texi-generated), not individual files
12388         from that list.  Do not remove dir-add.texinfo.
12389         * manual/libc.texinfo: Comment out uses of edition numbers and
12390         references to printed manual.  Remove last-updated dates.
12391         (EDITION): Comment out.
12392         (ISBN): Likewise.
12393         (VERSION, UPDATED): Remove.
12394         (version.texi): Include.
12395
12396 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12397
12398         * sysdeps/posix/spawni.c: Include <signal.h>.
12399         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12400         * sysdeps/pthread/aio_fsync.c: Likewise.
12401
12402 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12403
12404         * conform/Makefile (tests): Run only when not cross-compiling and
12405         when fast-check is not defined.
12406
12407         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12408         * conform/data/limits.h-data: Fixes for POSIX2008.
12409         * conform/run-conformtest.sh: Run all tests.
12410         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12411         headers.
12412         * include/bits/dlfcn.h: Likewise.
12413         * include/langinfo.h: Likewise.
12414         * include/monetary.h: Likewise.
12415         * include/sys/poll.h: Likewise.
12416
12417         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12418         for __USE_GNU.
12419         * posix/spawn.h: Define __need_sigset_t.
12420         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12421         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12422         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12423         to get sigevent_t only.
12424         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12425         only for __USE_GNU.
12426         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12427         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12428         process_vm_writev only for __USE_GNU.
12429         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12430
12431         * conform/Makefile: For now ignore errors from run-conformtest.
12432         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12433         POSIX to avoid namespace pollution.  Don't prepend headers.
12434         * conform/data/aio.h-data: Fixes for POSIX testing.
12435         * conform/data/fcntl.h-data: Likewise.
12436         * conform/data/glob.h-data: Likewise.
12437         * conform/data/grp.h-data: Likewise.
12438         * conform/data/pthread.h-data: Likewise.
12439         * conform/data/pwd.h-data: Likewise.
12440         * conform/data/signal.h-data: Likewise.
12441         * conform/data/spawn.h-data: Likewise.
12442         * conform/data/stdio.h-data: Likewise.
12443         * conform/data/stdlib.h-data: Likewise.
12444         * conform/data/stropts.h-data: Likewise.
12445         * conform/data/sys/mman.h-data: Likewise.
12446         * conform/data/sys/stat.h-data: Likewise.
12447         * conform/data/sys/types.h-data: Likewise.
12448         * conform/data/sys/wait.h-data: Likewise.
12449         * conform/data/time.h-data: Likewise.
12450         * conform/data/unistd.h-data: Likewise.
12451         * conform/data/utime.h-data: Likewise.
12452
12453         * io/sys/stat.h: fchmod was always in POSIX.
12454         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12455         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12456         * rt/aio.h: Define __need_timespec before including <time.h>.
12457         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12458         struct.  Add forward declaration of pthread_attr_t and use it in
12459         sigevent.
12460         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12461         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12462         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12463         always remove CLK_TCK definition.
12464
12465 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12466
12467         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12468
12469 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12470
12471         * conform/run-conformtest.sh: New file.
12472         * conform/Makefile: Run run-conformtest for tests.
12473         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12474         support.
12475
12476         * conform/data/uchar.h-data: New file.
12477         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12478         * conform/data/arpa/inet.h-data: Likewise.
12479         * conform/data/assert.h-data: Likewise.
12480         * conform/data/complex.h-data: Likewise.
12481         * conform/data/cpio.h-data: Likewise.
12482         * conform/data/ctype.h-data: Likewise.
12483         * conform/data/dirent.h-data: Likewise.
12484         * conform/data/dlfcn.h-data: Likewise.
12485         * conform/data/errno.h-data: Likewise.
12486         * conform/data/fcntl.h-data: Likewise.
12487         * conform/data/float.h-data: Likewise.
12488         * conform/data/fmtmsg.h-data: Likewise.
12489         * conform/data/fnmatch.h-data: Likewise.
12490         * conform/data/ftw.h-data: Likewise.
12491         * conform/data/glob.h-data: Likewise.
12492         * conform/data/grp.h-data: Likewise.
12493         * conform/data/iconv.h-data: Likewise.
12494         * conform/data/inttypes.h-data: Likewise.
12495         * conform/data/langinfo.h-data: Likewise.
12496         * conform/data/libgen.h-data: Likewise.
12497         * conform/data/limits.h-data: Likewise.
12498         * conform/data/locale.h-data: Likewise.
12499         * conform/data/math.h-data: Likewise.
12500         * conform/data/monetary.h-data: Likewise.
12501         * conform/data/mqueue.h-data: Likewise.
12502         * conform/data/ndbm.h-data: Likewise.
12503         * conform/data/net/if.h-data: Likewise.
12504         * conform/data/netdb.h-data: Likewise.
12505         * conform/data/netinet/in.h-data: Likewise.
12506         * conform/data/nl_types.h-data: Likewise.
12507         * conform/data/poll.h-data: Likewise.
12508         * conform/data/pthread.h-data: Likewise.
12509         * conform/data/pwd.h-data: Likewise.
12510         * conform/data/regex.h-data: Likewise.
12511         * conform/data/sched.h-data: Likewise.
12512         * conform/data/search.h-data: Likewise.
12513         * conform/data/semaphore.h-data: Likewise.
12514         * conform/data/setjmp.h-data: Likewise.
12515         * conform/data/signal.h-data: Likewise.
12516         * conform/data/spawn.h-data: Likewise.
12517         * conform/data/stdarg.h-data: Likewise.
12518         * conform/data/stdio.h-data: Likewise.
12519         * conform/data/stdlib.h-data: Likewise.
12520         * conform/data/string.h-data: Likewise.
12521         * conform/data/strings.h-data: Likewise.
12522         * conform/data/stropts.h-data: Likewise.
12523         * conform/data/sys/ipc.h-data: Likewise.
12524         * conform/data/sys/mman.h-data: Likewise.
12525         * conform/data/sys/msg.h-data: Likewise.
12526         * conform/data/sys/resource.h-data: Likewise.
12527         * conform/data/sys/select.h-data: Likewise.
12528         * conform/data/sys/sem.h-data: Likewise.
12529         * conform/data/sys/shm.h-data: Likewise.
12530         * conform/data/sys/socket.h-data: Likewise.
12531         * conform/data/sys/stat.h-data: Likewise.
12532         * conform/data/sys/statvfs.h-data: Likewise.
12533         * conform/data/sys/time.h-data: Likewise.
12534         * conform/data/sys/timeb.h-data: Likewise.
12535         * conform/data/sys/times.h-data: Likewise.
12536         * conform/data/sys/types.h-data: Likewise.
12537         * conform/data/sys/uio.h-data: Likewise.
12538         * conform/data/sys/un.h-data: Likewise.
12539         * conform/data/sys/utsname.h-data: Likewise.
12540         * conform/data/sys/wait.h-data: Likewise.
12541         * conform/data/syslog.h-data: Likewise.
12542         * conform/data/tar.h-data: Likewise.
12543         * conform/data/termios.h-data: Likewise.
12544         * conform/data/utime.h-data: Likewise.
12545         * conform/data/utmpx.h-data: Likewise.
12546         * conform/data/varargs.h-data: Likewise.
12547         * conform/data/wchar.h-data: Likewise.
12548         * conform/data/wctype.h-data: Likewise.
12549         * conform/data/wordexp.h-data: Likewise.
12550
12551         * include/stropts.h: New file.
12552         * include/uchar.h: New file.
12553         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12554         * include/assert.h: Likewise.
12555         * include/ctype.h: Likewise.
12556         * include/dirent.h: Likewise.
12557         * include/dlfcn.h: Likewise.
12558         * include/fcntl.h: Likewise.
12559         * include/fnmatch.h: Likewise.
12560         * include/glob.h: Likewise.
12561         * include/grp.h: Likewise.
12562         * include/libio.h: Likewise.
12563         * include/locale.h: Likewise.
12564         * include/math.h: Likewise.
12565         * include/net/if.h: Likewise.
12566         * include/netdb.h: Likewise.
12567         * include/netinet/in.h: Likewise.
12568         * include/pthread.h: Likewise.
12569         * include/pwd.h: Likewise.
12570         * include/regex.h: Likewise.
12571         * include/sched.h: Likewise.
12572         * include/search.h: Likewise.
12573         * include/setjmp.h: Likewise.
12574         * include/signal.h: Likewise.
12575         * include/stdio.h: Likewise.
12576         * include/stdlib.h: Likewise.
12577         * include/string.h: Likewise.
12578         * include/sys/cdefs.h: Likewise.
12579         * include/sys/mman.h: Likewise.
12580         * include/sys/msg.h: Likewise.
12581         * include/sys/resource.h: Likewise.
12582         * include/sys/select.h: Likewise.
12583         * include/sys/socket.h: Likewise.
12584         * include/sys/stat.h: Likewise.
12585         * include/sys/statvfs.h: Likewise.
12586         * include/sys/time.h: Likewise.
12587         * include/sys/times.h: Likewise.
12588         * include/sys/uio.h: Likewise.
12589         * include/sys/utsname.h: Likewise.
12590         * include/sys/wait.h: Likewise.
12591         * include/termios.h: Likewise.
12592         * include/time.h: Likewise.
12593         * include/ulimit.h: Likewise.
12594         * include/unistd.h: Likewise.
12595         * include/utime.h: Likewise.
12596         * include/wchar.h: Likewise.
12597         * include/wctype.h: Likewise.
12598         * include/wordexp.h: Likewise.
12599
12600         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12601
12602         * time/time.h: TIME_UTC must be a macro.
12603         Make timespec_get available for ISO C11 only as well.
12604
12605 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12606
12607         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12608         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12609
12610 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12611
12612         * configure.in: Use -o not -a in test for unsupported multi-arch.
12613
12614 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12615
12616         * manual/texinfo.tex: Update to version 2012-01-19.16.
12617
12618 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12619
12620         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12621
12622 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12623
12624         [BZ #13738]
12625         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12626         * manual/fdl-1.3.texi: New file.
12627         * manual/fdl-1.1.texi: File removed.
12628
12629         [BZ #13738]
12630         * manual/libc.texinfo (FDL_VERSION): New @set.
12631         Use it for mention of FDL in cover text.
12632         (Documentation License): Use it in @include file name.
12633
12634 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12635             Roland McGrath  <roland@hack.frob.com>
12636
12637         [BZ #5461]
12638         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12639         not LONG_LONG_MAX and LONG_LONG_MIN.
12640         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12641         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12642         name.
12643         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12644
12645 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12646
12647         [BZ #2547]
12648         [BZ #11365]
12649         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12650         manipulate bits before adding and subtracting TWO23[sx].
12651         * math/libm-test.inc (nearbyint_test): Add more tests.
12652
12653 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12654
12655         [BZ #2548]
12656         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12657         bits before adding and subtracting TWO23[sx].
12658         * math/libm-test.inc (rint_test): Add more tests.
12659         (rint_test_tonearest): Likewise.
12660         (rint_test_towardzero): Likewise.
12661         (rint_test_downward): Likewise.
12662         (rint_test_upward: Likewise.
12663
12664 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12665
12666         [BZ #10110]
12667         * include/stdc-predef.h: New file.  Extracted from features.h.
12668         * include/features.h: Include stdc-predef.h.
12669         * Makefile (headers): Add stdc-predef.h.
12670         * CONFORMANCE (Compiler limitations): Update.
12671
12672 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12673
12674         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12675
12676 2012-02-21  David S. Miller  <davem@davemloft.net>
12677
12678         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12679         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12680
12681 2012-02-20  David S. Miller  <davem@davemloft.net>
12682
12683         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12684         using a normal save/restore sequence, rather than allocating a
12685         dummy stack frame just to store a frame pointer and restore.
12686         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12687
12688 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12689
12690         * manual/install.texi: Fix stray word in line-wrapped comment.
12691
12692 2012-02-20  David S. Miller  <davem@davemloft.net>
12693
12694         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12695         both binutils and gcc support GOTDATA.
12696
12697         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12698         "rd %pc" in the PIC register setup sequences.
12699
12700         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12701         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12702         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12703         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12704         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12705         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12706         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12707         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12708         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12709         (SYSCALL_ERROR_HANDLER): Likewise.
12710         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12711         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12712         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12713         (SYSCALL_ERROR_HANDLER): Likewise.
12714
12715         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12716         (HAVE_GCC_GOTDATA): New.
12717         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12718         relocation support in both binutils and gcc.
12719         * sysdeps/sparc/elf/configure: Regenerate.
12720
12721         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12722         * sysdeps/sparc/sparc32/elf/configure: Delete.
12723         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12724         * sysdeps/sparc/sparc64/elf/configure: Delete.
12725         * sysdeps/sparc/elf/configure.in: New file.
12726         * sysdeps/sparc/elf/configure: Generate.
12727
12728         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12729         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12730         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12731         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12732         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12733
12734 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12735
12736         * manual/install.texi: Do not mention specific glibc version
12737         numbers.
12738         * manual/libc.texinfo (VERSION, UPDATED): Update.
12739         (@copying): Use @copyright{} and range of years.
12740
12741 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12742
12743         [BZ #13695]
12744         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12745         [crti.S not in sysdirs] (generated): Do not append.
12746         [crti.S not in sysdirs] (omit-deps): Likewise.
12747         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12748         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12749         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12750         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12751         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12752         Likewise.
12753         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12754         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12755         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12756         * csu/defs.awk: Remove file.
12757         * sysdeps/generic/initfini.c: Likewise.
12758         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12759         variable.
12760         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12761         Likewise.
12762
12763 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12764
12765         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12766         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12767         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12768         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12769         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12770         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12771         <bits/epoll.h>.
12772         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12773         (__EPOLL_PACKED): Define to empty if not defined by
12774         <bits/epoll.h>.
12775         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12776         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12777         bits/epoll.h.
12778
12779 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12780
12781         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12782         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12783         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12784         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12785         <bits/timerfd.h>.
12786         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12787         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12788         bits/timerfd.h.
12789
12790 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12791
12792         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12793         in C locale.
12794         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12795         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12796         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12798
12799 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12800
12801         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12802         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12803
12804 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12805
12806         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12807         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12808         defined.
12809         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12810         Likewise.
12811         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12812         entry for 2.16.
12813
12814 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12815
12816         * math/w_acos.c: Use non-signaling floating-point comparisons.
12817         * math/w_acosf.c: Likewise.
12818         * math/w_acosh.c: Likewise.
12819         * math/w_acoshf.c: Likewise.
12820         * math/w_acoshl.c: Likewise.
12821         * math/w_acosl.c: Likewise.
12822         * math/w_asin.c: Likewise.
12823         * math/w_asinf.c: Likewise.
12824         * math/w_asinl.c: Likewise.
12825         * math/w_atanh.c: Likewise.
12826         * math/w_atanhf.c: Likewise.
12827         * math/w_atanhl.c: Likewise.
12828         * math/w_exp2.c: Likewise.
12829         * math/w_exp2f.c: Likewise.
12830         * math/w_exp2l.c: Likewise.
12831         * math/w_j0.c: Likewise.
12832         * math/w_j0f.c: Likewise.
12833         * math/w_j0l.c: Likewise.
12834         * math/w_j1.c: Likewise.
12835         * math/w_j1f.c: Likewise.
12836         * math/w_j1l.c: Likewise.
12837         * math/w_jn.c: Likewise.
12838         * math/w_jnf.c: Likewise.
12839         * math/w_log.c: Likewise.
12840         * math/w_log10.c: Likewise.
12841         * math/w_log10f.c: Likewise.
12842         * math/w_log10l.c: Likewise.
12843         * math/w_log2.c: Likewise.
12844         * math/w_log2f.c: Likewise.
12845         * math/w_log2l.c: Likewise.
12846         * math/w_logf.c: Likewise.
12847         * math/w_logl.c: Likewise.
12848         * math/w_sqrt.c: Likewise.
12849         * math/w_sqrtf.c: Likewise.
12850         * math/w_sqrtl.c: Likewise.
12851         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12852         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12853         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12854         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12855         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12856
12857 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12858
12859         [BZ #9739]
12860         * manual/string.texi (strnlen): Use correct parameter name in
12861         equivalent expression.
12862
12863 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12864
12865         [BZ #11174]
12866         * manual/users.texi (seteuid): Consistently use neweuid for
12867         argument name.
12868
12869 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12870
12871         [BZ #13704]
12872         * manual/nss.texi (Services in the NSS configuration): Correct
12873         list of services in example configuration file.
12874
12875 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12876
12877         [BZ #11322]
12878         * manual/arith.texi: Remove statements about negative zero
12879         behaving identically to zero.
12880
12881 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12882
12883         [BZ #5993]
12884         * manual/install.texi: Do not document upgrading from libc5.
12885
12886 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12887
12888         [BZ #4596]
12889         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12890
12891 2012-02-18  David S. Miller  <davem@davemloft.net>
12892
12893         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12894         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12895         %o7 across the call.
12896         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12897         instead.
12898         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12899         SETUP_PIC_REG_LEAF.
12900         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12901         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12902         * sysdeps/sparc/crtn.S: Likewise.
12903
12904 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12905
12906         * aout/Makefile: Remove.
12907
12908 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12909
12910         [BZ #13058]
12911         * manual/examples/argp-ex1.c (main): Format definition in GNU
12912         style.
12913         * manual/examples/argp-ex2.c (main): Likewise.
12914         * manual/examples/argp-ex3.c (main): Likewise.
12915         * manual/examples/argp-ex4.c (main): Likewise.
12916         * manual/examples/longopt.c (main): Use new-style prototype
12917         definition.
12918         * manual/examples/strncat.c (main): Specify return type and use
12919         (void) for arguments.
12920         * manual/examples/subopt.c (main): Use char **argv argument.
12921
12922 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12923
12924         [BZ #5077]
12925         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12926         rounding modes.
12927
12928 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12929
12930         [BZ #6907]
12931         * manual/string.texi (strchr): Change when strchrnul is
12932         recommended.
12933
12934 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12935
12936         [BZ #174]
12937         * manual/locale.texi (setlocale): Document LOCPATH.
12938
12939 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12940
12941         [BZ #10210]
12942         * manual/process.texi (execle): Move @dots{} before last argument.
12943
12944 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12945
12946         [BZ #12047]
12947         * manual/charset.texi (Generic Charset Conversion): Fix typo
12948         (LC_TYPE -> LC_CTYPE).
12949
12950 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12951
12952         [BZ #5805]
12953         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12954         (scalbnf): Likewise.
12955         (scalbnl): Likewise.
12956         (scalbln): Likewise.
12957         (scalblnf): Likewise.
12958         (scalblnl): Likewise.
12959         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12960         (vwarnx): Likewise.
12961         (verr): Likewise.
12962         (verrx): Likewise.
12963         * manual/filesys.texi (telldir): Use braces around return type.
12964         * manual/llio.texi (mmap): Add space after comma.
12965         (mmap64): Likewise.
12966         * manual/math.texi (jn): Use @var{} on parameter names.
12967         (jnf): Likewise.
12968         (jnl): Likewise.
12969         (yn): Likewise.
12970         (ynf): Likewise.
12971         (ynl): Likewise.
12972         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12973         line.
12974         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12975         "...".
12976         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12977         (sched_get_priority_max): Likewise.
12978         * manual/signal.texi (sigvec): Add space after comma.
12979         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12980         names.
12981         (if_indextoname): Likewise.
12982         (if_freenameindex): Likewise.
12983         (sendto): Use ',' instead of '.' in prototype.
12984         * manual/startup.texi (syscall): Use @dots{} instead of literal
12985         "...".
12986         * manual/stdio.texi (__fpending): Separate initial words of
12987         paragraph from @deftypefun line.
12988         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12989         "...".
12990         (vsyslog): Use @var{} on parameter names.
12991         * manual/terminal.texi (stty): Use @var{} on parameter names.
12992         * manual/users.texi (getutmp): Use @var{} on parameter names.
12993         (getutmpx): Likewise.
12994
12995 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12996
12997         [BZ #6884]
12998         * manual/stdio.texi (fopen): Fix typos in description of
12999         ",ccs=STRING".
13000
13001 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13002
13003         [BZ #4026]
13004         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13005         get clock_id definition.
13006
13007 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13008
13009         [BZ #4822]
13010         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13011         (madvise): Cast every argument to void on its own.
13012
13013 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13014
13015         [BZ #9902]
13016         * manual/startup.texi (Exit Status): Fix typo.
13017
13018 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13019
13020         [BZ #10140]
13021         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13022         * manual/examples/argp-ex2.c: Likewise.
13023         * manual/examples/argp-ex3.c: Likewise.
13024
13025 2012-02-16  Richard Henderson  <rth@redhat.com>
13026
13027         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13028         * sysdeps/s390/s390-32/initfini.c: Remove.
13029         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13030         * sysdeps/s390/s390-64/initfini.c: Remove.
13031
13032 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13033
13034         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13035         compiler output for sysdeps/generic/initfini.c.
13036         * sysdeps/sh/elf/initfini.c: Remove file.
13037
13038 2012-02-16  David S. Miller  <davem@davemloft.net>
13039
13040         [BZ #11494]
13041         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13042
13043         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13044         * sysdeps/sparc/crti.S: New file.
13045         * sysdeps/sparc/crtn.S: New file.
13046         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13047         * sysdeps/sparc/sparc64/Makefile: Likewise.
13048
13049 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13050
13051         [BZ #3335]
13052         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13053
13054 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13055
13056         [BZ #4822]
13057         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13058
13059         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13060         (write, read, close): Likewise.
13061         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13062
13063 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13064
13065         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13066         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13067         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13068         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13069         <bits/signalfd.h>.
13070         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13071         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13072         bits/signalfd.h.
13073
13074 2012-02-14  Marek Polacek  <polacek@redhat.com>
13075
13076         * sysdeps/x86_64/crti.S: New file.
13077         * sysdeps/x86_64/crtn.S: New file.
13078         * sysdeps/x86_64/elf/initfini.c: Remove file.
13079
13080 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13081
13082         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13083         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13084         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13085         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13086         <bits/inotify.h>.
13087         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13088         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13089         bits/inotify.h.
13090
13091 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13092
13093         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13094         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13095         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13096         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13097         <bits/eventfd.h>.
13098         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13099         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13100         bits/eventfd.h.
13101
13102 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13103
13104         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13105         __feraiseexcept instead of feraiseexcept.
13106
13107         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13108         nanosleep invocations.
13109         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13110         strings, and add error checking for a nanosleep invocations.
13111
13112 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13113
13114         Replace FSF snail mail address with URLs, as per GNU coding standards.
13115         Most of the snail mail addresses were wrong anyway, and omitting
13116         them makes the source code easier to maintain.  Almost all of the
13117         changes are to license notices and to locale LC_IDENTIFICATION
13118         addresses, except for this one:
13119         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13120         not its snail mail address.
13121
13122 2012-02-09  Richard Henderson  <rth@twiddle.net>
13123
13124         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13125         of kernel-features.h.
13126
13127         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13128
13129 2012-02-08  Marek Polacek  <polacek@redhat.com>
13130
13131         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13132         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13133         * sysdeps/gnu/_G_config.h: Likewise.
13134         * sysdeps/generic/_G_config.h: Likewise.
13135
13136 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13137
13138         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13139         tests.
13140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13141
13142         * sysdeps/powerpc/powerpc32/crti.S: New file.
13143         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13144         * sysdeps/powerpc/powerpc64/crti.S: New file.
13145         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13146
13147         * Makeconfig (have-initfini): Don't set.
13148         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13149         * configure.in (nopic_initfini): Don't substitute.
13150         * config.h.in (HAVE_INITFINI): Don't #undef.
13151         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13152         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13153
13154 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13155
13156         Support crti.S and crtn.S provided directly by architectures.
13157         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13158         [crti.S in sysdirs] (omit-deps): Likewise.
13159         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13160         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13161         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13162         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13163         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13164         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13165         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13166         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13167         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13168         compiler output for sysdeps/generic/initfini.c.
13169         * sysdeps/i386/elf/Makefile: Remove file.
13170         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13171
13172 2012-02-07  Marek Polacek  <polacek@redhat.com>
13173
13174         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13175         * sysdeps/gnu/_G_config.h: Likewise.
13176         * sysdeps/mach/hurd/_G_config.h: Likewise.
13177
13178 2012-02-07  Marek Polacek  <polacek@redhat.com>
13179
13180         * math/Makefile (tests): Add tst-CMPLX2.
13181         * math/tst-CMPLX2.c: New file.
13182
13183 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13184
13185         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13186
13187         * math/libm-test.inc (jn_test): Add missing L suffix.
13188
13189 2012-02-06  Marek Polacek  <polacek@redhat.com>
13190
13191         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13192         * sysdeps/i386/fpu/e_powf.S: Likewise.
13193         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13194         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13195         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13196         * sysdeps/i386/fpu/e_pow.S: Likewise.
13197         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13198         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13199         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13200         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13201         * sysdeps/i386/fpu/e_log2.S: Likewise.
13202         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13203         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13204         * sysdeps/i386/fpu/e_powl.S: Likewise.
13205         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13206         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13207         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13208         * sysdeps/i386/fpu/e_logl.S: Likewise.
13209         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13210         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13211         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13212         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13213         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13214         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13215         * sysdeps/i386/fpu/e_log.S: Likewise.
13216         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13217         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13218         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13219         * sysdeps/i386/fpu/e_logf.S: Likewise.
13220         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13221         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13222         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13223         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13224         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13225         * sysdeps/i386/fpu/e_log10.S: Likewise.
13226         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13227         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13228         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13229         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13230         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13231         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13232         * sysdeps/i386/asm-syntax.h: Likewise.
13233         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13234         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13235         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13236         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13237         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13238         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13239         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13240         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13241         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13242         * sysdeps/powerpc/sysdep.h: Likewise.
13243         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13244         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13245
13246 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13247
13248         [BZ #411]
13249         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13250
13251 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13252
13253         * sysdeps/i386/sysdep.h: Include <features.h>.
13254         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13255         version.
13256
13257 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13258
13259         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13260         Define.
13261         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13262         LOAD_PIC_REG_STR.
13263
13264 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13265
13266         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13267         (SETUP_PIC_REG): Use GET_PC_THUNK.
13268         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13269         macro.
13270
13271 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13272
13273         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13274         for non-PIC compilation.
13275         (SETUP_PIC_REG): Add .p2align directive.
13276         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13277         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13278         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13279         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13280         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13281         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13282         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13283         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13284         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13285         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13286         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13287         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13288         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13289         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13290         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13291         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13292         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13293         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13294         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13295         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13296         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13297         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13298         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13299         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13300         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13301         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13302         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13303         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13304         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13305         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13306         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13307         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13308         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13309         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13310         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13311         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13312         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13313         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13314         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13315         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13316         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13317
13318 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13319
13320         * math/tst-CMPLX.c: Include <stdio.h>.
13321
13322 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13323
13324         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13325         float.
13326         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13327         * sysdeps/sparc/bits/mathdef.h: Likewise.
13328
13329 2012-01-31  Marek Polacek  <polacek@redhat.com>
13330
13331         * libio/libio.h: Don't define _PARAMS.
13332         * locale/programs/config.h: Don't define PARAMS.
13333         * stdlib/strtol_l.c: Likewise.
13334         (__strtol_l): Remove PARAMS from the prototype.
13335
13336 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13337
13338         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13339         names.  Just use the correct names.  Remove unnecessary wrapper
13340         functions.
13341         * malloc/arena.c: Likewise.
13342         * malloc/hooks.c: Likewise.
13343
13344         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13345         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13346         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13347
13348 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13349
13350         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13351         into tail calls.
13352         (update_get_addr): New function.
13353         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13354         GET_ADDR_MODULE parameter.
13355
13356 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13357
13358         * crypt/cert.c: Remove __STDC__ conditionals.
13359         * crypt/crypt-entry.c: Likewise.
13360         * crypt/crypt_util.c: Likewise.
13361         * libio/filedoalloc.c: Likewise.
13362         * libio/fileops.c: Likewise.
13363         * libio/genops.c: Likewise.
13364         * libio/iofclose.c: Likewise.
13365         * libio/iofdopen.c: Likewise.
13366         * libio/iofopen.c: Likewise.
13367         * libio/iofopen64.c: Likewise.
13368         * libio/iogetdelim.c: Likewise.
13369         * libio/iopopen.c: Likewise.
13370         * libio/obprintf.c: Likewise.
13371         * libio/oldfileops.c: Likewise.
13372         * libio/oldiofclose.c: Likewise.
13373         * libio/oldiofdopen.c: Likewise.
13374         * libio/oldiofopen.c: Likewise.
13375         * libio/oldiopopen.c: Likewise.
13376         * libio/wfiledoalloc.c: Likewise.
13377         * libio/wgenops.c: Likewise.
13378         * locale/programs/xmalloc.c: Likewise.
13379         * misc/syslog.c: Likewise.
13380         * stdio-common/xbug.c: Likewise.
13381         * string/memchr.c: Likewise.
13382         * string/memcmp.c: Likewise.
13383         * string/memrchr.c: Likewise.
13384         * string/rawmemchr.c: Likewise.
13385         * sysdeps/posix/getcwd.c: Likewise.
13386         * time/strftime_l.c: Likewise.
13387
13388 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13389
13390         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13391         * config.make.in (config-cflags-sse2avx): Define.
13392         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13393         Fix typo.
13394
13395 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13396
13397         * scripts/config.guess: Update from upstream config git repository.
13398         * scripts/config.sub: Likewise.
13399
13400 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13401
13402         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13403         (EM_NUM): Update.
13404         (R_TILEPRO_*, R_TILEGX_*): New macros.
13405
13406         * scripts/firstversions.awk: Fix bug in version range handling.
13407
13408         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13409
13410         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13411
13412         * include/sys/epoll.h: New file.
13413         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13414         libc_hidden_def.
13415
13416 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13417
13418         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13419         Avoid unnecessary __WORDSIZE == 64 test.
13420         (fmaxf): Use VEX format if possible.
13421         (fmax): Likewise.
13422         (fminf): Likewise.
13423         (fmin): Likewise.
13424
13425         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13426         * math/math_private.h: Remove libc_fegetround* and
13427         libc_fesetround*.
13428         * sysdeps/i386/configure.in: Check for -msse2avx.
13429         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13430         also if SSE2AVX is defined.
13431         Remove libc_fegetround* and libc_fesetround*.
13432         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13433         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13434         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13435         of HAS_YMM_USABLE.
13436         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13437         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13438         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13439         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13440         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13441
13442         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13443
13444 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13445
13446         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13447         size is not set.
13448         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13449
13450 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13451
13452         [BZ #13618]
13453         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13454         relocation.
13455         * Makeconfig (libm): Define.
13456         * elf/Makefile: Add rules to build and run tst-relsort1.
13457         * elf/tst-relsort1.c: New file.
13458         * elf/tst-relsort1mod1.c: New file.
13459         * elf/tst-relsort1mod2.c: New file.
13460
13461 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13462
13463         * math/s_ldexp.c: Remove __STDC__ conditionals.
13464         * math/s_ldexpf.c: Likewise.
13465         * math/s_ldexpl.c: Likewise.
13466         * math/s_nextafter.c: Likewise.
13467         * math/s_nexttowardf.c: Likewise.
13468         * math/s_significand.c: Likewise.
13469         * math/s_significandf.c: Likewise.
13470         * math/s_significandl.c: Likewise.
13471         * math/w_jnl.c: Likewise.
13472         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13473         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13474         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13475         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13476         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13477         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13479         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13480         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13481         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13482         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13483         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13484         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13485         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13486         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13487         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13488         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13489         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13490         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13491         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13492         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13493         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13494         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13495         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13496         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13497         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13498         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13499         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13500         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13501         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13502         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13503         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13504         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13505         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13506         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13507         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13508         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13509         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13510         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13511         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13512         * sysdeps/ieee754/k_standard.c: Likewise.
13513         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13517         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13522         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13531         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13532         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13534         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13538         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13540         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13543         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13545         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13547         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13550         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13552         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13553         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13555         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13556         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13557         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13558         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13559         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13560         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13561         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13562         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13563         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13564         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13565         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13566         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13567         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13568         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13569         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13570         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13571         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13572         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13573         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13574         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13575         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13576         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13577         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13578         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13579         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13580         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13581         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13582         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13583         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13584         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13585         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13586         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13587         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13588         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13589         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13590         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13591         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13592         * sysdeps/ieee754/s_matherr.c: Likewise.
13593         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13594         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13595         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13596         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13597
13598 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13599
13600         * crypt/md5.h: Remove __STDC__ conditionals.
13601         * libio/libioP.h: Likewise.
13602         * locale/programs/config.h: Likewise.
13603         * sysdeps/generic/sysdep.h: Likewise.
13604         * sysdeps/i386/asm-syntax.h: Likewise.
13605         * sysdeps/s390/asm-syntax.h: Likewise.
13606         * sysdeps/unix/sysdep.h: Likewise.
13607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13609
13610 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13611
13612         * libio/libio.h: Remove __STDC__ conditionals.
13613         * malloc/obstack.h: Likewise.
13614         * math/complex.h: Likewise.
13615         * math/math.h: Likewise.
13616         * sysdeps/generic/_G_config.h: Likewise.
13617         * sysdeps/gnu/_G_config.h: Likewise.
13618         * sysdeps/mach/hurd/_G_config.h: Likewise.
13619         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13620         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13621         * sysdeps/sparc/bits/mathdef.h: Likewise.
13622
13623 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13624
13625         [BZ #13583]
13626         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13627         Clean up HAS_* macros.
13628         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13629         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13630         possible.
13631         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13632         HAS_AVX.
13633         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13634         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13635         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13636         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13637         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13638
13639 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13640
13641         * elf/tst-unique3.cc (gets): Remove declaration.
13642         * elf/tst-unique3lib.cc (gets): Likewise.
13643         * elf/tst-unique3lib2.cc (gets): Likewise.
13644         * elf/tst-unique4.cc (gets): Likewise.
13645
13646 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13647
13648         * include/stdio.h: Add C++ protection.  Add gets declarations and
13649         definitions.
13650         * debug/tst-chk1.c: Don't declare gets here.
13651         * stdio-common/tst-gets.c: Likewise.
13652
13653 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * posix/glob: Remove directory.
13656
13657 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13658
13659         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13660
13661 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13662
13663         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13664         of the non-standard EPFNOSUPPORT.
13665
13666 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13667
13668         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13669         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13670         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13671
13672 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13673
13674         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13675
13676 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13677
13678         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13679         transient errors.
13680         * nscd/grpcache.c (cache_addgr): Likewise.
13681         * nscd/hstcache.c (cache_addhst): Likewise.
13682         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13683         * nscd/pwdcache.c (cache_addpw): Likewise.
13684         * nscd/servicescache.c (cache_addserv): Likewise.
13685
13686 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13687
13688         * malloc/malloc.c: Various cleanups.
13689         * malloc/hooks.c: Likewise.
13690
13691         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13692         * stdlib/bug-fmtmsg1.c: New file.
13693
13694         * stdlib/fmtmsg.c (init): Add missing unlock.
13695         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13696
13697 2012-01-12  Marek Polacek  <polacek@redhat.com>
13698
13699         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13700         and _GNU_SOURCE.
13701
13702 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13703
13704         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13705         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13706         macro to ensure uniqueness of label name.
13707         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13708         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13709
13710 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13711
13712         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13713
13714         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13715         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13716         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13717         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13718
13719 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13720
13721         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13722
13723         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13724         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13725         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13726
13727         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13728
13729         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13730         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13731         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13732         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13733
13734         * math/bits/math-finite.h: Add ldexp support.
13735
13736 2012-01-10  Marek Polacek  <polacek@redhat.com>
13737
13738         * locale/programs/localedef.h (show_archive_content): Add noreturn
13739         attribute.
13740
13741 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13742
13743         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13744
13745 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13746
13747         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13748
13749         * io/Makefile (headers): Add bits/poll2.h.
13750
13751 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13752
13753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13754         typo #include statement.
13755
13756 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13757
13758         * include/sys/cdefs.h: Define __attribute_alloc_size.
13759         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13760         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13761         * elf/pldd.c: Likewise.
13762         * iconv/iconv_charmap.c: Likewise.
13763         * iconv/iconvconfig.c: Likewise.
13764         * iconv/strtab.c: Likewise.
13765         * locale/programs/locale.c: Likewise.
13766         * locale/programs/localedef.h: Likewise.
13767         * locale/programs/simple-hash.c: Likewise.
13768         * nscd/nscd.h: Likewise.
13769         * nss/makedb.c: Likewise.
13770         * sysdeps/generic/ldconfig.h: Likewise.
13771         * locale/programs/localedef.c: Remove xmalloc prototype.
13772         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13773
13774 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13775
13776         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13777         appropriate.
13778
13779 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13780
13781         * math/Makefile (tests): Add tst-CMPLX.
13782         * math/tst-CMPLX.c: New file.
13783
13784         * math/complex.h (CMPLXL): Fix typo.
13785
13786         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13787         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13788         GLIBC_2.16.
13789         * debug/tst-chk1.c: Add poll and ppoll tests.
13790         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13791         * include/sys/poll.h: Add hidden proto for ppoll.
13792         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13793         * sysdeps/mach/hurd/ppoll.c: Likewise.
13794         * io/ppoll.c: Likewise.
13795         * debug/poll_chk.c: New file.
13796         * debug/ppoll_chk.c: New file.
13797         * include/bits/poll2.h: New file.
13798         * io/bits/poll2.h: New file.
13799
13800         [BZ #1350]
13801         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13802
13803         * configure.in: static is always set to yes.  Remove.
13804         * config.make.in: Don't set build-static.
13805         * Makeconfig: Remove use of build-static.
13806         * dlfcn/Makefile: Likewise.
13807         * elf/Makefile: Likewise.
13808         * math/Makefile: Likewise.
13809         * misc/Makefile: Likewise.
13810         * nptl/Makefile: Likewise.
13811         * sysdeps/mach/hurd/Makefile: Likewise.
13812
13813         * configure.in: PWD_P is not used anymore.
13814         * config.make.in: Remove PWD_P entry.
13815
13816         * configure.in: Remove last remnants of RANLIB.
13817         No need to check for signed size_t anymore.
13818         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13819         and IA-64.
13820         Remove __builtin_expect test because we require at least gcc 3.4.
13821         * aclocal.m4: Likewise.
13822
13823         * wcsmbs/mbrtoc16.c: Implement using towc function.
13824         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13825         * wcsmbs/wcsmbsload.c: Likewise.
13826         * iconv/gconv_simple.c: Likewise.
13827         * iconv/gconv_int.h: Likewise.
13828         * iconv/gconv_builtin.h: Likewise.
13829         * iconv/iconv_prog.c: Remove CHAR16 handling.
13830
13831         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13832
13833         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13834
13835         * configure.in: Remove --with-elf and --enable-bounded options.
13836         Dont set base_machine for ia64.  More non-ELF conditions removed.
13837         Remove testing and setting of leading underscore information.
13838         * config.make.in (build-bounded): Set to no.
13839         * config.h.in: Remove NO_UNDERSCORES entry.
13840         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13841         them.
13842         * csu/start.c: Remove !NO_UNDERSCORE code.
13843         * locale/localeinfo.h: Likewise.
13844         * sysdeps/generic/machine-gmon.h: Likewise.
13845         * sysdeps/generic/sysdep.h: Likewise.
13846         * sysdeps/i386/sysdep.h: Likewise.
13847         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13848         * sysdeps/mach/sysdep.h: Likewise.
13849         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13850         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13851         * sysdeps/sh/sysdep.h: Likewise.
13852         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13853         * sysdeps/unix/i386/sysdep.S: Likewise.
13854         * sysdeps/unix/sparc/start.c: Likewise.
13855         * sysdeps/unix/sparc/sysdep.S: Likewise.
13856         * sysdeps/unix/sparc/sysdep.h: Likewise.
13857         * sysdeps/unix/start.c: Likewise.
13858         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13859         * sysdeps/x86_64/sysdep.h: Likewise.
13860
13861 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13862
13863         [BZ #13553]
13864         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13865         for non-gcc.
13866         * argp/argp-fmtstream.h: Use const instead __const.
13867         * argp/argp.h: Likewise.
13868         * assert/assert.h: Likewise.
13869         * bits/fenv.h: Likewise.
13870         * bits/sched.h: Likewise.
13871         * bits/sigset.h: Likewise.
13872         * bits/sigthread.h: Likewise.
13873         * catgets/nl_types.h: Likewise.
13874         * conform/data/pthread.h-data: Likewise.
13875         * crypt/crypt-private.h: Likewise.
13876         * crypt/crypt.h: Likewise.
13877         * crypt/crypt_util.c: Likewise.
13878         * ctype/ctype.h: Likewise.
13879         * debug/execinfo.h: Likewise.
13880         * debug/mbsnrtowcs_chk.c: Likewise.
13881         * debug/mbsrtowcs_chk.c: Likewise.
13882         * debug/wcsnrtombs_chk.c: Likewise.
13883         * debug/wcsrtombs_chk.c: Likewise.
13884         * debug/wcstombs_chk.c: Likewise.
13885         * dirent/dirent.h: Likewise.
13886         * dlfcn/dlfcn.h: Likewise.
13887         * elf/neededtest4.c: Likewise.
13888         * grp/grp.h: Likewise.
13889         * gshadow/gshadow.h: Likewise.
13890         * iconv/gconv.h: Likewise.
13891         * iconv/gconv_int.h: Likewise.
13892         * iconv/gconv_simple.c: Likewise.
13893         * iconv/iconv.h: Likewise.
13894         * iconv/loop.c: Likewise.
13895         * iconv/skeleton.c: Likewise.
13896         * include/aio.h: Likewise.
13897         * include/aliases.h: Likewise.
13898         * include/argz.h: Likewise.
13899         * include/arpa/inet.h: Likewise.
13900         * include/assert.h: Likewise.
13901         * include/dirent.h: Likewise.
13902         * include/dlfcn.h: Likewise.
13903         * include/execinfo.h: Likewise.
13904         * include/fcntl.h: Likewise.
13905         * include/fenv.h: Likewise.
13906         * include/glob.h: Likewise.
13907         * include/grp.h: Likewise.
13908         * include/libintl.h: Likewise.
13909         * include/mntent.h: Likewise.
13910         * include/netdb.h: Likewise.
13911         * include/pwd.h: Likewise.
13912         * include/rpc/netdb.h: Likewise.
13913         * include/sched.h: Likewise.
13914         * include/search.h: Likewise.
13915         * include/shadow.h: Likewise.
13916         * include/signal.h: Likewise.
13917         * include/stdio.h: Likewise.
13918         * include/stdlib.h: Likewise.
13919         * include/string.h: Likewise.
13920         * include/sys/socket.h: Likewise.
13921         * include/sys/stat.h: Likewise.
13922         * include/sys/statfs.h: Likewise.
13923         * include/sys/statvfs.h: Likewise.
13924         * include/sys/syslog.h: Likewise.
13925         * include/sys/time.h: Likewise.
13926         * include/sys/uio.h: Likewise.
13927         * include/time.h: Likewise.
13928         * include/unistd.h: Likewise.
13929         * include/utmp.h: Likewise.
13930         * include/wchar.h: Likewise.
13931         * include/wctype.h: Likewise.
13932         * inet/aliases.h: Likewise.
13933         * inet/arpa/inet.h: Likewise.
13934         * inet/netinet/ether.h: Likewise.
13935         * inet/netinet/in.h: Likewise.
13936         * intl/libintl.h: Likewise.
13937         * io/bits/fcntl2.h: Likewise.
13938         * io/fcntl.h: Likewise.
13939         * io/ftw.h: Likewise.
13940         * io/sys/poll.h: Likewise.
13941         * io/sys/stat.h: Likewise.
13942         * io/sys/statfs.h: Likewise.
13943         * io/sys/statvfs.h: Likewise.
13944         * io/utime.h: Likewise.
13945         * libio/bits/stdio.h: Likewise.
13946         * libio/bits/stdio2.h: Likewise.
13947         * libio/libio.h: Likewise.
13948         * libio/libioP.h: Likewise.
13949         * libio/stdio.h: Likewise.
13950         * locale/lc-ctype.c: Likewise.
13951         * locale/locale.h: Likewise.
13952         * login/utmp.h: Likewise.
13953         * malloc/arena.c: Likewise.
13954         * malloc/malloc.c: Likewise.
13955         * malloc/malloc.h: Likewise.
13956         * malloc/mcheck.c: Likewise.
13957         * malloc/mtrace.c: Likewise.
13958         * math/bits/mathcalls.h: Likewise.
13959         * math/fenv.h: Likewise.
13960         * math/math_private.h: Likewise.
13961         * misc/bits/error.h: Likewise.
13962         * misc/bits/syslog.h: Likewise.
13963         * misc/err.h: Likewise.
13964         * misc/error.h: Likewise.
13965         * misc/fstab.h: Likewise.
13966         * misc/mntent.h: Likewise.
13967         * misc/regexp.h: Likewise.
13968         * misc/search.h: Likewise.
13969         * misc/sgtty.h: Likewise.
13970         * misc/sys/mman.h: Likewise.
13971         * misc/sys/syslog.h: Likewise.
13972         * misc/sys/uio.h: Likewise.
13973         * misc/sys/xattr.h: Likewise.
13974         * misc/ttyent.h: Likewise.
13975         * nis/rpcsvc/ypclnt.h: Likewise.
13976         * nss/nss.h: Likewise.
13977         * posix/bits/unistd.h: Likewise.
13978         * posix/fnmatch.h: Likewise.
13979         * posix/glob.h: Likewise.
13980         * posix/sched.h: Likewise.
13981         * posix/spawn.h: Likewise.
13982         * posix/sys/wait.h: Likewise.
13983         * posix/unistd.h: Likewise.
13984         * posix/wordexp.h: Likewise.
13985         * pwd/pwd.h: Likewise.
13986         * resolv/netdb.h: Likewise.
13987         * resource/sys/resource.h: Likewise.
13988         * rt/aio.h: Likewise.
13989         * rt/bits/mqueue2.h: Likewise.
13990         * rt/mqueue.h: Likewise.
13991         * shadow/shadow.h: Likewise.
13992         * signal/signal.h: Likewise.
13993         * socket/send.c: Likewise.
13994         * socket/sendto.c: Likewise.
13995         * socket/sys/socket.h: Likewise.
13996         * stdio-common/printf.h: Likewise.
13997         * stdlib/bits/stdlib.h: Likewise.
13998         * stdlib/fmtmsg.h: Likewise.
13999         * stdlib/monetary.h: Likewise.
14000         * stdlib/stdlib.h: Likewise.
14001         * stdlib/ucontext.h: Likewise.
14002         * streams/stropts.h: Likewise.
14003         * string/argz.h: Likewise.
14004         * string/bits/string2.h: Likewise.
14005         * string/string.h: Likewise.
14006         * string/strings.h: Likewise.
14007         * sunrpc/rpc/auth.h: Likewise.
14008         * sunrpc/rpc/auth_des.h: Likewise.
14009         * sunrpc/rpc/clnt.h: Likewise.
14010         * sunrpc/rpc/netdb.h: Likewise.
14011         * sunrpc/rpc/pmap_clnt.h: Likewise.
14012         * sunrpc/rpc/xdr.h: Likewise.
14013         * sysdeps/generic/inttypes.h: Likewise.
14014         * sysdeps/generic/net/if.h: Likewise.
14015         * sysdeps/generic/sys/swap.h: Likewise.
14016         * sysdeps/gnu/net/if.h: Likewise.
14017         * sysdeps/gnu/utmpx.h: Likewise.
14018         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14019         * sysdeps/i386/i486/bits/string.h: Likewise.
14020         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14021         * sysdeps/s390/bits/string.h: Likewise.
14022         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14023         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14024         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14025         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14026         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14027         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14028         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14029         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14030         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14031         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14032         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14033         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14034         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14035         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14036         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14037         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14038         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14039         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14040         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14041         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14042         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14043         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14044         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14045         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14046         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14047         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14048         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14049         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14050         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14051         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14052         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14053         * sysvipc/sys/ipc.h: Likewise.
14054         * sysvipc/sys/msg.h: Likewise.
14055         * sysvipc/sys/sem.h: Likewise.
14056         * sysvipc/sys/shm.h: Likewise.
14057         * termios/termios.h: Likewise.
14058         * time/sys/time.h: Likewise.
14059         * time/time.h: Likewise.
14060         * wcsmbs/bits/wchar2.h: Likewise.
14061         * wcsmbs/uchar.h: Likewise.
14062         * wcsmbs/wchar.h: Likewise.
14063         * wctype/wctype.h: Likewise.
14064
14065         [BZ #13551]
14066         * Makeconfig: Remove all but ELF support including AIX support.
14067         * Makerules: Likewise.
14068         * config.h.in: Likewise.
14069         * config.make.in: Likewise.
14070         * configure: Likewise.
14071         * configure.in: Likewise.
14072         * csu/Makefile: Likewise.
14073         * csu/version.c: Likewise.
14074         * debug/Makefile: Likewise.
14075         * dlfcn/Makefile: Likewise.
14076         * elf/Makefile: Likewise.
14077         * extra-lib.mk: Likewise.
14078         * iconv/Makefile: Likewise.
14079         * include/libc-symbols.h: Likewise.
14080         * include/shlib-compat.h: Likewise.
14081         * resolv/Makefile: Likewise.
14082         * resolv/res_libc.c: Likewise.
14083         * rt/Makefile: Likewise.
14084         * sysdeps/i386/asm-syntax.h: Likewise.
14085         * sysdeps/i386/sysdep.h: Likewise.
14086         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14087         * sysdeps/mach/sysdep.h: Likewise.
14088         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14089         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14090         * sysdeps/s390/asm-syntax.h: Likewise.
14091         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14092         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14093         * sysdeps/sh/sysdep.h: Likewise.
14094         * sysdeps/unix/sparc/sysdep.h: Likewise.
14095         * sysdeps/wordsize-32/divdi3.c: Likewise.
14096         * sysdeps/x86_64/sysdep.h: Likewise.
14097
14098         * argp/Versions: Remove _argp_unlock_xxx.
14099
14100         [BZ #13559]
14101         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14102         * abilist/libBrokenLocale.abilist: Likewise.
14103         * abilist/libanl.abilist: Likewise.
14104         * abilist/libc.abilist: Likewise.
14105         * abilist/libcrypt.abilist: Likewise.
14106         * abilist/libdl.abilist: Likewise.
14107         * abilist/libm.abilist: Likewise.
14108         * abilist/libnsl.abilist: Likewise.
14109         * abilist/libpthread.abilist: Likewise.
14110         * abilist/libresolv.abilist: Likewise.
14111         * abilist/librt.abilist: Likewise.
14112         * abilist/libthread_db.abilist: Likewise.
14113         * abilist/libutil.abilist: Likewise.
14114         * abilist/libnss_db.abilist: New file.
14115
14116         * scripts/abilist.awk: Add support for indirect functions.
14117
14118         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14119
14120         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14121
14122         * shlib-versions: Remove entries for ports architectures.
14123
14124         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14125         files in ports.
14126         * elf/stackguard-macros.h: Remove support for IA-64.
14127         * elf/tst-auditmod1.c: Likewise.
14128         * sysdeps/generic/ldsodefs.h: Likewise.
14129
14130         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14131         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14132         configure files.
14133
14134         [BZ #13552]
14135         * configure.in: Remove --enable-omitfp support.
14136         * FAQ.in: Adjust.
14137         * config.make.in: Likewise.
14138         * Makeconfig: Likewise.
14139         * manual/install.texi: Likewise.
14140
14141         In case anyone cares, the IA-64 architecture could move to ports.
14142         * sysdeps/ia64/*: Removed.
14143         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14144         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14145
14146         [BZ #13555]
14147         * configure.in: Remove entries for unsupported architectures.
14148
14149         [BZ #13533]
14150         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14151         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14152         routines.
14153         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14154         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14155         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14156         fall back to using wcrtomb.
14157         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14158         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14159         renaming.
14160         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14161         * wcsmbs/tst-c16c32-1.c: New file.
14162
14163         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14164         local variable.
14165
14166         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14167
14168         * elf/tst-unique3.cc: Add explicit declaration of gets.
14169         * elf/tst-unique3lib.cc: Likewise.
14170         * elf/tst-unique3lib2.cc: Likewise.
14171         * elf/tst-unique4.cc: Likewise.
14172
14173         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14174
14175 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14176
14177         [BZ #13566]
14178         * assert/assert.h (static_assert): Don't define for C++.
14179         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14180         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14181
14182 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14183
14184         * iconv/loop.c (single loop): Fix assertion in storing of
14185         remaining bytes.
14186
14187         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14188
14189 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14190
14191         * posix/getconf.c: Update copyright year.
14192         * nss/getent.c: Likewise.
14193         * nss/makedb.c: Likewise.
14194         * iconv/iconvconfig.c: Likewise.
14195         * iconv/iconv_prog.c: Likewise.
14196         * elf/ldconfig.c: Likewise.
14197         * elf/pldd.c: Likewise.
14198         * elf/sotruss.ksh: Likewise.
14199         * catgets/gencat.c: Likewise.
14200         * csu/version.c: Likewise.
14201         * elf/ldd.bash.in: Likewise.
14202         * elf/sprof.c (print_version): Likewise.
14203         * locale/programs/locale.c: Likewise.
14204         * locale/programs/localedef.c: Likewise.
14205         * login/programs/pt_chown.c: Likewise.
14206         * nscd/nscd.c (print_version): Likewise.
14207         * debug/xtrace.sh: Likewise.
14208         * malloc/memusage.sh: Likewise.
14209         * malloc/mtrace.pl: Likewise.
14210         * debug/catchsegv.sh: Likewise.
14211
14212 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14213
14214         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14215         pure attribute.
14216
14217 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14218
14219         [BZ #13533]
14220         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14221         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14222         transformations.
14223         * iconv/gconv_int.h: Likewise.
14224         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14225         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14226         from libc for GLIBC_2.16.
14227         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14228         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14229         * wcsmbs/uchar.h: Really define mbstate_t.
14230         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14231         * wcsmbs/c16rtomb.c: New file.
14232         * wcsmbs/mbrtoc16.c: New file.
14233         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14234         for C/POSIX locale.
14235         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14236         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14237
14238         * wcsmbs/wchar.h: Add missing __restrict.
14239
14240 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14241
14242         [BZ #13532]
14243         * time/Makefile (routines): Add timespec_get.
14244         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14245         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14246         timespec for ISO C11.
14247         * time/timespec_get.c: New file.
14248         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14249         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14250
14251         [BZ #13531]
14252         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14253         * stdlib/stdlib.h: Declare aligned_alloc.
14254         * Versions.def: Add GLIBC_2.16 for libc.
14255         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14256
14257         [BZ 13527]
14258         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14259         ISO C11.
14260
14261         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14262         code.
14263
14264         [BZ #13528]
14265         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14266
14267         [BZ #13529]
14268         * assert/assert.h (static_assert): Define.
14269
14270         * version.h: Update for 2.16 development version.
14271
14272         [BZ #13526]
14273         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14274         _ISOC11_SOURCE.
14275
14276         * version.h (RELEASE): Bump for 2.15 release.
14277         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14278
14279         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14280         Patch by Marek Polacek <mpolacek@redhat.com>.
14281
14282         * bits/byteswap.h: Protect long long constants with __extension__.
14283         * sysdeps/i386/bits/byteswap.h: Likewise.
14284         * sysdeps/ia64/bits/byteswap.h: Likewise.
14285         * sysdeps/s390/bits/byteswap.h: Likewise.
14286         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14287
14288 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14289
14290         [BZ #13540]
14291         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14292         destination buffer.
14293         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14294
14295 2011-12-23  Marek Polacek  <polacek@redhat.com>
14296
14297         * elf/dl-addr.c (determine_info): Add inline keyword.
14298         * elf/tst-auditmod4b.c (check_avx): Likewise.
14299         * elf/tst-auditmod6b.c (check_avx): Likewise.
14300         * elf/tst-auditmod6c.c (check_avx): Likewise.
14301         * elf/tst-auditmod7b.c (check_avx): Likewise.
14302
14303 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14304
14305         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14306         !__SSE_MATH__.
14307
14308 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14309
14310         [BZ #13540]
14311         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14312         processing for last bytes.
14313
14314 2011-08-06  Bruno Haible  <bruno@clisp.org>
14315
14316         [BZ #13061]
14317         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14318         U+0385, not to U+1FEE.
14319
14320         [BZ #13062]
14321         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14322         entry for U+00A5 U+0301.
14323
14324 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14325
14326         [BZ #13166]
14327         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14328         buffer for the output is too small.
14329
14330         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14331         optimization.
14332
14333         [BZ #13185]
14334         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14335         SSE flags if possible.
14336
14337 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14338
14339         [BZ #13540]
14340         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14341         processing for last bytes.
14342
14343 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14344
14345         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14346         (syscall-list-default-options, syscall-list-default-condition)
14347         (syscall-list-includes): Define.
14348         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14349         list of ABIs and options and #if conditions for each ABI.  Do not
14350         handle common syscalls between ABIs specially.
14351         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14352         Remove.
14353         (syscall-list-variants, syscall-list-32bit-options)
14354         (syscall-list-32bit-condition, syscall-list-64bit-options)
14355         (syscall-list-64bit-condition): Define.
14356         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/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         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14366         Remove.
14367         (syscall-list-variants, syscall-list-32bit-options)
14368         (syscall-list-32bit-condition, syscall-list-64bit-options)
14369         (syscall-list-64bit-condition): Define.
14370
14371 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14372
14373         * locale/iso-639.def: Add brx entry.
14374
14375         [BZ #13328]
14376         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14377         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14378
14379         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14380         __feraiseexcept_renamed.
14381
14382 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14383
14384         [BZ #13538]
14385         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14386         EPOLLET with unsigned values.
14387         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14388         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14389
14390         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14391         to large cancellation.
14392         * math/s_cacoshf.c: Likewise.
14393         * math/s_cacoshl.c: Likewise.
14394
14395 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14396
14397         [BZ #13305]
14398         [BZ #12786]
14399         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14400         * math/s_cacoshf.c: Likewise.
14401         * math/s_cacoshl.c: Likewise.
14402
14403 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14404
14405         [BZ #13439]
14406         * iconv/gconv.h: Define __GCONV_SWAP.
14407         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14408         * iconvdata/utf-16.c: Likewise.
14409         * iconvdata/utf-32.c: Likewise.
14410
14411 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14412
14413         [BZ #13524]
14414         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14415         numerator after shifting it by one limb.
14416
14417 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14418
14419         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14420         under [__USE_EXTERN_INLINES].
14421
14422 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14423
14424         [BZ #13446]
14425         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14426
14427 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14428
14429         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14430         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14431         optimized code.
14432         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14433         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14434         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14435         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14436         for strncasecmp/strncasecmp_l compilation.
14437         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14438         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14439
14440 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14441
14442         [BZ #13484]
14443         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14444         of __asm__.
14445
14446 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14447
14448         [BZ #13506]
14449         * time/tzfile.c (__tzfile_read): Check values from file header.
14450
14451 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14452
14453         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14454         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14455         * powerpc/powerpc32/dl-start.S: Likewise.
14456         * powerpc/powerpc32/elf/start.S: Likewise.
14457         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14458         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14459         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14460         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14461         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14462         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14463         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14464         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14465         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14466         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14467         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14468         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14469         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14470         * powerpc/powerpc32/memset.S: Likewise.
14471         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14472         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14473         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14474         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14475         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14476         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14477         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14478         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14479         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14480         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14481         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14482         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14483         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14484
14485 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14486
14487         * math/libm-test.inc: Added more nearbyint tests.
14488         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14489         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14490         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14491         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14492
14493 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14494
14495         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14496         FD_CLOEXEC.
14497
14498 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14499
14500         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14501         Add wcscpy-ssse3 wcscpy-c.
14502         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14503         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14504         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14505         * sysdeps/x86_64/wcschr.S: New file.
14506         * sysdeps/x86_64/wcsrchr.S: New file.
14507         * string/test-strcmp.c: Remove checking of wcscmp function for
14508         wrong alignments.
14509         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14510         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14511         wcsrchr-sse2 wcsrchr-c.
14512         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14513         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14514         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14515         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14516         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14517         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14518         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14519         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14520         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14521         * wcsmbc/wcschr.c (WCSCHR): New macro.
14522
14523 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14524
14525         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14526         * wcsmbs/test-wcsrchr.c: New file.
14527         * string/test-strrchr.c: Add wcsrchr support.
14528         (WIDE): New macro.
14529         * wcsmbs/test-wcscpy.c: New file.
14530         * string/test-strcpy.c: Add wcscpy support.
14531         (WIDE): New macro.
14532
14533 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14534
14535         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14536         the inner loop.
14537
14538 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14539
14540         [BZ #13472]
14541         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14542
14543 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14544
14545         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14546         Minor optimizations.
14547
14548         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14549         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14550         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14551
14552 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14553
14554         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14555         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14556         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14557         for gcc to avoid warnings.
14558         * inet/Makefile (tests): Add tst-checks.
14559         * inet/tst-checks.c: New file.
14560
14561         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14562         warning.
14563
14564         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14565         __wmemcmp_sse2.
14566
14567         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14568         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14569
14570         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14571
14572 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14573
14574         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14575         problem.
14576
14577         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14578
14579 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14580
14581         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14582         conditional on GCC version.
14583         (__arch_compare_and_exchange_val_8_acq)
14584         (__arch_compare_and_exchange_val_16_acq)
14585         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14586         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14587         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14588
14589 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14590
14591         * sysdeps/sh/backtrace.c: New file.
14592
14593 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14594
14595         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14596         parenthesis.
14597
14598 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14599
14600         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14601         falling back to utime.
14602
14603 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14604
14605         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14606         expectations for float.
14607
14608 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14609
14610         * locale/weight.h (findidx): Add parameter len.
14611         * locale/weightwc.h (findidx): Likewise.
14612         * posix/fnmatch_loop.c (FCT): Adjust caller.
14613         * posix/regcomp.c (build_equiv_class): Likewise.
14614         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14615         * posix/regexec.c (check_node_accept_bytes): Likewise.
14616         * string/strcoll_l.c (STRCOLL): Likewise.
14617         * string/strxfrm_l.c (STRXFRM): Likewise.
14618
14619 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14620
14621         * Makefile.in: Remove CVSOPT handling.
14622         * configure.in: Remove use of AC_REVISION.
14623         * iconvdata/Makefile (distribute): No need to filter out CVS.
14624         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14625         handling.
14626
14627 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14628
14629         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14630         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14631         [USE_AS_STRNCASECMP_L]: Likewise.
14632         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14633         NO_TLS_DIRECT_SEG_REFS.
14634         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14635         Fix argument offsets for non-PIC.
14636         [USE_AS_STRNCASECMP_L]: Likewise.
14637         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14638         NO_TLS_DIRECT_SEG_REFS.
14639
14640 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14641
14642         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14643         O_CLOEXEC.
14644         * locale/loadlocale.c (_nl_load_locale): Likewise.
14645
14646 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14647
14648         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14649         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14650         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14651         (SYSCALL_GETTIME): Set errno on error.
14652
14653         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14654         count references to noai6ai_cached.
14655
14656 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14657
14658         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14659
14660         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14661         FD_CLOEXEC for /proc/self/maps.
14662
14663         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14664         FD_CLOEXEC for /proc/meminfo.
14665
14666         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14667         gai.conf.
14668
14669         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14670         FD_CLOEXEC for given file.
14671
14672         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14673
14674         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14675         FD_CLOEXEC for /etc/hosts.
14676         (_gethtent): Likewise.
14677
14678         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14679
14680         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14681         cancellation and set FD_CLOEXEC for /etc/netgroup.
14682
14683         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14684         reading /etc/publickey.
14685
14686         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14687         allow cancellation when reading /etc/group.
14688
14689         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14690         cancellation.
14691         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14692
14693         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14694         when using data file.
14695
14696         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14697
14698         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14699         (write_nis_obj): Use "c" and "e" in fopen.
14700
14701         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14702
14703         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14704
14705         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14706
14707         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14708
14709         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14710         locale.alias.
14711
14712         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14713
14714         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14715
14716         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14717
14718         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14719         file parsing and set FD_CLOEXEC.
14720
14721 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14722
14723         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14724
14725 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14726
14727         * malloc/arena.c (arena_get2): Don't call reused_arena when
14728         _int_new_arena failed.
14729
14730 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14731
14732         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14733         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14734         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14735         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14736         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14737         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14738         to compile strcasecmp and strncasecmp.
14739         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14740         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14741
14742         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14743
14744 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14745
14746         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14747         locale-defines.sym to gen-as-const-headers.
14748         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14749         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14750         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14751         to compile strcasecmp and strncasecmp.
14752         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14753         strcasecmp_l and strncasecmp_l.
14754         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14755         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14756         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14757         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14758         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14759         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14760         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14761         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14762         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14763         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14764         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14765
14766 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14767
14768         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14769         result of SYSDEP_GETTIME_CPU to retval.
14770         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14771         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14772
14773         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14774         variable.
14775
14776         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14777         mantissa words.
14778         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14779
14780         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14781         from unused variable.
14782
14783         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14784         DWARF definitions.
14785         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14786         for assembling.
14787
14788         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14789         over namespaces.
14790
14791         * sunrpc/rpc_prot.c (rejected): Fix case value.
14792
14793         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14794         unsigned long long int to avoid warnings in shift.
14795
14796         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14797         of use of trans.
14798         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14799         variable tmp.
14800
14801         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14802         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14803         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14804
14805         * nis/nis_table.c (nis_list): Use variable of correct type for
14806         result of __follow_path call.
14807
14808 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14809
14810         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14811         of math functions ceil, trunc, floor, round, and sqrt, when
14812         avaliable on the platform.
14813         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14814         name clash.
14815         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14816         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14817         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14818
14819 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14820
14821         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14822         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14823
14824 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14825
14826         * include/unistd.h: Fix __readlink return type.
14827         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14828
14829 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14830
14831         * stdlib/ucontext.h: Undo last change for makecontext.
14832
14833 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14834
14835         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14836
14837         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14838         * setjmp/setjmp.h: Mark functions as non-leaf.
14839         * setjmp/bits/setjmp2.h: Likewise.
14840         * stdlib/ucontext.h: Likewise.
14841
14842 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14843
14844         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14845         (reused_arena): Don't check arena limit.
14846         (arena_get2): Atomically check arena limit.
14847
14848 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14849
14850         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14851         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14852
14853         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14854         instructions.
14855
14856 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14857
14858         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14859         handler when locking.
14860
14861         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14862         Fix size of allocated buffer.
14863
14864 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14865
14866         [BZ #10103]
14867         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14868         declarations for long double functions.
14869         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14870
14871         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14872
14873 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14874
14875         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14876         installed.
14877
14878         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14879         is disabled.
14880
14881 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14882
14883         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14884
14885 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14886
14887         * include/alloca.h (stackinfo_alloca_round): Define.
14888         (extend_alloca): Use it.
14889         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14890         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14891         here.
14892
14893         * scripts/check-local-headers.sh: Ignore libaudit.h.
14894
14895         * nscd/Makefile (extra-objs): Make recursively expanded.
14896
14897 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14898
14899         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14900         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14901
14902         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14903         * posix/tst-rfc3484-2.c: Likewise.
14904         * posix/tst-rfc3484-3.c: Likewise.
14905
14906         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14907         process_vm_writev.
14908         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14909         process_vm_writev.
14910         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14911         process_vm_writev from libc using GLIBC_2.15 version.
14912
14913         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14914
14915 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14916
14917         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14918         stack usage.
14919
14920 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14921
14922         [BZ #13367]
14923         * nss/getent.c (initgroups_keys): Show error message in case no group
14924         names are given.
14925
14926         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14927         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14928         __bump_nl_timestamp.
14929         * nscd/connections (nscd_init): When host database is served open
14930         netlink socket and request notification about configuration changes.
14931         (main_loop_poll): Track netlink file descriptor and bump timestamp
14932         in case data becomes available.
14933         (main_loop_epoll): Likewise.
14934         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14935         (database_pers_head): Add extra_data fileds.
14936         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14937         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14938         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14939         Adjust caller.
14940         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14941         in6ai data, call __free_in6ai.
14942         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14943         Add -DHAVE_NETLINK.
14944         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14945         interface information.  Reuse previous data if netlink timestamp
14946         is not changed.
14947         (__bump_nl_timestamp): New function.
14948         (__free_in6ai): New function.
14949
14950 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14951
14952         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14953         close_not_cancel_no_status here.
14954         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14955
14956 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14957
14958         [BZ #13276]
14959         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14960         return value.
14961
14962         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14963         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14964         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14965
14966 2011-07-03  Andreas Jaeger  <aj@suse.de>
14967
14968         [BZ #10709]
14969         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14970         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14971         * math/libm-test.inc (sin_test): Add test case.
14972
14973 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14974
14975         [BZ #13337]
14976         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14977         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14978
14979         * elf/chroot_canon.c (chroot_canon): Cleanups.
14980
14981         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14982
14983         [BZ #13335]
14984         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14985         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14986
14987         * string/test-strchr.c: Make usable for strchrnul testing.
14988         * string/test-strchrnul.c: New file.
14989         * string/Makefile (strop-tests): Add strchrnul.
14990
14991         * po/it.po: Update from translation team.
14992         * po/es.po: Likewise.
14993
14994 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14995
14996         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14997         the three constants needed as parameters.  Drop the others.
14998         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14999         __m128i_strloadu_tolower.
15000         Create and initialize variable zero and use it in all the places
15001         where _mm_setzero_si128 was used.
15002
15003         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15004         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15005         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15006         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15007         anymore.
15008         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15009         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15010         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15011         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15012         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15013         __mpranred, __mptan.
15014         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15015         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15016         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15017         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15018         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15019         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15020         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15021         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15022         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15023
15024 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15025
15026         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15027         redefine if SHARED.
15028         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15029
15030         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15031         wide char related routines to wcsmbs subdir.
15032
15033 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15034
15035         [BZ #13344]
15036         * misc/sys/cdefs.h (__THROWNL): Define.
15037         * posix/unistd.h: Use __THREADNL instead of __THREAD
15038         for memory synchronization functions.
15039
15040 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15041
15042         [BZ #13349]
15043         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15044         doesn't exist.
15045         * manual/stdio.texi (Obstack Streams): Node removed.
15046
15047 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15048
15049         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15050         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15051         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15052
15053         * math/math_private.h (math_force_eval): Allow non-addressable
15054         arguments.
15055         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15056
15057 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15058
15059         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15060         file is not needed.
15061
15062         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15063         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15064         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15065         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15066         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15067         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15068         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15069         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15070         Add AVX variants.
15071         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15072         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15073         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15074         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15075         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15076         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15077         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15078         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15079         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15080         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15081         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15082         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15083         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15084         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15085         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15086         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15087         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15088         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15089         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15090
15091         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15092         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15093
15094         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15095         place.  Use VEX encoding when compiling for AVX.
15096
15097 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15098
15099         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15100         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15101
15102         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15103
15104 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15105
15106         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15107         useless if() expression.
15108         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15109         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15110         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15111         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15112         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15113         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15114         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15115         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15116         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15117         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15118         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15119         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15120         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15121         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15122         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15123         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15124         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15125         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15126         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15127
15128         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15129
15130 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15131
15132         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15133         condition.
15134         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15135
15136 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15137
15138         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15139         .text section.  Avoid duplicate constants.
15140         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15141         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15142         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15143         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15144         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15145         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15146         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15147         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15150         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15152         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15155         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15157         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15163         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15164         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15165         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15166         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15167         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15168         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15169         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15170         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15171         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15172         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15173         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15174         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15175         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15176         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15177         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15178         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15179         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15180         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15181         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15182         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15183         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15184         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15185
15186 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15187
15188         * sysdeps/x86_64/dla.h: Move to ...
15189         * sysdeps/x86_64/fpu/dla.h: ...here.
15190         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15191         situations.  Use __builtin_fma only for gcc 4.6 and up.
15192
15193         * config.make.in: Add have-mfma4 entry.
15194         * configure.in: Substitute libc_cv_cc_fma4.
15195         * math/Makefile (dbl-only-routines): Add sincostab.
15196         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15197         Use __sincostab not sincos.
15198         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15199         name is a macro.
15200         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15201         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15202         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15203         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15204         using __copysign.
15205         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15206         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15207         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15208         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15209         and __inv.
15210         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15211         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15212         __copysign.
15213         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15214         define aliases when function name is a macro.
15215         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15216         sysdeps/ieee754/dbl-64/sincos.tbl.
15217         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15218         fma4-enabled routines.
15219         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15220         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15221         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15222         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15223         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15224         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15225         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15226         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15227         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15228         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15229         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15230         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15231         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15232         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15233         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15234         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15235         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15236         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15237         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15238         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15239         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15240         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15241         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15242         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15243         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15244         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15245         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15246         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15247         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15248         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15249
15250         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15251         rename.
15252         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15253         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15254         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15255         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15256         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15257         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15258         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15259         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15260
15261 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15262
15263         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15264
15265 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15266
15267         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15268
15269         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15270         prediction.
15271         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15272
15273         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15274         Remove unused variable magic_bits.
15275         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15276
15277         * string/strnlen.c: Define and use STRNLEN macro.
15278         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15279         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15280         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15281         * wcsmbs/wcslen.c: Define and use WCSLEN.
15282         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15283         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15284         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15285         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15286         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15287         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15288         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15289
15290 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15291
15292         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15293         strnlen-sse2-no-bsf.
15294         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15295         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15296         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15297         Add strnlen support.
15298         (USE_AS_STRNLEN): New macro.
15299         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15300         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15301         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15302         * sysdeps/x86_64/wcslen.S: New file.
15303
15304 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15305
15306         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15307         XMM-moves are used for copying on small sizes.
15308
15309 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15310
15311         * wcsmbs/Makefile (strop-tests): Add wcschr.
15312         * wcsmbs/test-wcschr.c: New file.
15313         * string/test-strchr.c: Update.
15314         Add wcschr support.
15315         (WIDE): New macro.
15316
15317 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15318
15319         * wcsmbs/Makefile (strop-tests): Add wcslen.
15320         * wcsmbs/test-wcslen.c: New file.
15321         * string/test-strlen.c: Update.
15322         Add wcslen support.
15323         (WIDE): New macro.
15324
15325 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15326
15327         * po/it.po: Update from translation team.
15328
15329 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15330
15331         * sysdeps/x86_64/wcscmp.S: Update.
15332         Fix wrong comparison semantics.
15333         wcscmp shall use signed comparison not unsigned.
15334         Don't use substraction to avoid overflow bug.
15335         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15336         * wcsmbc/wcscmp.c: Likewise.
15337         * string/test-strcmp.c: Likewise.
15338         Add new tests to check cases with negative values.
15339
15340 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15341
15342         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15343         * sysdeps/x86_64/dla.h: ...here.  New file.
15344         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15345         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15346         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15347         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15348         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15349         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15350         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15351         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15352         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15353
15354 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15355
15356         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15357         __ynl_finite aliases.
15358
15359 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15360
15361         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15362
15363         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15364         define DLA_FMA.
15365         [DLA_FMA] (EMULV): Use DLA_FMA.
15366         [DLA_FMA] (MUL12): Use EMULV.
15367         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15368         that are not needed.
15369         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15370         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15371         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15372         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15373         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15374         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15375         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15376
15377 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15378
15379         * math/s_nan.c: Undef __nan.
15380         * math/s_nanf.c: Undef __nanf.
15381         * math/s_nanl.c: Undef __nanl.
15382         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15383         "math_private.h".
15384
15385 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15386
15387         * math/s_catan.c: Add branch predictions.
15388         * math/s_catanf.c: Likewise.
15389         * math/s_catanh.c: Likewise.
15390         * math/s_catanhf.c: Likewise.
15391         * math/s_catanhl.c: Likewise.
15392         * math/s_catanl.c: Likewise.
15393         * math/s_cexp.c: Likewise.
15394         * math/s_cexpf.c: Likewise.
15395         * math/s_cexpl.c: Likewise.
15396         * math/s_clog.c: Likewise.
15397         * math/s_clog10.c: Likewise.
15398         * math/s_clog10f.c: Likewise.
15399         * math/s_clog10l.c: Likewise.
15400         * math/s_clogf.c: Likewise.
15401         * math/s_clogl.c: Likewise.
15402         * math/s_csqrt.c: Likewise.
15403         * math/s_csqrtf.c: Likewise.
15404         * math/s_csqrtl.c: Likewise.
15405         * math/s_ctanf.c: Likewise.
15406         * math/s_ctanh.c: Likewise.
15407         * math/s_ctanhf.c: Likewise.
15408         * math/s_ctanhl.c: Likewise.
15409         * math/s_ctanl.c: Likewise.
15410
15411         * math/math_private.h: Define __nan, __nanf, __nanl.
15412         * math/s_cacosh.c: Include <math_private.h>.
15413         * math/s_cacoshl.c: Likewise.
15414         * math/s_casinh.c: Likewise.
15415         * math/s_casinhf.c: Likewise.
15416         * math/s_casinhl.c: Likewise.
15417         * math/s_ccos.c: Rely entire on ccosh.
15418         * math/s_ccosf.c: Rely entire on ccoshf.
15419         * math/s_ccosl.c: Rely entirely on ccoshl.
15420         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15421         Remove tests for FE_INVALID.
15422         * math/s_ccoshf.c: Likewise.
15423         * math/s_ccoshl.c: Likewise.
15424         * math/s_csin.c: Likewise.
15425         * math/s_csinf.c: Likewise.
15426         * math/s_csinh.c Likewise.
15427         * math/s_csinhf.c: Likewise.
15428         * math/s_csinhl.c: Likewise.
15429         * math/s_csinl.c: Likewise.
15430         * math/s_ctan.c: Likewise.
15431         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15432         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15433         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15434
15435 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15436
15437         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15438         compilation problems.
15439
15440         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15441         __builtin_expect.
15442
15443 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15444
15445         * sysdeps/i386/configure.in: Test for -mfma4 option.
15446         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15447         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15448         COMMON_CPUID_INDEX_80000001.
15449         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15450         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15451         use it if FMA3 is not supported.
15452         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15453
15454         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15455         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15456
15457 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15458
15459         [BZ #12892]
15460         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15461         it would create a cycle with a link time dependency.
15462
15463 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15464
15465         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15466         instruction.
15467         * string/Makefile (strop-tests): Add rawmemchr.
15468         * string/test-rawmemchr.c: New file.
15469
15470         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15471         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15472         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15473         when compiling str{,n}casecmp and when AVX is available.  Hook up
15474         new optimized code in initializers.
15475
15476 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15477
15478         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15479         __feraiseexcept instead of feraiseexcept.
15480
15481 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15482
15483         * math/math_private.h: Define defaults for libc_fetestexcept and
15484         libc_feupdateenv.
15485         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15486         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15487         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15488         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15489         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15490         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15491         libc_fetestexcept and libc_feupdateenv.
15492
15493         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15494         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15495         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15496         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15497         libc_feholdexcept_setround.
15498
15499         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15500         Add s_nearbyint-c and s_nearbyintf-c.
15501         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15502         nearbyintf inlines.
15503         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15504         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15505         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15506         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15507
15508         * math/math_private.h: Define defaults for libc_fegetround,
15509         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15510         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15511         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15512         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15513         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15514         standard functions.
15515         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15516         Remove comments and hacks for old compiler versions.
15517         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15518         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15519         libc_feholdexceptl.
15520
15521 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15522
15523         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15524         (__feraiseexcept_renamed): Add __NTH.
15525         (feraiseexcept): Add __NTH.  Rename local variables to fix
15526         namespace violations.
15527
15528 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15529
15530         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15531
15532         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15533
15534         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15535         recently added interfaces.
15536         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15537
15538         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15539         about macro parameter expansion.
15540
15541         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15542         __NO_MATH_INLINES is defined.  Cleanups.
15543
15544         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15545         and __floorf is target has SSE4.1.
15546         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15547         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15548         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15549         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15550
15551         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15552         name.
15553         (floorf): Likewise.
15554
15555         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15556
15557 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15558
15559         * misc/sys/cdefs.h: Fix last change.
15560
15561         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15562         database lookup.
15563
15564 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15565
15566         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15567
15568         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15569         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15570         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15571         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15572         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15573         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15574         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15575         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15576         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15577         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15578         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15579         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15580         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15581         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15582         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15583         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15584         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15585         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15586         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15587         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15588         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15589         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15590
15591         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15592         ceil, ceilf, floor, floorf.
15593
15594         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15595         Perform IRELATIVE relocations last.
15596
15597         * elf/do-rel.h: Add another parameter nrelative, replacing the
15598         local variable with the same name.  Change name of the function
15599         to end in Rel or Rela (uppercase).
15600         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15601         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15602         elf_dynamic_do_##reloc function.
15603
15604 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15605
15606         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15607         is sufficient, at least on modern CPUs.
15608
15609         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15610
15611         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15612         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15613
15614         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15615         __expl_finite.
15616         * math/bits/math-finite.h: Add entries for exp.
15617         * math/e_expl.c: Add __*_finite alias.
15618         * sysdeps/i386/fpu/e_exp.S: Likewise.
15619         * sysdeps/i386/fpu/e_expf.S: Likewise.
15620         * sysdeps/i386/fpu/e_expl.c: Likewise.
15621         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15622         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15623         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15624         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15625         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15626         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15627         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15628
15629         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15630         is sufficient, at least on modern CPUs.
15631
15632         * ctype/ctype-info.c (__ctype_init): Define.
15633         * include/ctype.h (__ctype_init): Declare.
15634         (__ctype_b_loc): The variable is always initialized.
15635         (__ctype_toupper_loc): Likewise.
15636         (__ctype_tolower_loc): Likewise.
15637         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15638         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15639
15640 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15641
15642         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15643
15644         * configure.in: Also look in $cxxmachine/include for C++ system
15645         headers.
15646
15647 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15648
15649         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15650         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15651         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15652         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15653         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15654         (USE_AS_WMEMCMP): New macro.
15655         Fixing indents.
15656         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15657         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15658         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15659         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15660         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15661         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15662         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15663         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15664         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15665         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15666         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15667         (USE_AS_WMEMCMP): New macro.
15668         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15669         * sysdeps/string/test-memcmp.c: Update.
15670         Fix simple_wmemcmp.
15671         Add new tests.
15672         * wcsmbs/wmemcmp.c: Update.
15673         (WMEMCMP): New macro.
15674         Fix overflow bug.
15675
15676 2011-10-12  Andreas Jaeger  <aj@suse.de>
15677
15678         [BZ #13268]
15679         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15680
15681 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15682
15683         * libio/iofwide.c (do_length): Avoid warning.
15684
15685         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15686
15687 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15688
15689         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15690
15691         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15692         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15693         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15694         * sysdeps/i386/i686/fpu/e_log.S: New file.
15695         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15696         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15697
15698         * ctype/ctype.h: Add support for inlined isXXX functions when
15699         compiling C++ code.
15700
15701 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15702
15703         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15704
15705         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15706
15707 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15708
15709         [BZ #13291]
15710         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15711
15712 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15713
15714         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15715         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15716         feraiseexcept.
15717
15718         * sysdeps/x86_64/memrchr.S: Check for zero size.
15719
15720         * string/stratcliff.c: Add memrchr tests.
15721
15722 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15723
15724         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15725         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15726         rawmemchr-sse2 rawmemchr-sse2-bsf.
15727         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15728         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15729         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15730         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15731         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15732         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15733         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15734         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15735         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15736         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15737         * string/memrchr.c (MEMRCHR): New macro.
15738
15739 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15740
15741         Add integration with gcc's -ffinite-math-only and optimize wrapper
15742         functions in libm.
15743         * Versions.def: Define GLIBC_2.15 version for libm.
15744         * math/Makefile (headers): Add bits/math-finite.h.
15745         * math/bits/math-finite.h: New file.
15746         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15747         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15748         * math/e_acoshl.c: Add __*_finite alias.
15749         * math/e_acosl.c: Likewise.
15750         * math/e_asinl.c: Likewise.
15751         * math/e_atan2l.c: Likewise.
15752         * math/e_atanhl.c: Likewise.
15753         * math/e_coshl.c: Likewise.
15754         * math/e_exp10.c: Likewise.
15755         * math/e_exp10f.c: Likewise.
15756         * math/e_exp10l.c: Likewise.
15757         * math/e_exp2l.c: Likewise.
15758         * math/e_fmodl.c: Likewise.
15759         * math/e_gammal_r.c: Likewise.
15760         * math/e_hypotl.c: Likewise.
15761         * math/e_j0l.c: Likewise.
15762         * math/e_j1l.c: Likewise.
15763         * math/e_jnl.c: Likewise.
15764         * math/e_lgammal_r.c: Likewise.
15765         * math/e_log10l.c: Likewise.
15766         * math/e_log2l.c: Likewise.
15767         * math/e_logl.c: Likewise.
15768         * math/e_powl.c: Likewise.
15769         * math/e_sinhl.c: Likewise.
15770         * math/e_sqrtl.c: Likewise.
15771         * math/e_scalb.c: Completely rewritten and optimized.
15772         * math/e_scalbf.c: Likewise.
15773         * math/e_scalbl.c: Likewise.
15774         * math/w_acos.c: Likewise.
15775         * math/w_acosf.c: Likewise.
15776         * math/w_acosl.c: Likewise.
15777         * math/w_acosh.c: Likewise.
15778         * math/w_acoshf.c: Likewise.
15779         * math/w_acoshl.c: Likewise.
15780         * math/w_asin.c: Likewise.
15781         * math/w_asinf.c: Likewise.
15782         * math/w_asinl.c: Likewise.
15783         * math/w_atan2.c: Likewise.
15784         * math/w_atan2f.c: Likewise.
15785         * math/w_atan2l.c: Likewise.
15786         * math/w_atanh.c: Likewise.
15787         * math/w_atanhf.c: Likewise.
15788         * math/w_atanhl.c: Likewise.
15789         * math/w_exp10.c: Likewise.
15790         * math/w_exp10f.c: Likewise.
15791         * math/w_exp10l.c: Likewise.
15792         * math/w_fmod.c: Likewise.
15793         * math/w_fmodf.c: Likewise.
15794         * math/w_fmodl.c: Likewise.
15795         * math/w_j0.c: Likewise.
15796         * math/w_j0f.c: Likewise.
15797         * math/w_j0l.c: Likewise.
15798         * math/w_j1.c: Likewise.
15799         * math/w_j1f.c: Likewise.
15800         * math/w_j1l.c: Likewise.
15801         * math/w_jn.c: Likewise.
15802         * math/w_jnf.c: Likewise.
15803         * math/w_log.c: Likewise.
15804         * math/w_logf.c: Likewise.
15805         * math/w_logl.c: Likewise.
15806         * math/w_log10.c: Likewise.
15807         * math/w_log10f.c: Likewise.
15808         * math/w_log10l.c: Likewise.
15809         * math/w_log2.c: Likewise.
15810         * math/w_log2f.c: Likewise.
15811         * math/w_log2l.c: Likewise.
15812         * math/w_pow.c: Likewise.
15813         * math/w_powf.c: Likewise.
15814         * math/w_powl.c: Likewise.
15815         * math/w_remainder.c: Likewise.
15816         * math/w_remainderf.c: Likewise.
15817         * math/w_remainderl.c: Likewise.
15818         * math/w_scalb.c: Likewise.
15819         * math/w_scalbf.c: Likewise.
15820         * math/w_scalbl.c: Likewise.
15821         * math/w_sqrt.c: Likewise.
15822         * math/w_sqrtf.c: Likewise.
15823         * math/w_sqrtl.c: Likewise.
15824         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15825         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15826         used.
15827         * math/math_private.h: Declare __kernel_standard_f.
15828         * math/w_cosh.c: Remove cruft and optimize a bit.
15829         * math/w_coshf.c: Likewise.
15830         * math/w_coshl.c: Likewise.
15831         * math/w_exp2.c: Likewise.
15832         * math/w_exp2f.c: Likewise.
15833         * math/w_exp2l.c: Likewise.
15834         * math/w_hypot.c: Likewise.
15835         * math/w_hypotf.c: Likewise.
15836         * math/w_hypotl.c: Likewise.
15837         * math/w_lgamma.c: Likewise.
15838         * math/w_lgamma_r.c: Likewise.
15839         * math/w_lgammaf.c: Likewise.
15840         * math/w_lgammaf_r.c: Likewise.
15841         * math/w_lgammal.c: Likewise.
15842         * math/w_lgammal_r.c: Likewise.
15843         * math/w_sinh.c: Likewise.
15844         * math/w_sinhf.c: Likewise.
15845         * math/w_sinhl.c: Likewise.
15846         * math/w_tgamma.c: Likewise.
15847         * math/w_tgammaf.c: Likewise.
15848         * math/w_tgammal.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15850         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15851         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15852         Minor optimizations.  Pretty printing.  Remove cruft.
15853         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15854         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15855         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15856         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15857         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15858         * sysdeps/i386/fpu/e_asin.S: Likewise.
15859         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15860         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15861         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15862         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15863         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15864         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15865         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15866         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15867         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15868         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15869         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15870         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15871         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15872         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15873         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15874         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15875         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15876         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15877         * sysdeps/i386/fpu/e_log.S: Likewise.
15878         * sysdeps/i386/fpu/e_log10.S: Likewise.
15879         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15880         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15881         * sysdeps/i386/fpu/e_log2.S: Likewise.
15882         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15883         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15884         * sysdeps/i386/fpu/e_logf.S: Likewise.
15885         * sysdeps/i386/fpu/e_logl.S: Likewise.
15886         * sysdeps/i386/fpu/e_pow.S: Likewise.
15887         * sysdeps/i386/fpu/e_powf.S: Likewise.
15888         * sysdeps/i386/fpu/e_powl.S: Likewise.
15889         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15890         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15891         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15892         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15893         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15894         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15895         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15896         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15897         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15898         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15899         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15900         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15901         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15902         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15903         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15904         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15905         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15906         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15907         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15908         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15909         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15910         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15911         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15912         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15913         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15914         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15915         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15916         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15917         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15918         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15919         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15920         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15921         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15922         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15923         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15924         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15925         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15926         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15927         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15928         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15929         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15930         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15931         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15932         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15933         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15934         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15935         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15936         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15937         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15938         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15939         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15940         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15941         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15942         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15943         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15944         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15945         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15946         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15948         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15949         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15950         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15951         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15952         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15953         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15954         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15955         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15956         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15957         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15958         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15960         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15962         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15963         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15964         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15965         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15966         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15967         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15968         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15969         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15970         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15971         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15972         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15973         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15974         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15975         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15976         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15977         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15978         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15979         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15980         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15981         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15982         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15983         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15984         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15985         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15986         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15987         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15988         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15989         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15990         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15991         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15992         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15993         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15994         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15995         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15996         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15997         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15998         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15999         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16000         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16001         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16002         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16003         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16004         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16005         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16006         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16007         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16008         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16009         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16010         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16011         (__isnanf): Likewise.
16012         (__isinf_ns): Likewise.
16013         (__isinf_nsf): Likewise.
16014         (__finite): Likewise.
16015         (__finitef): Likewise.
16016         (__ieee754_sqrt): Define as macro.
16017         (__ieee754_sqrtf): Define as macro.
16018         (__ieee754_sqrtl): Define as macro.
16019         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16020         inlined copy.
16021         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16022         __FINITE_MATH_ONLY__ consistent.
16023         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16024
16025 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16026
16027         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16028         of rawmemchr.
16029
16030         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16031
16032 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16033
16034         * po/ja.po: Update from translation team.
16035
16036 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16037
16038         * locale/programs/locarchive.c (prepare_address_space): New function.
16039         (create_archive, enlarge_archive, open_archive): Use it.
16040
16041         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16042         inside [SHARED], where it is used.
16043
16044         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16045
16046         * nss/getent.c (netgroup_keys): Remove unused variable.
16047         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16048
16049 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16050
16051         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16052         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16053         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16054         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16055         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16056         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16057         * math/Makefile (libm-calls): Add s_isinf_ns.
16058         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16059         * math/multc3.c: Likewise.
16060         * math/s_casin.c: Likewise.
16061         * math/s_casinf.c: Likewise.
16062         * math/s_casinl.c: Likewise.
16063         * math/s_ccos.c: Likewise.
16064         * math/s_ccosf.c: Likewise.
16065         * math/s_ccosl.c: Likewise.
16066         * math/s_ctan.c: Likewise.
16067         * math/s_ctanf.c: Likewise.
16068         * math/s_ctanh.c: Likewise.
16069         * math/s_ctanhf.c: Likewise.
16070         * math/s_ctanhl.c: Likewise.
16071         * math/s_ctanl.c: Likewise.
16072         * math/w_fmod.c: Likewise.
16073         * math/w_fmodf.c: Likewise.
16074         * math/w_fmodl.c: Likewise.
16075         * math/w_remainder.c: Likewise.
16076         * math/w_remainderf.c: Likewise.
16077         * math/w_remainderl.c: Likewise.
16078         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16079         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16080         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16081         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16082         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16083         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16084         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16085         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16086
16087         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16088         of the number.
16089         * stdio-common/printf_fphex.c: Likewise.
16090         * stdio-common/printf_size.c: Likewise.
16091
16092         * math/e_exp10.c: Include math_private.h using <...> not "...".
16093         * math/e_exp10f.c: Likewise.
16094         * math/e_exp10l.c: Likewise.
16095         * math/e_exp2l.c: Likewise.
16096         * math/e_j0l.c: Likewise.
16097         * math/e_j1l.c: Likewise.
16098         * math/e_jnl.c: Likewise.
16099         * math/e_lgammal_r.c: Likewise.
16100         * math/e_rem_pio2l.c: Likewise.
16101         * math/e_scalb.c: Likewise.
16102         * math/e_scalbf.c: Likewise.
16103         * math/e_scalbl.c: Likewise.
16104         * math/k_cosl.c: Likewise.
16105         * math/k_sinl.c: Likewise.
16106         * math/k_tanl.c: Likewise.
16107         * math/s_cacoshf.c: Likewise.
16108         * math/s_catan.c: Likewise.
16109         * math/s_catanf.c: Likewise.
16110         * math/s_catanh.c: Likewise.
16111         * math/s_catanhf.c: Likewise.
16112         * math/s_catanhl.c: Likewise.
16113         * math/s_catanl.c: Likewise.
16114         * math/s_ccosh.c: Likewise.
16115         * math/s_ccoshf.c: Likewise.
16116         * math/s_ccoshl.c: Likewise.
16117         * math/s_cexp.c: Likewise.
16118         * math/s_cexpf.c: Likewise.
16119         * math/s_cexpl.c: Likewise.
16120         * math/s_clog.c: Likewise.
16121         * math/s_clog10.c: Likewise.
16122         * math/s_clog10f.c: Likewise.
16123         * math/s_clog10l.c: Likewise.
16124         * math/s_clogf.c: Likewise.
16125         * math/s_clogl.c: Likewise.
16126         * math/s_csin.c: Likewise.
16127         * math/s_csinf.c: Likewise.
16128         * math/s_csinh.c: Likewise.
16129         * math/s_csinhf.c: Likewise.
16130         * math/s_csinhl.c: Likewise.
16131         * math/s_csinl.c: Likewise.
16132         * math/s_csqrt.c: Likewise.
16133         * math/s_csqrtf.c: Likewise.
16134         * math/s_csqrtl.c: Likewise.
16135         * math/s_ctan.c: Likewise.
16136         * math/s_ctanf.c: Likewise.
16137         * math/s_ctanh.c: Likewise.
16138         * math/s_ctanhf.c: Likewise.
16139         * math/s_ctanhl.c: Likewise.
16140         * math/s_ctanl.c: Likewise.
16141         * math/s_ldexp.c: Likewise.
16142         * math/s_ldexpf.c: Likewise.
16143         * math/s_ldexpl.c: Likewise.
16144         * math/s_significand.c: Likewise.
16145         * math/s_significandf.c: Likewise.
16146         * math/s_significandl.c: Likewise.
16147         * math/w_acos.c: Likewise.
16148         * math/w_acosf.c: Likewise.
16149         * math/w_acosh.c: Likewise.
16150         * math/w_acoshf.c: Likewise.
16151         * math/w_acoshl.c: Likewise.
16152         * math/w_acosl.c: Likewise.
16153         * math/w_asin.c: Likewise.
16154         * math/w_asinf.c: Likewise.
16155         * math/w_asinl.c: Likewise.
16156         * math/w_atan2.c: Likewise.
16157         * math/w_atan2f.c: Likewise.
16158         * math/w_atan2l.c: Likewise.
16159         * math/w_atanh.c: Likewise.
16160         * math/w_atanhf.c: Likewise.
16161         * math/w_atanhl.c: Likewise.
16162         * math/w_cosh.c: Likewise.
16163         * math/w_coshf.c: Likewise.
16164         * math/w_coshl.c: Likewise.
16165         * math/w_dremf.c: Likewise.
16166         * math/w_exp10.c: Likewise.
16167         * math/w_exp10f.c: Likewise.
16168         * math/w_exp10l.c: Likewise.
16169         * math/w_exp2.c: Likewise.
16170         * math/w_exp2f.c: Likewise.
16171         * math/w_fmod.c: Likewise.
16172         * math/w_fmodf.c: Likewise.
16173         * math/w_fmodl.c: Likewise.
16174         * math/w_hypot.c: Likewise.
16175         * math/w_hypotf.c: Likewise.
16176         * math/w_hypotl.c: Likewise.
16177         * math/w_j0.c: Likewise.
16178         * math/w_j0f.c: Likewise.
16179         * math/w_j0l.c: Likewise.
16180         * math/w_j1.c: Likewise.
16181         * math/w_j1f.c: Likewise.
16182         * math/w_j1l.c: Likewise.
16183         * math/w_jn.c: Likewise.
16184         * math/w_jnf.c: Likewise.
16185         * math/w_jnl.c: Likewise.
16186         * math/w_lgamma.c: Likewise.
16187         * math/w_lgamma_r.c: Likewise.
16188         * math/w_lgammaf.c: Likewise.
16189         * math/w_lgammaf_r.c: Likewise.
16190         * math/w_lgammal.c: Likewise.
16191         * math/w_lgammal_r.c: Likewise.
16192         * math/w_log.c: Likewise.
16193         * math/w_log10.c: Likewise.
16194         * math/w_log10f.c: Likewise.
16195         * math/w_log10l.c: Likewise.
16196         * math/w_log2.c: Likewise.
16197         * math/w_log2f.c: Likewise.
16198         * math/w_log2l.c: Likewise.
16199         * math/w_logf.c: Likewise.
16200         * math/w_logl.c: Likewise.
16201         * math/w_pow.c: Likewise.
16202         * math/w_powf.c: Likewise.
16203         * math/w_powl.c: Likewise.
16204         * math/w_remainder.c: Likewise.
16205         * math/w_remainderf.c: Likewise.
16206         * math/w_remainderl.c: Likewise.
16207         * math/w_scalb.c: Likewise.
16208         * math/w_scalbf.c: Likewise.
16209         * math/w_scalbl.c: Likewise.
16210         * math/w_sinh.c: Likewise.
16211         * math/w_sinhf.c: Likewise.
16212         * math/w_sinhl.c: Likewise.
16213         * math/w_sqrt.c: Likewise.
16214         * math/w_sqrtf.c: Likewise.
16215         * math/w_sqrtl.c: Likewise.
16216         * math/w_tgamma.c: Likewise.
16217         * math/w_tgammaf.c: Likewise.
16218         * math/w_tgammal.c: Likewise.
16219
16220         * po/ja.po: Update from translation team.
16221
16222 2011-09-29  Andreas Jaeger  <aj@suse.de>
16223
16224         [BZ #13179]
16225         * sunrpc/netname.c (netname2host): Fix logic.
16226
16227         [BZ #6779]
16228         [BZ #6783]
16229         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16230         correctly.
16231         * math/w_remainder.c (__remainder): Likewise.
16232         * math/w_remainderf.c (__remainderf): Likewise.
16233         * math/libm-test.inc (remainder_test): Add test cases.
16234
16235 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16236
16237         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16238         sdiv_qrnnd.
16239
16240 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16241
16242         * string/test-memcmp.c: Avoid unncessary #defines.
16243         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16244
16245 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16246
16247         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16248         Use new sse2 version for core i3 - i7 as it's faster
16249         than sse42 version.
16250         (bit_Prefer_PMINUB_for_stringop): New.
16251         * sysdeps/x86_64/rawmemchr.S: Update.
16252         Replace with faster SSE2 version.
16253         * sysdeps/x86_64/memrchr.S: New file.
16254         * sysdeps/x86_64/memchr.S: Update.
16255         Replace with faster SSE2 version.
16256
16257 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16258
16259         * elf/dl-load.c (lose): Add cast to avoid warning.
16260
16261 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16262
16263         * po/ca.po: Update from translation team.
16264
16265         * inet/getnetgrent_r.c: Hook up nscd.
16266         * nscd/Makefile (routines): Add nscd_netgroup.
16267         (nscd-modules): Add netgroupcache.
16268         (CFLAGS-netgroupcache.c): Define.
16269         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16270         (cache_search): Add const to second parameter.
16271         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16272         INNETGR.
16273         (dbs): Add netgrdb entry.
16274         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16275         (verify_persistent_db): Handle netgrdb.
16276         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16277         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16278         GETFDNETGR.
16279         (netgroup_response_header): Define.
16280         (innetgroup_response_header): Define.
16281         (datahead): Add netgroup_response_header and innetgroup_response_header
16282         elements.
16283         * nscd/nscd.conf: Add entries for netgroup cache.
16284         * nscd/nscd.h (dbtype): Add netgrdb.
16285         (_PATH_NSCD_NETGROUP_DB): Define.
16286         (netgroup_iov_disabled): Declare.
16287         (xmalloc, xcalloc, xrealloc): Move declarations here.
16288         (cache_search): Adjust prototype.
16289         Add netgroup-related prototypes.
16290         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16291         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16292         (__nscd_innetgr): Declare.
16293         * nscd/selinux.c (perms): Use access_vector_t as element type and
16294         add netgroup-related initializers.
16295         * nscd/netgroupcache.c: New file.
16296         * nscd/nscd_netgroup.c: New file.
16297         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16298         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16299         For four parameters use innetgr.
16300         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16301         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16302         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16303         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16304
16305         * nscd/connections.c (register_traced_file): Don't register file
16306         for disabled databases.
16307
16308 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16309
16310         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16311
16312         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16313         from tree and freeing node.
16314
16315 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16316
16317         * nss/nsswitch.c (__nss_database_lookup): Handle
16318         nss_parse_service_list out of memory case.
16319
16320 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16321
16322         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16323         out of memory case.
16324
16325 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16326
16327         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16328         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16329         pass it down.
16330         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16331         elf_machine_rela, elf_machine_lazy_rel.
16332         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16333         (ELF_DYNAMIC_DO_REL): Likewise.
16334         (ELF_DYNAMIC_DO_RELA): Likewise.
16335         (ELF_DYNAMIC_RELOCATE): Likewise.
16336         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16337         to ELF_DYNAMIC_DO_REL.
16338         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16339         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16340         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16341         elf_machine_rela.
16342         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16343         skip_ifunc, don't call ifunc function if non-zero.
16344         (elf_machine_rela): Likewise.
16345         (elf_machine_lazy_rel): Likewise.
16346         (elf_machine_lazy_rela): Likewise.
16347         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16348         (elf_machine_lazy_rel): Likewise.
16349         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16350         Likewise.
16351         (elf_machine_lazy_rel): Likewise.
16352         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16353         Likewise.
16354         (elf_machine_lazy_rel): Likewise.
16355         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16356         (elf_machine_lazy_rel): Likewise.
16357         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16358         (elf_machine_lazy_rel): Likewise.
16359         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16360         (elf_machine_lazy_rel): Likewise.
16361         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16362         (elf_machine_lazy_rel): Likewise.
16363         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16364         (elf_machine_lazy_rel): Likewise.
16365         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16366         (elf_machine_lazy_rel): Likewise.
16367
16368 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16369
16370         * nss/nss_files/files-init.c (_nss_files_init): Use static
16371         initialization for all the *_traced_file variables.
16372
16373 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16374
16375         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16376
16377 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16378
16379         [BZ #13226]
16380         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16381
16382 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16383
16384         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16385         Reread the line before reparsing it.
16386
16387 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16388
16389         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16390
16391 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16392             Maxim Kuvyrkov  <maxim@codesourcery.com>
16393             Joseph Myers  <joseph@codesourcery.com>
16394
16395         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16396         if needed for __stack_chk_guard.
16397
16398 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16399
16400         * sysdeps/posix/spawni.c (script_execute): Always define it.
16401         It will be optimized away if unused.
16402         (maybe_script_execute): New function.
16403         (__spawni): Call it.
16404
16405         * Makerules: Don't include tls.make.
16406         (config-tls): Always set to thread.
16407         * tls.make.c: File removed.
16408
16409 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16410
16411         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16412         * config.make.in (CPPFLAGS-config): New substituted variable.
16413
16414 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16415
16416         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16417
16418         [BZ #13192]
16419         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16420         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16421
16422 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16423
16424         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16425         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16426         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16427         (CALL_FAIL): Likewise.
16428         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16429         (CALL_FAIL): Macro removed.
16430         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16431
16432 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16433
16434         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16435         for __FINITE_MATH_ONLY__ == 1.
16436
16437 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16438
16439         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16440         __ieee754_sqrt instead of sqrt.
16441         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16442         __ieee754_sqrtf instead of sqrtf.
16443         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16444         __floorf instead of floorf.
16445         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16446         __floorf, __truncf instead of floorf, truncf.
16447
16448 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16449
16450         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16451
16452         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16453         __extern_always_inline.
16454         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16455         32-bit.
16456
16457 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16458
16459         * elf/rtld.c (dl_main): Also relocate in dependency order when
16460         doing symbol dependency testing.
16461
16462 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16463
16464         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16465         Always define `refsym'.
16466
16467 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16468
16469         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16470         (__FD_ELT): Renamed from __FDELT.
16471         * misc/bits/select2.h (__FD_ELT): Likewise.
16472         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16473         __FD_MASK instead of __FDELT, __FDMASK.
16474         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16475         Likewise.
16476         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16477         Likewise.
16478
16479         * elf/Makefile (gen-ldd): Fix pattern.
16480
16481         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16482         (init_tls): Likewise.
16483
16484 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16485
16486         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16487
16488 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16489
16490         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16491         `struct cmsghdr *' instead of `void *'.
16492         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16493         Likewise.
16494
16495 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16496
16497         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16498         if non-absolute.
16499         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16500         ldd_rewrite_script.
16501
16502 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16503
16504         * configure.in: Remove --with-tls option.
16505         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16506         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16507         out in case it is missing.
16508         * sysdeps/ia64/elf/configure.in: Likewise.
16509         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16510         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16511         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16512         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16513         * sysdeps/sh/elf/configure.in: Likewise.
16514         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16515         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16516         * sysdeps/x86_64/elf/configure.in: Likewise.
16517         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16518         * sysdeps/mach/hurd/tls.h: Likewise.
16519
16520         [BZ #13067]
16521         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16522
16523         [BZ #13090]
16524         * configure.in: Fix use of AC_INIT.
16525
16526         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16527
16528 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16529
16530         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16531         __set_errno.
16532         * malloc/hooks.c: Likewise.
16533
16534         [BZ #11929]
16535         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16536         variables statically.
16537         (narenas): Initialize.
16538         (list_lock): Initialize.
16539         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16540         initializtion of main_arena and list_lock.  Small cleanups.
16541         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16542         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16543         Add initializers to main_arena and mp_.
16544         (malloc_state): Remove pagesize member.  Change all users to use
16545         GLRO(dl_pagesize).
16546
16547         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16548         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16549         is always initialized.
16550
16551         * malloc/malloc.c: Removed unused configurations and dead code.
16552         * malloc/arena.c: Likewise.
16553         * malloc/hooks.c: Likewise.
16554         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16555
16556         * include/tls.h: Removed.  USE___THREAD must always be defined.
16557         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16558         * elf/dl-libc.c: Likewise.
16559         * elf/dl-tsd.c: Likewise.
16560         * include/errno.h: Likewise.
16561         * include/netdb.h: Likewise.
16562         * include/resolv.h: Likewise.
16563         * inet/herrno-loc.c: Likewise.
16564         * inet/herrno.c: Likewise.
16565         * malloc/arena.c: Likewise.
16566         * malloc/hooks.c: Likewise.
16567         * malloc/malloc.c: Likewise.
16568         * resolv/res-state.c: Likewise.
16569         * resolv/res_libc.c: Likewise.
16570         * sysdeps/i386/dl-machine.h: Likewise.
16571         * sysdeps/ia64/dl-machine.h: Likewise.
16572         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16573         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16574         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16575         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16576         * sysdeps/sh/dl-machine.h: Likewise.
16577         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16578         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16579         * sysdeps/unix/i386/sysdep.S: Likewise.
16580         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16581         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16582         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16583         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16584         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16585         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16586         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16587         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16588         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16589         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16590         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16591         * sysdeps/x86_64/dl-machine.h: Likewise.
16592         * tls.make.c: Likewise.
16593
16594         * configure.in: Remove --with-__thread option.  Make tests for
16595         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16596         tls_model attribute fail if no support is available.  Remove
16597         USE_IN_LIBIO.
16598         * Makeconfig: Adjust for dropped configure option.  All features are
16599         now mandatory.
16600         * Makerules: Likewise.
16601         * Versions.def: Likewise.
16602         * argp/argp-fmtstream.c: Likewise.
16603         * argp/argp-fmtstream.h: Likewise.
16604         * argp/argp-help.c: Likewise.
16605         * assert/assert.c: Likewise.
16606         * config.h.in: Likewise.
16607         * config.make.in: Likewise.
16608         * configure: Likewise.
16609         * configure.in: Likewise.
16610         * csu/Versions: Likewise.
16611         * csu/init.c: Likewise.
16612         * elf/tst-audit2.c: Likewise.
16613         * elf/tst-tls10.c: Likewise.
16614         * elf/tst-tls10.h: Likewise.
16615         * elf/tst-tls11.c: Likewise.
16616         * elf/tst-tls12.c: Likewise.
16617         * elf/tst-tls14.c: Likewise.
16618         * elf/tst-tlsmod11.c: Likewise.
16619         * elf/tst-tlsmod12.c: Likewise.
16620         * elf/tst-tlsmod13.c: Likewise.
16621         * elf/tst-tlsmod13a.c: Likewise.
16622         * elf/tst-tlsmod14a.c: Likewise.
16623         * elf/tst-tlsmod15b.c: Likewise.
16624         * elf/tst-tlsmod16a.c: Likewise.
16625         * elf/tst-tlsmod16b.c: Likewise.
16626         * elf/tst-tlsmod7.c: Likewise.
16627         * elf/tst-tlsmod8.c: Likewise.
16628         * elf/tst-tlsmod9.c: Likewise.
16629         * gmon/gmon.c: Likewise.
16630         * grp/fgetgrent_r.c: Likewise.
16631         * grp/putgrent.c: Likewise.
16632         * hurd/fopenport.c: Likewise.
16633         * include/libc-symbols.h: Likewise.
16634         * include/tls.h: Likewise.
16635         * intl/gettextP.h: Likewise.
16636         * intl/loadinfo.h: Likewise.
16637         * locale/global-locale.c: Likewise.
16638         * locale/localeinfo.h: Likewise.
16639         * mach/devstream.c: Likewise.
16640         * malloc/arena.c: Likewise.
16641         * malloc/set-freeres.c: Likewise.
16642         * misc/err.c: Likewise.
16643         * misc/getttyent.c: Likewise.
16644         * misc/mntent_r.c: Likewise.
16645         * posix/getopt.c: Likewise.
16646         * posix/wordexp.c: Likewise.
16647         * pwd/fgetpwent_r.c: Likewise.
16648         * resolv/Versions: Likewise.
16649         * resolv/res_hconf.c: Likewise.
16650         * shadow/fgetspent_r.c: Likewise.
16651         * shadow/putspent.c: Likewise.
16652         * stdio-common/printf_fphex.c: Likewise.
16653         * stdio-common/tmpfile.c: Likewise.
16654         * stdlib/abort.c: Likewise.
16655         * stdlib/fmtmsg.c: Likewise.
16656         * sunrpc/auth_unix.c: Likewise.
16657         * sunrpc/clnt_perr.c: Likewise.
16658         * sunrpc/clnt_tcp.c: Likewise.
16659         * sunrpc/clnt_udp.c: Likewise.
16660         * sunrpc/clnt_unix.c: Likewise.
16661         * sunrpc/openchild.c: Likewise.
16662         * sunrpc/svc_simple.c: Likewise.
16663         * sunrpc/svc_tcp.c: Likewise.
16664         * sunrpc/svc_udp.c: Likewise.
16665         * sunrpc/svc_unix.c: Likewise.
16666         * sunrpc/xdr.c: Likewise.
16667         * sunrpc/xdr_array.c: Likewise.
16668         * sunrpc/xdr_rec.c: Likewise.
16669         * sunrpc/xdr_ref.c: Likewise.
16670         * sunrpc/xdr_stdio.c: Likewise.
16671
16672 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16673
16674         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16675
16676 2011-07-03  Andreas Jaeger  <aj@suse.de>
16677
16678         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16679         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16680         regenerate with gen-libm-tests.pl.
16681
16682 2010-05-12  Petr Baudis  <pasky@suse.cz>
16683
16684         [BZ #11589]
16685         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16686         around j0() zero points by switching to j1().
16687         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16688         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16689         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16690         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16691
16692 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16693
16694         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16695         instead of 0.
16696         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16697         instead of 0.                              .
16698         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16699         Patch in part by Pavel Roskin <proski@gnu.org>.
16700
16701         [BZ #13138]
16702         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16703         realloc.
16704         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16705         Free memory block if necessary.
16706
16707         [BZ #12847]
16708         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16709         be NULL.  Don't lock in this case.
16710
16711 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16712
16713         * elf/elf.h (ELFOSABI_GNU): New macro.
16714         (ELFOSABI_LINUX): Define to that.
16715
16716 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16717
16718         * string/strncat.c (strncat): Undef the symbol in case it has been
16719         defined in bits/string.h.
16720
16721 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16722
16723         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16724
16725         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16726         link map.
16727
16728 2011-08-17  Andreas Jaeger  <aj@suse.de>
16729
16730         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16731
16732 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16733             Ian Lance Taylor  <iant@google.com>
16734
16735         * math/libm-test.inc (lround_test): New testcase.
16736         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16737
16738 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16739
16740         * Makefile: Remove support for automatic cvs check-ins.
16741         * Makerules: Likewise.
16742         * config.make.in: Likewise.
16743         * configure.in: Likewise.
16744         * intl/Makefile: Likewise.
16745         * locale/Makefile: Likewise.
16746         * po/Makefile: Likewise.
16747         * posix/Makefile: Likewise.
16748         * sysdeps/gnu/Makefile: Likewise.
16749         * sysdeps/mach/hurd/Makefile: Likewise.
16750         * sysdeps/sparc/sparc32/Makefile: Likewise.
16751
16752         [BZ #13118]
16753         * posix/Makefile (bug-regex32-ENV): Define.
16754         Patch by John Stanley <jpsinthemix@verizon.net>.
16755
16756         * misc/Makefile (headers): Add bits/select2.h.
16757         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16758         * misc/bits/select2.h: New file.
16759         * include/bits/select2.h: New file.
16760         * debug/Makefile (routines): Add fdelt_chk.
16761         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16762         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16763         FD_ISSET.
16764         * debug/fdelt_chk.c: New file.
16765
16766         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16767         * wcsmbs/test-wmemcmp.c: Likewise.
16768         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16769         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16770
16771 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16772
16773         * string/Makefile (strop-tests): Add memcmp.
16774         * string/test-wmemcmp.c: New file.
16775         * string/test-memcmp.c: Add wmemcmp support.
16776
16777 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16778
16779         [BZ #13153]
16780         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16781         2011-07-19 change.
16782
16783         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16784         garbage value in a __mach_port_mod_refs call in the cases of the
16785         task-self and thread-self ports.
16786
16787 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16788
16789         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16790
16791 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16792
16793         * elf/dl-load.c (lose): Check for non-null L.
16794
16795 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16796
16797         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16798
16799         * elf/dl-libc.c (dlerror_run): Pass back error code from
16800         dl_catch_error.
16801
16802         [BZ #13123]
16803         * elf/dl-load.c (lose): Free l_origin if it is valid.
16804
16805         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16806         names.
16807         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16808         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16809         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16810         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16811         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16812         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16813
16814 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16815
16816         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16817         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16818         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16819         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16820         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16821         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16822         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16823         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16824         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16825         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16826
16827 2011-08-15  Alan Modra  <amodra@gmail.com>
16828
16829         [BZ #13092]
16830         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16831         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16832         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16833         ppc_mcount to static-only-routines.
16834         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16835         __mcount_internal.
16836         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16837         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16838
16839 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16840
16841         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16842         for finite and infinity parameters.
16843
16844 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16845
16846         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16847         and add nop instructions for throughput optimization.
16848         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16849
16850 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16851
16852         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16853         aligned copy for power7 with vector-scalar instructions.
16854         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16855
16856 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16857
16858         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16859         AVX check.
16860
16861 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16862
16863         [BZ #13144]
16864         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16865         last change.
16866
16867 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16868
16869         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16870         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16871         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16872         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16873         clock_gettime.
16874
16875 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16876
16877         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16878         Forgot to demangle the pointer.
16879
16880         * sysdeps/i386/sysdep.h: Define atom_text_section.
16881         * sysdeps/x86_64/sysdep.h: Likewise.
16882         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16883         section with atom_text_section.
16884         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16885         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16886         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16887         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16888         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16889
16890         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16891         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16892         already be defined.  Change to take two parameters and don't assign
16893         result to variable.  Adjust all users.
16894         Define INTERNAL_GETTIME if not already defined.
16895         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16896         call.
16897         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16898         HAVE_CLOCK_GETTIME_VSYSCALL.
16899         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16900
16901         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16902         gettimeofday vsyscall, just use time.
16903
16904 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16905
16906         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16907         <errno.h>.
16908
16909 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16910
16911         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16912         syscall on x86-64.
16913         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16914         syscall.
16915         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16916         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16917         syscall if possible.
16918
16919 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16920
16921         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16922         e_ident.  Don't pass to find_mapsXX.
16923         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16924
16925 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16926
16927         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16928         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16929         * sysdeps/x86_64/multiarch/strchr.S: Update.
16930         Check bit_slow_BSF bit.
16931         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16932         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16933         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16934
16935 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16936
16937         [BZ #13134]
16938         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16939         before glibc 2.15.
16940         (tryshell): Define.
16941         (__spawni): Change last parameter to be flag.  Test
16942         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16943         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16944         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16945         * posix/spawni.c: Likewise.
16946         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16947         * posix/spawnp.c: Likewise.  Change normal version to use
16948         SPAWN_XFLAGS_USE_PATH.
16949         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16950         SPAWN_XFLAGS_TRY_SHELL.
16951
16952         [BZ #13150]
16953         * posix/glob.h: Remove gcc 1.x support.
16954
16955         [BZ #13068]
16956         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16957
16958 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16959
16960         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16961         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16962         strrchr-sse2-bsf
16963         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16964         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16965         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16966         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16967         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16968         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16969
16970 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16971
16972         * sysdeps/x86_64/wcscmp.S: New file.
16973
16974         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16975         wcscmp-c wcscmp-sse2
16976         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16977         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16978         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16979         * wcsmbs/wcscmp.c: Allow renaming.
16980
16981 2011-09-05  David S. Miller  <davem@davemloft.net>
16982
16983         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16984         stack slot, rather than the struct return pointer slot.
16985         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16986         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16988         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16989
16990 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16991
16992         * po/ja.po: Update from translation team.
16993
16994         [BZ #13144]
16995         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16996         kernel in 64-bit binaries.
16997
16998 2011-09-01  David S. Miller  <davem@davemloft.net>
16999
17000         * elf/elf.h (HWCAP_SPARC_*): Move to..
17001         * sysdeps/sparc/sysdep.h: this new file and add new values.
17002         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17003         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17004         _DL_HWCAP_COUNT to 24.
17005         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17006         entries.
17007         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17008         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17009         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17010         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17011         instead of magic constants.
17012         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17013
17014 2011-08-31  David S. Miller  <davem@davemloft.net>
17015
17016         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17017         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17018         Reimplement to do errno handling inline.
17019         (SYSCALL_ERROR_HANDLER): New macro.
17020         (__SYSCALL_STRING): Do not do errno handling in asm.
17021         (__CLONE_SYSCALL_STRING): Delete.
17022         (__INTERNAL_SYSCALL_STRING): Delete.
17023         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17024         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17025         (PSEUDO): Reimplement to do errno handling inline.
17026         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17027         (SYSCALL_ERROR_HANDLER): New macro.
17028         (__SYSCALL_STRING): Do not do errno handling in asm.
17029         (__CLONE_SYSCALL_STRING): Delete.
17030         (__INTERNAL_SYSCALL_STRING): Delete.
17031         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17032         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17033         i386.
17034         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17035         (inline_syscall*): Add 'err' argument.
17036         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17037         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17038         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17039         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17040
17041         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17042         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17043
17044 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17045
17046         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17047
17048 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17049
17050         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17051         directive.
17052
17053 2011-08-24  David S. Miller  <davem@davemloft.net>
17054
17055         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17056
17057 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17058
17059         * elf/Makefile: Add rules to build and run unload8 test.
17060         * elf/unload8.c: New file.
17061         * elf/unload8mod1.c: New file.
17062         * elf/unload8mod1x.c: New file.
17063         * elf/unload8mod2.c: New file.
17064         * elf/unload8mod3.c: New file.
17065
17066         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17067         it wasn't used.
17068
17069 2011-08-23  David S. Miller  <davem@davemloft.net>
17070
17071         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17072         subtract stack bias.
17073         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17074         %sp not %fp in calculations.
17075         (_JMPBUF_UNWINDS_ADJ): Likewise.
17076
17077         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17078         (aio_suspend): Call it to force an exception region around the
17079         AIO_MISC_WAIT() invocation.
17080
17081 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17082
17083         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17084         backslash.
17085
17086 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17087
17088         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17089         protection macro.
17090         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17091         and <dl-machine.h>.
17092         (Elf64_FuncDesc): Remove.
17093
17094 2011-08-22  David S. Miller  <davem@davemloft.net>
17095
17096         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17097         sigaltstack check, add missing cfi directives.
17098         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17099         missing cfi directives, and sigaltstack handling.
17100
17101 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17102
17103         [BZ #11724]
17104         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17105         object is seen twice.
17106         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17107
17108         * elf/Makefile (distribute): Add tst-initorder2.c.
17109         (tests): Add tst-initorder2.
17110         (modules-names): Add tst-initorder2a tst-initorder2b
17111         tst-initorder2c tst-initorder2d.  Add rules to build them.
17112         ($(objpfx)tst-initorder2.out): New rule.
17113         * elf/tst-initorder2.c: New file.
17114         * elf/tst-initorder2.exp: New file.
17115
17116 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17117
17118         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17119
17120         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17121         dependencies back to end of function.
17122
17123         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17124         $(elfobjdir)/ld.so.
17125
17126 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17127
17128         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17129         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17130         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17131         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17132         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17133         of __vdso_gettimeofday.
17134         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17135         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17136         attribute_hidden.
17137         (_libc_vdso_platform_setup): Remove initialization of
17138         __vdso_gettimeofday and __vdso_time.
17139
17140 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17141
17142         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17143         and fgetc_unlocked.
17144         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17145         getc_unlocked.
17146
17147         * elf/dl-open.c (add_to_global): Report additions to the global scope
17148         for LD_DEBUG=scopes.
17149         (dl_open_worker): Also print scope of newly loaded dependencies.
17150         (_dl_show_scope): Indicate if there is no scope.
17151
17152         [BZ #13114]
17153         * stdio-common/Makefile (tests): Add bug24.
17154         * stdio-common/bug24.c: New file.
17155
17156 2011-08-19  Andreas Jaeger  <aj@suse.de>
17157
17158         [BZ #13114]
17159         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17160         non-existant file when using close-on-exec mode.
17161
17162 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17163
17164         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17165         the very first instruction.
17166
17167         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17168         the CFI state in the end.
17169         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17170         inclusion of dl-trampoline.h.
17171         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17172
17173 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17174
17175         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17176         expectations for long double.
17177
17178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17179         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17180
17181 2011-08-14  David S. Miller  <davem@davemloft.net>
17182
17183         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17184         artificual limit depends upon the system page size.
17185
17186 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17187
17188         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17189         * resolv/Makefile: Define CFLAGS-libresolv.
17190
17191 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17192
17193         * nss/makedb.c (compute_tables): Make variables used in nested
17194         function static.
17195
17196 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17197
17198         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17199         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17200         if buffer was too small.
17201
17202         * elf/pldd.c (main): Attach to all threads in the process.
17203         Rewrite /proc handling to use *at functions.
17204
17205 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17206
17207         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17208         specifies first scope to show.
17209         (dl_open_worker): Update callers.  Move printing scope of new
17210         object to before the relocation.
17211         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17212         * sysdeps/generic/ldsodefs.h: Update declaration.
17213
17214         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17215         string for the scope number.
17216
17217 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17218
17219         * nscd/servicescache.c (cache_addserv): Make sure written is always
17220         initialized.
17221
17222 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17223
17224         * sysdeps/i386/i486/bits/atomic.h
17225         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17226         statement expression, so as to suppress "set but not used" warning.
17227         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17228
17229         * string/strncat.c (STRNCAT): Use prototype definition.
17230
17231         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17232         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17233         -Iprograms here.
17234         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17235         (localedef-modules): Add localedef.
17236         (locale-modules): Add locale.
17237
17238         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17239         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17240         to avoid a warning.
17241
17242 2011-08-14  David S. Miller  <davem@davemloft.net>
17243
17244         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17245         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17246
17247 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17248
17249         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17250         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17251         * elf/rtld.c (dl_main): Set l_name of vDSO.
17252         Call _dl_show_scope when DL_DEBUG_SCOPES.
17253         (process_dl_debug): Recognize scopes flag and also set it for all.
17254         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17255         Declare _dl_show_scope.
17256
17257         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17258         (do_dlopen): Pass caller_dlopen to dl_open.
17259         (__libc_dlopen_mode): Initialize caller_dlopen.
17260
17261         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17262         of libc.  Make tolower call locale-independent.  Optimize a bit by
17263         using isdigit instead of isalnum.
17264         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17265
17266 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17267
17268         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17269         was a dependency or dynamically loaded.
17270
17271 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17272
17273         * intl/l10nflist.c: Allow architecture-specific pop function.
17274         * sysdeps/x86_64/l10nflist.c: New file.
17275
17276         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17277         classification.
17278
17279 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17280
17281         * include/dirent.h: Add libc_hidden_proto for scandirat and
17282         scandirat64.  Don't declare __scandirat64.
17283         * dirent/scandirat.c: Add libc_hidden_def.
17284         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17285         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17286
17287 2011-08-10  David S. Miller  <davem@davemloft.net>
17288
17289         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17290         enum.
17291         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17292         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17293         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17294
17295 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17296
17297         * Versions.def [libc]: Add GLIBC_2.15.
17298         * dirent/Makefile (routines): Add scandirat and scandirat64.
17299         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17300         GLIBC_2.15.
17301         * dirent/dirent.h: Declare scandirat and scandirat64.
17302         * dirent/scandirat.c: New file.
17303         * dirent/scandirat64.c: New file.
17304         * sysdeps/wordsize-64/scandirat.c: New file.
17305         * sysdeps/wordsize-64/scandirat64.c: New file.
17306         * dirent/opendir.c: Define opendirat.
17307         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17308         using scandirat.
17309         * dirent/scandir64.c: Adjust for scandir.c change.
17310         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17311         __scandirat64, and __scandir_cancel_handler.
17312         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17313         additional parameter and use openat instead of open (outside of ld.so).
17314         Add new __opendir as wrapper around __opendirat.
17315         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17316         here without requiring old scandirat implementation.
17317
17318 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17319
17320         * dirent/scandir.c (cancel_handler): Renamed to
17321         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17322         defined.  Adjust users.
17323         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17324         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17325
17326 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17327
17328         * string/test-string.h (IMPL): Use __STRING to expand name and then
17329         stringify it.
17330
17331         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17332         of cleanups.
17333
17334 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17335
17336         * string/Makefile: Update.
17337         (strop-tests): Append strncat.
17338         * string/test-wcscmp.c: New file.
17339         New comprehensive test for wcscmp.
17340         * string/test-strcmp.c: Update.
17341         (WIDE): New define.
17342
17343 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17344
17345         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17346         line.
17347
17348 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17349
17350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17351         encoding to ACE if AI_IDN.
17352
17353 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17354
17355         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17356         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17357
17358 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17359
17360         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17361         Fix overflow bug in strncat.
17362         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17363
17364         * string/test-strncat.c: Update.
17365         Add new tests for checking overflow bugs.
17366
17367 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17368
17369         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17370         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17371         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17372         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17373         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17374         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17375         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17376         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17377         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17378
17379         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17380         (USE_AS_STRCAT): Define.
17381         Add strcat and strncat support.
17382         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17383
17384 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17385
17386         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17387         __n bigger than INT_MAX+1.
17388         (__strncmp_g): Likewise.
17389
17390 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17391
17392         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17393         * libio/stido.h: Likewise.
17394
17395         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17396         (AF_NFC): Define.
17397         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17398         (AF_NFC): Define.
17399
17400         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17401         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17402         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17403         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17404         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17405
17406         [BZ #13021]
17407         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17408         installed.
17409
17410         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17411         typo.
17412         (_dl_x86_64_save_sse): Likewise.
17413
17414 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17415
17416         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17417         OSXSAVE.
17418         (_dl_x86_64_save_sse): Likewise.
17419
17420         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17421
17422         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17423
17424 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17425
17426         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17427         change.
17428         (_dl_x86_64_save_sse): Use correct AVX check.
17429
17430 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17431
17432         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17433         bug in strncpy/strncat.
17434         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17435
17436 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17437
17438         * string/tester.c (test_strcat): Add tests for different alignments
17439         of source and destination.
17440         (test_strncat): Likewise.
17441
17442 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17443
17444         [BZ #12852]
17445         * posix/glob.c (glob): Check passed in values before using them in
17446         expressions to avoid some overflows.
17447         (glob_in_dir): Likewise.
17448
17449         [BZ #13007]
17450         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17451         check for AVX enablement so that we don't crash with old kernels and
17452         new hardware.
17453         * elf/tst-audit4.c: Add same checks here.
17454         * elf/tst-audit6.c: Likewise.
17455
17456         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17457
17458 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17459
17460         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17461
17462 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17463
17464         * po/cs.po: Update from translation team.
17465         * po/bg.po: Likewise.
17466
17467 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17468
17469         * misc/sys/cdefs.h: Add support for const attribute.
17470         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17471         to gnu_dev_{major,minor,makedev} functions.
17472
17473 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17474
17475         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17476
17477 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17478
17479         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17480         strlen results.
17481
17482 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17483
17484         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17485         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17486         register in order to avoid conflicts with the soft frame pointer
17487         being held in r11 when necessary.
17488         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17489         (INTERNAL_VSYSCALL_NCS): Likewise.
17490
17491 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17492
17493         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17494         * elf/dl-fini.c (_dl_fini): Adjust caller.
17495         * elf/dl-close.c (_dl_close_worker): Likewise.
17496         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17497
17498 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17499
17500         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17501         "aux_cache->nlibs < 0".
17502
17503         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17504         in the reload-count case.
17505
17506 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17507
17508         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17509         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17510         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17511         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17512         * sysdeps/x86_64/multiarch/strcat.S: New file.
17513         * sysdeps/x86_64/multiarch/strncat.S: New file.
17514         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17515         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17516         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17517         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17518         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17519         (USE_AS_STRCAT): Define.
17520         Add strcat and strncat support.
17521         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17522         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17523         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17524         * string/strncat.c: Update.
17525         (USE_AS_STRNCAT): Define.
17526         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17527         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17528         and i7.
17529         * sysdeps/x86_64/multiarch/init-arch.h
17530         (bit_Prefer_PMINUB_for_stringop): New.
17531         (index_Prefer_PMINUB_for_stringop): Likewise.
17532         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17533         bit_Prefer_PMINUB_for_stringop.
17534
17535 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17536
17537         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17538         buffer64.
17539         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17540         of casting of buffer.
17541         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17542         buffer32 and buffer64.
17543         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17544         writes instead of casting of buffer.
17545         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17546         buffer32.
17547         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17548         casting of buffer.
17549
17550 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17551
17552         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17553
17554 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17555
17556         * nscd/nscd.c (termination_handler): Don't do anything for a database
17557         if it has not yet been initialized.
17558
17559 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17560
17561         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17562
17563 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17564
17565         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17566
17567 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17568
17569         * po/nl.po: Update from translation team.
17570         * po/sv.po: Likewise.
17571
17572 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17573
17574         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17575         now disallowed by GCC.
17576
17577         * configure.in (use-default-link): Default to yes if a test -shared
17578         link meets our qualifications.
17579         * configure: Regenerated.
17580
17581         * config.make.in (output-format): New variable.
17582         * configure.in: Check for ld --print-output-format support.
17583         * configure: Regenerated.
17584         * Makerules ($(common-objpfx)format.lds)
17585         [$(output-format) != unknown]: Just use $(output-format),
17586         instead of the linker-script munging.
17587
17588 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17589
17590         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17591         of $(common-objpfx)shlib.lds.
17592         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17593
17594         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17595         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17596
17597         * configure.in (-z relro check): Adjust test code to add a large
17598         writable data section after it.
17599         * configure: Regenerated.
17600
17601 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17602
17603         * configure.in (-z relro check): Fix test code to make the variable
17604         truly const.
17605         * configure: Regenerated.
17606
17607 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17608
17609         * nscd/nscd.h (struct traced_file): Define.
17610         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17611         elements.  Add traced_files.
17612         (inotify_fd): Declare.
17613         (register_traced_file): Declare.
17614         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17615         (inotify_fd): Export.
17616         (resolv_conf_descr): Remove.
17617         (nscd_init): Move inotify descriptor creation to main.
17618         Don't register files for notification here.
17619         (register_traced_file): New function.
17620         (invalidate_cache): Don't use reset_res to determine whether to call
17621         res_init, go through the list of registered files.
17622         (main_loop_poll): The inotify descriptors are now stored in the
17623         structures for the traced files.
17624         (main_loop_epoll): Likewise
17625         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17626         to __nss_disable_nscd.
17627         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17628         for a database anymore.  Check the records for all the registered
17629         files instead.
17630         * nss/Makefile (libnss_files-routines): Add files-init.
17631         (libnss_db-routines): Add db-init.
17632         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17633         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17634         * nss/nss_db/db-init.c: New file.
17635         * nss/nss_files/files-init.c: New file.
17636         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17637         __nss_lookup_function.
17638         (__nss_lookup_function): Call nss_load_library.
17639         (nss_load_all_libraries): New function.
17640         (__nss_disable_nscd): Take parameter with callback function for files
17641         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17642         used for the cached services.
17643         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17644         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17645         options for features to all the files in nscd.
17646
17647         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17648
17649 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17650
17651         * csu/elf-init.c (__libc_csu_init): Comment typo.
17652
17653 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17654
17655         * po/pl.po: Update from translation team.
17656         * po/ja.po: Likewise.
17657         * po/ru.po: Likewise.
17658         * po/ko.po: Likewise.
17659         * po/fr.po: Likewise.
17660
17661 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17662
17663         * configure.in (.ctors/.dtors header and trailer check):
17664         Use an empirical test on a built program.
17665         * configure: Regenerated.
17666
17667         * configure.in (-z relro check): Use an empirical test on a built DSO.
17668         Detect, but do not require, on ia64.
17669         * configure: Regenerated.
17670
17671         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17672         Update tests that use readelf to use $READELF instead.
17673         * configure: Regenerated.
17674
17675 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17676
17677         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17678         if the result is not used.
17679
17680 2011-07-05  Andreas Jaeger  <aj@suse.de>
17681
17682         [BZ#9696]
17683         * stdlib/tst-strtod.c: Add testcase.
17684
17685 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17686
17687         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17688         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17689         The latter has a higher limit.  Take additional parameter to pass to
17690         the new function.
17691         (__pathconf): Pass file to __statfs_link_max.
17692         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17693         __statfs_link_max.
17694         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17695         __statfs_link_max.
17696
17697         [BZ #12868]
17698         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17699         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17700         Handle Lustre.
17701         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17702         (__statfs_filesize_max): Likewise.
17703         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17704
17705 2011-07-05  Andreas Jaeger  <aj@suse.de>
17706
17707         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17708
17709 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17710
17711         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17712         `status' variable.
17713         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17714         Likewise.
17715
17716 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17717
17718         * Makefile (strop-tests): Add strncat.
17719         * string/test-strncat.c: New file.
17720
17721 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17722
17723         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17724
17725 2011-06-21  Andreas Jaeger  <aj@suse.de>
17726
17727         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17728         Copy rule from iconvdata/Makefile.
17729
17730 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17731
17732         [BZ #12922]
17733         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17734         but no long options are defined, just return 'W'.
17735
17736 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17737
17738         [BZ #9696]
17739         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17740
17741 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17742
17743         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17744         netgroups to read.
17745         (innetgr): Likewise.
17746
17747 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17748
17749         * config.make.in (install_root): Default to $(DESTDIR).
17750
17751 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17752
17753         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17754
17755 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17756
17757         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17758
17759         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17760         containing directory rather than embedding absolute directory names.
17761
17762         * scripts/check-local-headers.sh: Rewritten using awk.
17763         Match by word, not by line.  Print error messages for matches.
17764         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17765
17766         * Makerules [shlib-lds-flags empty]:
17767         ($(common-objpfx)libc_pic.opts): New target.
17768         ($(common-objpfx)libc_pic.os.clean): New target.
17769         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17770
17771         * config.make.in (OBJCOPY): New variable.
17772         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17773         * configure: Regenerated.
17774
17775         * config.make.in (use-default-link): New variable.
17776         * configure.in (use_default_link): Grok --with-default-link to set it.
17777         * configure: Regenerated.
17778         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17779         (shlib-lds, shlib-lds-flags): Define to empty.
17780
17781         * Makerules (shlib-lds): New variable.
17782         (shlib-lds-flags): New variable.
17783         (build-shlib, build-moduile, build-module-asneeded): Use it.
17784         ($(common-objpfx)libc.so): Use $(shlib-lds).
17785         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17786         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17787
17788         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17789         DT_FLAGS/DT_FLAGS_1 with zero flags.
17790
17791         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17792         linker script munging.
17793
17794 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17795
17796         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17797         as 128-bit value.
17798         * crypt/sha512.c (sha512_process_block): Perform total addition using
17799         128-bit if possible.
17800         (__sha512_finish_ctx): Likewise.
17801         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17802         as 64-bit value.
17803         * crypt/sha256.c (SWAP64): Define.
17804         (sha256_process_block): Perform total addition using 64-bit if
17805         possible.
17806         (__sha256_finish_ctx): Likewise.
17807
17808 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17809
17810         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17811         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17812         * nscd/hstcache.c (cache_addhst): Likewise.
17813         * nscd/grpcache.c (cache_addgr): Likewise.
17814         * nscd/aicache.c (addhstaiX): Likewise
17815         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17816
17817 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17818
17819         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17820         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17821         * nscd/hstcache.c (cache_addhst): Likewise.
17822         * nscd/grpcache.c (cache_addgr): Likewise.
17823         * nscd/aicache.c (addhstaiX): Likewise
17824
17825 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17826
17827         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17828         domain only when needed.
17829
17830 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17831
17832         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17833         is always restored.
17834
17835 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17836
17837         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17838         are re-adding the entry.
17839         * nscd/servicescache.c (cache_addserv): Likewise.
17840
17841 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17842
17843         * sysdeps/generic/dl-irel.h: fix protection against multiple
17844         inclusions.
17845         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17846
17847 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17848
17849         [BZ #12935]
17850         * malloc/memusage.sh: Fix quoting in message.
17851         * debug/xtrace.sh: Likewise.
17852
17853         * configure.in: Remove support for --experimental-malloc option, make
17854         it the default.
17855         * config.make.in: Likewise.
17856         * malloc/Makefile: Likewise.
17857
17858 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17859
17860         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17861         two-byte characters.
17862
17863 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17864
17865         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17866         AC_CACHE_CHECK invocation.
17867         * configure: Regenerated.
17868
17869         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17870
17871 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17872
17873         [BZ #12350]
17874         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17875         bit from old_res_options.
17876
17877         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17878
17879         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17880         value type for setfct.
17881
17882 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17885         __gettimeofday instead of gettimeofday.
17886
17887 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17888
17889         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17890
17891 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17892
17893         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17894
17895         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17896         info.
17897
17898 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17899
17900         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17901         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17902         strcpy-sse2-unaligned strncpy-sse2-unaligned
17903         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17904         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17905         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17906         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17907         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17908         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17909         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17910         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17911         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17912         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17913         (STRCPY): Support SSE2 and SSSE3 versions.
17914
17915 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17916
17917         [BZ #12874]
17918         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17919         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17920         kernels which artificially limit size of requests.
17921
17922 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17923
17924         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17925         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17926         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17927         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17928         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17929         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17930         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17931         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17932         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17933         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17934         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17935         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17936         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17937         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17938         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17939         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17940         Enable unaligned load optimization for Intel Core i3, i5 and i7
17941         processors.
17942         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17943         Define.
17944         (index_Fast_Unaligned_Load): Define.
17945         (HAS_FAST_UNALIGNED_LOAD): Define.
17946
17947 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17948
17949         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17950
17951 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17952
17953         [BZ #12907]
17954         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17955         until it is clear that the information is realy needed.
17956         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17957
17958 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17959
17960         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17961
17962 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17963
17964         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17965         /sys/devices/system/cpu/online if it is usable.
17966
17967         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17968         reading the information from the /proc filesystem to once a second.
17969
17970 2011-06-21  Andreas Jaeger  <aj@suse.de>
17971
17972         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17973         NULL after inclusion of kernel headers.
17974
17975 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17976
17977         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17978         calls to internal_setent.
17979
17980         [BZ #12885]
17981         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17982         addresses using gethostbyname4_r ignore IPv4 addresses.
17983
17984         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17985         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17986
17987         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17988
17989 2011-06-20  David S. Miller  <davem@davemloft.net>
17990
17991         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17992         inclusions.
17993         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17994
17995         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17996         (elf_irel): Use it.
17997         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17998         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17999         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18000         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18001         * sysdeps/x86_64/dl-irel.h: Likewise.
18002
18003         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18004         * elf/dl-sym.c: Likewise.
18005
18006 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18007
18008         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18009         need to dereference resplen2.
18010
18011 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18012
18013         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18014
18015 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18016
18017         * Makeconfig: Define vardbdir and inst_vardbdir.
18018         * nss/Makefile: Add rules to install db-Makefile.
18019
18020         * nss/nss_db/db-XXX.c: Cleanup.
18021
18022         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18023         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18024         GLIBC_PRIVATE.
18025         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18026         * nss/makedb.c: Implement -g option to specify that value strings
18027         are generated and should not be added to table iterated over for
18028         get*ent calls.
18029         * nss/nss_db/db-initgroups.c: New file.
18030
18031         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18032         interface.
18033
18034         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18035         (internal_getgrouplist): Adjust to name change.
18036         Update use_initgroups_entry if this is not the first call.
18037         * nss/databases.def: Add initgroups entry.
18038
18039         * nss/makedb.c (compute_tables): Check result of multiple hash table
18040         sizes to minimize maximum chain length.
18041
18042 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18043
18044         * Versions.def: Add entry for libnss_db.
18045         * shlib-versions: Likewise.
18046         * nss/Makefile: Add rules to build libnss_db.
18047         * nss/Versions: Add libnss_db information.  Organize libnss_files
18048         entries better.
18049         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18050         makedb progra.  Some minor improvements to generate smaller files.
18051         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18052         here from...
18053         * nss/makedb.c: ...here.
18054         Improve database format to be smaller and require less memory at
18055         runtime.
18056         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18057         db anymore.
18058         * nss/nss_db/db-netgrp.c: Likewise.
18059         * nss/nss_db/db-open.c: Likewise.
18060         * nss/nss_files/flies-XXX.x: Adjust comments.
18061         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18062         * nss/nss_files/files-grp.c: Likewise.
18063         * nss/nss_files/files-hosts.c: Likewise.
18064         * nss/nss_files/files-network.c: Likewise.
18065         * nss/nss_files/files-proto.c: Likewise.
18066         * nss/nss_files/files-pwd.c: Likewise.
18067         * nss/nss_files/files-rpc.c: Likewise.
18068         * nss/nss_files/files-service.c: Likewise.
18069         * nss/nss_files/files-sgrp.c: Likewise.
18070         * nss/nss_files/files-spwd.c: Likewise.
18071         * nss/nss_db/db-alias.c: Removed.
18072         * nss/nss_db/dummy-db.h: Removed.
18073
18074 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18075
18076         * nss/makedb.c: Rewritten to not use database library.
18077         * nss/Makefile: Update to build new makedb program.
18078
18079 2011-06-14  Andreas Jaeger  <aj@suse.de>
18080
18081         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18082         memset declaration.
18083
18084 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18085
18086         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18087         tmpbuf.
18088
18089 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18090
18091         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18092         * elf/Makefile ($(objpfx)ld.so): Likewise.
18093
18094         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18095         Don't list ld.so twice in dependencies.
18096
18097         * posix/bug-regex31.c: Include <stdlib.h>.
18098
18099         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18100
18101         * nis/nss_compat/compat-spwd.c
18102         (getspent_next_nss_netgr): Remove unused variable.
18103         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18104
18105         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18106         nonmembers" output to use the right array.
18107
18108         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18109
18110         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18111
18112         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18113         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18114         * catgets/gencat.c (read_input_file): Likewise.
18115         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18116
18117         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18118         variable definition inside #if's controlling its use.
18119
18120         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18121
18122         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18123
18124         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18125
18126         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18127         unreachable code.
18128
18129         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18130
18131         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18132         * configure: Regenerated.
18133
18134         * Makerules: Revert last change.
18135         * elf/Makefile: Likewise.
18136
18137 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18138
18139         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18140         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18141         (reloc-link): Likewise.
18142
18143 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18144
18145         * elf/Makefile: Add rules to build pldd.
18146         * elf/pldd.c: New file.
18147         * elf/pldd-xx.c: New file.
18148
18149 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18150
18151         * version.h: Update for 2.15 development version.
18152
18153 2011-06-07  David S. Miller  <davem@davemloft.net>
18154
18155         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18156         ifuncs.
18157         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18158         elf_machine_lazy_rel): Likewise.
18159         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18160         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18161         elf_machine_lazy_rel): Likewise.
18162         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18163         dl_hwcap via passed in argument.
18164         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18165         Likewise.
18166
18167 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18168
18169         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18170
18171 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18172
18173         [BZ #12849]
18174         * manual/fdl-1.1.texi: New file, verbatim from:
18175         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18176         * manual/lgpl-2.1.texi: New file, verbatim from:
18177         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18178         * manual/Makefile (licenses): New variable, list those new file names.
18179         (texis): Use it.
18180         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18181
18182         * manual/fdl.texi: File removed.
18183         * manual/lesser.texi: File removed.
18184         * manual/libc.texinfo (Copying, Documentation License):
18185         Use new @include file names, put @appendix directive before @include.
18186
18187 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18188
18189         [BZ #12841]
18190         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18191         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18192         (mq_open): Add __NTH.
18193
18194 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18195
18196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18197         Assume Intel Core i3/i5/i7 processor if AVX is available.
18198
18199 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18200
18201         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18202         typo.
18203
18204 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18205
18206         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18207         memory.  Use alloca_account.  Fix memory leak when retrying.
18208
18209 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18210
18211         * version.h (RELEASE): Bump for 2.14 release.
18212         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18213
18214         * config.make.in (RANLIB): Remove entry.
18215
18216 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18217
18218         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18219         (libc.pot): Work around missing support for .ksh extension in xgettext.
18220
18221         [BZ #12684]
18222         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18223         if both request failed.
18224         (send_dg): In case of server errors clear resplen or *resplen2.
18225
18226         [BZ #12454]
18227         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18228         when there are multiple maps.
18229         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18230         (_dl_fini): Remove test here.
18231
18232         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18233
18234 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18235
18236         [BZ #12350]
18237         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18238         bit from old_res_options.
18239         (gaih_inet): Likewise.
18240
18241         [BZ #11099]
18242         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18243         as signed.
18244
18245         * resolv/res_init.c (res_setoptions): Make the code more compact.
18246
18247         [BZ #11558]
18248         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18249         set RES_USEVC.
18250
18251         [BZ #11634]
18252         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18253
18254         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18255
18256         [BZ #11781]
18257         * malloc/malloc.h: Declare malloc hook variables as volatile.
18258
18259         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18260         in last patch.
18261
18262         [BZ #11799]
18263         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18264         raise in the comment.
18265         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18266         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18267         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18268
18269 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18270
18271         [BZ #12811]
18272         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18273         grow the buffers more if it already has to be sufficient.
18274         (build_wcs_upper_buffer): Likewise.
18275         * posix/regexec.c (check_matching): Likewise.
18276         (clean_state_log_if_needed): Likewise.
18277         (extend_buffers): Don't enlarge buffers beyond size of the input
18278         buffer.
18279         Patches mostly by Emil Wojak <emil@wojak.eu>.
18280         * posix/bug-regex32.c: New file.
18281         * posix/Makefile (tests): Add bug-regex32.
18282
18283         * locale/findlocale.c (_nl_find_locale): Return right away if
18284         _nl_explode_name failed.
18285         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18286
18287         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18288
18289         * debug/xtrace.sh: Unify messages.
18290         * malloc/memusage.sh: Likewise.
18291
18292         [BZ #12813]
18293         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18294         time symbol from vDSO.  Substitute with vsyscall if not available.
18295         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18296         __vdso_time.
18297
18298         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18299         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18300         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18301         Add sendmmsg and internal_sendmmsg.
18302         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18303         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18304         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18305
18306         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18307         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18308         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18309
18310 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18311
18312         [BZ #12813]
18313         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18314         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18315         available.
18316         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18317         __vdso_getcpu.
18318
18319         [BZ #12814]
18320         * iconvdata/Makefile (tests): Add bug-iconv9.
18321         * iconvdata/bug-iconv9.c: New file.
18322
18323 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18324
18325         [BZ #12814]
18326         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18327
18328 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18329
18330         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18331         (struct user_regs_struct): Change intcs field back to cs.
18332
18333 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18334
18335         * po/ja.po: Update from translation team.
18336
18337 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18338
18339         [BZ #12795]
18340         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18341         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18342
18343 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18344
18345         * stdlib/longlong.h: Update from GCC.
18346
18347 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18348
18349         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18350         parameter name.
18351         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18352         Add parameter name.
18353         (__sysconf): Pass it down.
18354
18355 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18356
18357         [BZ #12671]
18358         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18359         some situations.
18360         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18361         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18362         add in in __libc_use_alloca calls.  Adjust callers.
18363         (glob): Use malloc in some situations.
18364
18365         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18366         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18367         pltexit.
18368
18369 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18372         and CLOCK_BOOTTIME_ALARM.
18373
18374         [BZ #12782]
18375         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18376         is returned.
18377
18378         * string/_strerror.c (__strerror_r): Print negative errors as signed
18379         numbers.
18380
18381         [BZ #12777]
18382         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18383         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18384         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18385
18386         * configure.in: Fix typo in redirection and correct removal of test
18387         files in two cases.
18388
18389         [BZ #12788]
18390         * locale/setlocale.c (new_composite_name): Fix test to check for
18391         identical name of all categories.
18392
18393         [BZ #12792]
18394         * libio/filedoalloc.c (local_isatty): New function.
18395         (_IO_file_doallocate): Use local_isatty.
18396         * stdio-common/perror.c (perror): In case a new stream is used
18397         forward the stream error.
18398         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18399         error flag.
18400
18401 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18402
18403         [BZ #11869]
18404         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18405         alloca.
18406         * include/alloca.h (extend_alloca_account): Define.
18407
18408         [BZ #11857]
18409         * posix/regex.h: Fix comments with documentation of user-accessible
18410         fields after compilation and describe correct free'ing of pattern
18411         after re_compile_pattern.
18412         Patch by Reuben Thomas <rrt@sc3d.org>.
18413
18414 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18415
18416         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18417         and -mno-altivec to prevent the compiler from using Altivec and/or
18418         VSX instructions when the corresponding registers are not available.
18419
18420 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18421
18422         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18423
18424 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18425
18426         * libio/freopen.c (freopen): Use __dup2, not dup2.
18427         * libio/freopen64.c (freopen64): Likewise.
18428
18429 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18430
18431         [BZ #12775]
18432         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18433         * math/Makefile (tests): Add test-powl.
18434         (CFLAGS-test-powl.c): Define.
18435         * math/test-powl.c: New file.
18436
18437 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18438
18439         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18440
18441 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18442
18443         [BZ #11837]
18444         * iconvdata/gb18030.c: Update to GB18020-2005.
18445
18446 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18447
18448         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18449         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18450         Patch by Aharon Robbins <arnold@skeeve.com>.
18451
18452         [BZ #11892]
18453         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18454         on the stack.
18455
18456         [BZ #11895]
18457         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18458         through underflows.
18459
18460         [BZ #12766]
18461         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18462         point to strings before performing equality test for error_one_per_line
18463         mode.
18464
18465         [BZ #11697]
18466         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18467
18468         [BZ #11820]
18469         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18470         (struct user_fpregs_struct): Avoid __uint*_t types.
18471
18472         [BZ #6420]
18473         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18474         symbol info.  Use it instead of calling _dl_addr locally.
18475         (lock_and_info): New function.
18476         (tr_freehook): Call lock_and_info and pass symbol info as additional
18477         parameter to tr_where.
18478         (tr_mallochook): Likewise.
18479         (tr_reallochook): Likewise.
18480         (tr_memalignhook): Likewise.
18481
18482         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18483         used and couldn't be at all thread-safe.
18484
18485 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18486
18487         * libio/freopen.c (freopen): Don't close old file descriptor
18488         before the new one is opened.  Instead dup the new file descriptor
18489         to the old one after the new stream is created.
18490         * libio/freopen64.c (freopen64): Likewise.
18491         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18492         * libio/fileops.c (_IO_new_file_close_it): Handle new
18493         _IO_FLAGS2_NOCLOSE flag.
18494         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18495         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18496         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18497         _IO_FLAGS2_NOCLOSE flag.
18498         * include/unistd.h: Add hidden_proto for dup3.
18499         Define __have_dup3.
18500         * io/dup3.c: Define hidden symbol.
18501         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18502
18503         [BZ #7101]
18504         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18505         when an incomplete long option is used.
18506         * posix/tst-getopt_long1.c: New file.
18507         * posix/Makefile (tests): Add tst-getopt_long1.
18508
18509         [BZ #10138]
18510         * scripts/config.guess: Update from autoconf-2.68.
18511         * scripts/config.sub: Likewise.
18512
18513         [BZ #10157]
18514         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18515         tests into ...
18516         (has_cpuclock): ...this.  New function.
18517         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18518         macro here based on has_cpuclock code.
18519
18520         [BZ #10149]
18521         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18522         First byte (not low byte) is now always NUL.
18523         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18524
18525         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18526         Use non-cancelable interfaces.
18527
18528         [BZ #9809]
18529         * locale/iso-639.def: Add entry for Sorani.
18530
18531         [BZ #11901]
18532         * include/stdlib.h: Move include protection to the right place.
18533         Define abort_msg_s.  Declare __abort_msg with it.
18534         * stdlib/abort.c (__abort_msg): Adjust type.
18535         * assert/assert.c (__assert_fail_base): New function.  Majority
18536         of code from __assert_fail.  Allocate memory for __abort_msg with
18537         mmap.
18538         (__assert_fail): Now call __assert_fail_base.
18539         * assert/assert-perr.c: Remove bulk of implementation.  Use
18540         __assert_fail_base.
18541         * include/assert.hL Declare __assert_fail_base.
18542         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18543         mmap.
18544         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18545
18546 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18547
18548         [BZ #11952]
18549         [BZ #12453]
18550         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18551         until all modules are registered in the DTV.
18552         * elf/Makefile: Add rules to build and run tst-tls19.
18553         * elf/tst-tls19.c: New file.
18554         * elf/tst-tls19mod1.c: New file.
18555         * elf/tst-tls19mod2.c: New file.
18556         * elf/tst-tls19mod3.c: New file.
18557         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18558
18559         [BZ #12083]
18560         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18561         correctly.
18562
18563         [BZ #12601]
18564         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18565         two-byte sequence errors.
18566         * iconvdata/Makefile (tests): Add bug-iconv8.
18567         * iconvdata/bug-iconv8.c: New file.
18568
18569         [BZ #12626]
18570         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18571         buf2 definition.
18572
18573         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18574
18575         [BZ #12432]
18576         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18577         (dummy_getcfa): New function.
18578         (init): Get _Unwind_GetCFA address, use dummy if not found.
18579         (backtrace_helper): In recursion check, also check whether CFA changes.
18580         (__backtrace): Completely initialize arg.
18581
18582         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18583         storing incomplete byte sequence in state object.  Avoid testing for
18584         guaranteed too small input if we know there is enough data available.
18585
18586 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18587
18588         * Makeconfig (+link-pie): Indent.
18589         * Rules (binaries-pie): Define if $(have-fpie) and
18590         $(build-shared).
18591         (binaries-shared): Also filter out $(binaries-pie).
18592         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18593         * nscd/Makefile (others-pie): Add nscd.
18594         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18595         ($(objpfx)nscd): Remove command override.
18596         * login/Makefile (others-pie): Add pt_chown.
18597         ($(objpfx)pt_chown): Remove command override.
18598         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18599         remove command overrides.
18600
18601 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18602
18603         * libio/tst_putwc.c: Fix error messages.
18604
18605         [BZ #12724]
18606         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18607         currently writing and seek to current position when not.
18608         * libio/Makefile (tests): Add bug-fclose1.
18609         * libio/bug-fclose1.c: New file.
18610
18611 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18612
18613         [BZ #12511]
18614         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18615         don't set DF_1_NODELETE here.
18616         (do_lookup_x): When entering new entry test for copy relocation
18617         and if necessary set DF_1_NODELETE flag.
18618         * elf/tst-unique4.cc: New file.
18619         * elf/tst-unique4.h: New file.
18620         * elf/tst-unique4lib.cc: New file.
18621         * elf/Makefile: Add rules to build and run tst-unique4.
18622         Patch by Piotr Bury <pbury@goahead.com>.
18623
18624 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18625
18626         [BZ #12052]
18627         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18628
18629         [BZ #12625]
18630         * misc/mntent_r.c (addmntent): Flush the stream after the output
18631
18632         [BZ #12393]
18633         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18634         (is_trusted_path_normalize): Skip initial colon.  Append slash
18635         to empty buffer.  Duplicate is_trusted_path code but allow
18636         constructed patch to be prefix.
18637         (is_dst): Allow $ORIGIN followed by /.
18638         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18639         Correct testing of result of is_trusted_path_normalize
18640         (decompose_rpath): Fix warning.
18641
18642 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18643
18644         [BZ #11257]
18645         * grp/initgroups.c (internal_getgrouplist): When we found the service
18646         list through the initgroups entry in nsswitch.conf do not always
18647         continue on a successful lookup.  Don't always use the
18648         __nss_group_database value if it is set.
18649         * nss/nsswitch.conf (initgroups): Change action for successful db
18650         lookup to continue for compatibility.
18651
18652 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18653
18654         [BZ #11532]
18655         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18656         and CP774 modules.
18657         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18658         and CP774 modules.
18659         * iconvdata/tst-tables.sh: Likewise.
18660         * iconvdata/cp770.c: New file.
18661         * iconvdata/cp771.c: New file.
18662         * iconvdata/cp772.c: New file.
18663         * iconvdata/cp773.c: New file.
18664         * iconvdata/cp774.c: New file.
18665         * iconvdata/testdata/CP770: New file.
18666         * iconvdata/testdata/CP770..UTF8: New file.
18667         * iconvdata/testdata/CP771: New file.
18668         * iconvdata/testdata/CP771..UTF8: New file.
18669         * iconvdata/testdata/CP772: New file.
18670         * iconvdata/testdata/CP772..UTF8: New file.
18671         * iconvdata/testdata/CP773: New file.
18672         * iconvdata/testdata/CP773..UTF8: New file.
18673         * iconvdata/testdata/CP774: New file.
18674         * iconvdata/testdata/CP774..UTF8: New file.
18675
18676         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18677         END CHARMAP line.
18678         * iconvdata/gen-8bit-gap.sh: Likewise.
18679         * iconvdata/gen-8bit.sh: Likewise.
18680
18681         * locale/iso-639.def: Add ary entry.
18682
18683         [BZ #11258]
18684         * locale/C-translit.h.in: Add U20A1 transliteration.
18685
18686         [BZ #12178]
18687         * locale/iso-639.def: Add wae entry.
18688         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18689
18690         [BZ #12545]
18691         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18692         for n.
18693
18694         [BZ #12711]
18695         * locale/C-translit.h.in: Add entry for U20B9.
18696         Patch by pravin.d.s@gmail.com.
18697
18698 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18699
18700         [BZ #12713]
18701         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18702         ENAMETOOLONG use generic getcwd.
18703         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18704         in rtld.  Use *stat64.
18705         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18706         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18707         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18708         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18709         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18710         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18711         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18712         __fstatat64 macros.
18713         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18714         * dirent/rewinddir.c: Add libc_hidden_def.
18715         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18716         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18717
18718         * include/dirent.h (__alloc_dir): Add flags parameter.
18719         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18720         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18721         __alloc_dir.
18722         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18723         from fdopendir if O_CLOEXEC is already set.
18724
18725 2011-03-15  Alan Modra  <amodra@gmail.com>
18726
18727         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18728         l_tls_firstbyte_offset non-zero.  Save padding offset in
18729         l_tls_firstbyte_offset for later use.
18730         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18731         freeing static tls block.
18732
18733 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18734
18735         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18736         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18737         being defined by the kernel headers.
18738
18739 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18740
18741         [BZ #12734]
18742         * resolv/resolv.h: Define RES_NOTLDQUERY.
18743         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18744         no-tld-query and set RES_NOTLDQUERY.
18745         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18746         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18747         modern BIND to search name as TLD unless forbidden.
18748
18749 2011-05-07  Petr Baudis  <pasky@suse.cz>
18750             Ulrich Drepper  <drepper@gmail.com>
18751
18752         [BZ #12393]
18753         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18754         (is_trusted_path): ...to here.
18755         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18756         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18757         using is_trusted_path_normalize() in setuid scripts.
18758
18759 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18760
18761         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18762         __BEGIN/__END_DECLS.
18763
18764 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18765
18766         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18767         NSS_STATUS_NOTFOUND if no record was found.
18768
18769 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18770
18771         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18772         (headers-not-in-tirpc): Remove rpc/netdb.h
18773         * resolv/netdb.h: Revert last change.
18774
18775 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18776
18777         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18778         circular dependency between libgcc.a and libc.a.
18779
18780 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18781
18782         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18783         * nis/Makefile: Don't install rpcsvc/*.
18784         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18785         instead of <rpc/types.h>.
18786         (MAXHOSTNAMELEN): Define.
18787
18788 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18789
18790         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18791
18792 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18793
18794         [BZ #12714]
18795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18796         gethostbyname4_r when IPv6 results are possible.
18797
18798 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18799
18800         [BZ #12723]
18801         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18802         _PC_PIPE_BUF handling.
18803
18804 2011-04-30  Bruno Haible  <bruno@clisp.org>
18805
18806         [BZ #12717]
18807         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18808         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18809         to 'int'.
18810         * inet/getnameinfo.c (getnameinfo): Likewise.
18811
18812 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18813
18814         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18815         to groups setting in database lookup.
18816         * nss/nsswitch.conf: Add initgroups entry.
18817
18818 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18819
18820         [BZ #12685]
18821         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18822         mode string.
18823         Patch by Eric Blake <eblake@redhat.com>.
18824
18825 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18826
18827         * sunrpc/Makefile (need-export-routines): Add svc_run.
18828         (routines): Remove svc_run.
18829         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18830         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18831         * sunrpc/svc_run.c (svc_run): Likewise.
18832         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18833
18834 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18835
18836         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18837         problem in reallocation in last patch.
18838
18839 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18840
18841         * sunrpc/Makefile: Move inclusion of Rules.
18842
18843 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18844
18845         * nss/nss_files/files-initgroups.c: New file.
18846         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18847         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18848         _nss_files_initgroups_dyn.
18849
18850 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18851
18852         * elf/elf.h (R_ARM_IRELATIVE): Define.
18853
18854 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18855
18856         * po/ru.po: Update from translation team.
18857
18858 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18859
18860         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18861         dependencies.
18862
18863 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18864
18865         [BZ #12653]
18866         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18867         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18868         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18869         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18870         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18871
18872 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18873
18874         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18875         differing bytes.
18876         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18877         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18878         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18879
18880 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18881
18882         [BZ #12420]
18883         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18884         storing it.
18885         * stdlib/bug-getcontext.c: New file.
18886         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18887
18888 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18889
18890         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18891         instructions into .machine "z9-109".
18892         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18893         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18894
18895 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18896
18897         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18898         between environment variables and auxiliary vector.
18899
18900 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18901
18902         * Makefile: Add rules to build linkobj/libc.so.
18903         * include/libc-symbols.h: Define libc_hidden_nolink.
18904         * include/rpc/auth.h: Mark functions which are to be hidden.
18905         * include/rpc/auth_des.h: Likewise.
18906         * include/rpc/auth_unix.h: Likewise.
18907         * include/rpc/clnt.h: Likewise.
18908         * include/rpc/des_crypt.h: Likewise.
18909         * include/rpc/key_prot.h: Likewise.
18910         * include/rpc/pmap_clnt.h: Likewise.
18911         * include/rpc/pmap_prot.h: Likewise.
18912         * include/rpc/pmap_rmt.h: Likewise.
18913         * include/rpc/rpc_msg.h: Likewise.
18914         * include/rpc/svc.h: Likewise.
18915         * include/rpc/svc_auth.h: Likewise.
18916         * include/rpc/xdr.h: Likewise.
18917         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18918         * nss/Makefile: Likewise.
18919         * sunrpc/Makefile: Don't install headers.  Build library with normal
18920         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18921         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18922         for the compat linking library.  Remove use of INTDEF/INTUSE.
18923         * sunrpc/auth_none.c: Likewise.
18924         * sunrpc/auth_unix.c: Likewise.
18925         * sunrpc/authdes_prot.c: Likewise.
18926         * sunrpc/authuxprot.c: Likewise.
18927         * sunrpc/clnt_gen.c: Likewise.
18928         * sunrpc/clnt_perr.c: Likewise.
18929         * sunrpc/clnt_raw.c: Likewise.
18930         * sunrpc/clnt_simp.c: Likewise.
18931         * sunrpc/clnt_tcp.c: Likewise.
18932         * sunrpc/clnt_udp.c: Likewise.
18933         * sunrpc/clnt_unix.c: Likewise.
18934         * sunrpc/des_crypt.c: Likewise.
18935         * sunrpc/des_soft.c: Likewise.
18936         * sunrpc/get_myaddr.c: Likewise.
18937         * sunrpc/key_call.c: Likewise.
18938         * sunrpc/key_prot.c: Likewise.
18939         * sunrpc/netname.c: Likewise.
18940         * sunrpc/pm_getmaps.c: Likewise.
18941         * sunrpc/pm_getport.c: Likewise.
18942         * sunrpc/pmap_clnt.c: Likewise.
18943         * sunrpc/pmap_prot.c: Likewise.
18944         * sunrpc/pmap_prot2.c: Likewise.
18945         * sunrpc/pmap_rmt.c: Likewise.
18946         * sunrpc/publickey.c: Likewise.
18947         * sunrpc/rpc_cmsg.c: Likewise.
18948         * sunrpc/rpc_common.c: Likewise.
18949         * sunrpc/rpc_dtable.c: Likewise.
18950         * sunrpc/rpc_prot.c: Likewise.
18951         * sunrpc/rpc_thread.c: Likewise.
18952         * sunrpc/rtime.c: Likewise.
18953         * sunrpc/svc.c: Likewise.
18954         * sunrpc/svc_auth.c: Likewise.
18955         * sunrpc/svc_authux.c: Likewise.
18956         * sunrpc/svc_raw.c: Likewise.
18957         * sunrpc/svc_run.c: Likewise.
18958         * sunrpc/svc_simple.c: Likewise.
18959         * sunrpc/svc_tcp.c: Likewise.
18960         * sunrpc/svc_udp.c: Likewise.
18961         * sunrpc/svc_unix.c: Likewise.
18962         * sunrpc/svcauth_des.c: Likewise.
18963         * sunrpc/xcrypt.c: Likewise.
18964         * sunrpc/xdr.c: Likewise.
18965         * sunrpc/xdr_array.c: Likewise.
18966         * sunrpc/xdr_float.c: Likewise.
18967         * sunrpc/xdr_intXX_t.c: Likewise.
18968         * sunrpc/xdr_mem.c: Likewise.
18969         * sunrpc/xdr_rec.c: Likewise.
18970         * sunrpc/xdr_ref.c: Likewise.
18971         * sunrpc/xdr_sizeof.c: Likewise.
18972         * sunrpc/xdr_stdio.c: Likewise.
18973
18974 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18975
18976         [BZ #12650]
18977         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18978         * sysdeps/ia64/dl-tls.h: Likewise.
18979         * sysdeps/powerpc/dl-tls.h: Likewise.
18980         * sysdeps/s390/dl-tls.h: Likewise.
18981         * sysdeps/sh/dl-tls.h: Likewise.
18982         * sysdeps/sparc/dl-tls.h: Likewise.
18983         * sysdeps/x86_64/dl-tls.h: Likewise.
18984         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18985
18986 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18987
18988         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18989         rpath element also skip the following colon.
18990         (expand_dynamic_string_token): Add is_path parameter and pass
18991         down to DL_DST_REQUIRED and _dl_dst_substitute.
18992         (decompose_rpath): Call expand_dynamic_string_token with
18993         non-zero is_path.  Ignore empty rpaths.
18994         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18995         with zero is_path.
18996
18997 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18998
18999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19000         Make cancelable.
19001
19002 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19003
19004         [BZ #12655]
19005         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19006         Patch by Filipe David Manana <fdmanana@apache.org>.
19007
19008 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19009
19010         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19011         Maintain aligned stack.
19012         (CHECK_RSP): Remove unused macro.
19013
19014 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19015
19016         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19017         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19018
19019 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19020
19021         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19022
19023         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19024
19025 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19026
19027         [BZ #12518]
19028         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19029         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19030         * sysdeps/x86_64/memmove.c: New file.
19031         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19032         (memcpy): Renamed to ...
19033         (__new_memcpy): This.
19034         (memcpy): Provide GLIBC_2_14 memcpy.
19035         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19036         (memcpy): Provide GLIBC_2_2_5 memcpy.
19037
19038 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19039
19040         [BZ #12631]
19041         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19042
19043 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19044
19045         * misc/syncfs.c: New file.
19046         * misc/Makefile (routines): Add syncfs.
19047         * posix/unistd.h: Declare syncfs.
19048         * sysdeps/unix/syscalls.list: Add syncfs.
19049
19050 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19051
19052         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19053         open_by_handle_at.
19054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19055         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19056         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19057         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19058         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19059         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19060         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19061
19062 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19063
19064         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19065         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19066         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19067         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19068         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19069         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19070         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19071
19072         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19073         sync_file_range.c with -fexceptions.
19074         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19075         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19076         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19077         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19078         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19079         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19080         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19081         sync_file_range as cancellation point
19082         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19083         now a wrapper around __call_sync_file_range with cancellation handling.
19084         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19085         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19086         function name to __call_sync_file_range.
19087         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19088         Add call_sync_file_range.
19089
19090 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19091
19092         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19093         bits/timex.h.
19094
19095 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19096
19097         * iconv/iconv.h: Fix typo in comment.
19098         * io/fcntl.h: Likewise.
19099         * libio/stdio.h: Likewise.
19100         * posix/spawn.h: Likewise.
19101         * posix/unistd.h: Likewise.
19102         * stdlib/stdlib.h: Likewise.
19103         * time/time.h: Likewise.
19104         * wcsmbs/wchar.h: Likewise.
19105
19106         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19107         open_by_handle): Add.
19108         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19109         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19110         Augment a few comments.
19111         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19112         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19113         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19114         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19115         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19116         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19117         open_by_handle.
19118
19119         * io/fcntl.h (AT_EMPTY_PATH): Define.
19120
19121 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19122
19123         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19124         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19125         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19126         to...
19127         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19128         * Versions.def: Add GLIBC_2.14.
19129         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19130         Export.
19131
19132 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19133
19134         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19135         round counter.
19136         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19137
19138 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19139
19140         [BZ #12597]
19141         * string/test-strncmp.c (do_page_test): New function.
19142         (check2): Likewise.
19143         (test_main): Call check2.
19144         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19145
19146 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19147
19148         [BZ #12587]
19149         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19150         Handle cache information in CPU leaf 4.
19151         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19152
19153 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19154
19155         [BZ #12583]
19156         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19157         character representation.
19158         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19159
19160 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19161
19162         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19163         END(__isnan) to END(__isnanf) to match function entry point/label
19164         EALIGN(__isnanf,...).
19165
19166 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19167
19168         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19169
19170 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19171
19172         [BZ #12510]
19173         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19174         copy from the symbol referenced in the relocation to initialize the
19175         used variable.
19176         Patch by Piotr Bury <pbury@goahead.com>.
19177         * elf/Makefile: Add rules to build and tst-unique3.
19178         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19179         * elf/tst-unique3.cc: New file.
19180         * elf/tst-unique3.h: New file.
19181         * elf/tst-unique3lib.cc: New file.
19182         * elf/tst-unique3lib2.cc: New file.
19183
19184         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19185
19186 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19187
19188         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19189         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19190         to _start.
19191
19192 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19193
19194         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19195         to-be-loaded object along a path to loader is ld.so.
19196
19197 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19198             Ulrich Drepper  <drepper@gmail.com>
19199
19200         * sysdeps/x86_64/memset.S: After aligning destination, code
19201         branches to different locations depending on the value of
19202         misalignment, when multiarch is enabled. Fix this.
19203
19204 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19205
19206         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19207         Set _x86_64_preferred_memory_instruction for AMD processsors.
19208         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19209         Set bit_Prefer_SSE_for_memop for AMD processors.
19210
19211 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19212
19213         * libio/fmemopen.c (fmemopen): Optimize a bit.
19214
19215 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19216
19217         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19218
19219 2011-03-03  Roland McGrath  <roland@redhat.com>
19220
19221         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19222
19223 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19224
19225         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19226         __bzero_ultra1 instead of __memset_ultra1.
19227
19228 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19229             Ulrich Drepper  <drepper@gmail.com>
19230
19231         [BZ #12509]
19232         * include/link.h (struct link_map): Add l_orig_initfini.
19233         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19234         returning unsuccessfully.
19235         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19236         close of a file loaded at startup, restore the original l_initfini
19237         list.
19238         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19239         list, store the pointer.
19240         * elf/Makefile ($(objpfx)noload-mem): New rule.
19241         (noload-ENV): Define.
19242         (tests): Add $(objpfx)noload-mem.
19243         * elf/noload.c: Include <memcheck.h>.
19244         (main): Call mtrace.  Close all opened handles.
19245
19246 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19247
19248         [BZ #12454]
19249         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19250         dependencies are missing.
19251
19252 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19253
19254         Fix __if_freereq crash: Unlike the generic version which uses free,
19255         Hurd needs munmap.
19256         * sysdeps/mach/hurd/ifreq.h: New file.
19257
19258 2011-01-27  Petr Baudis  <pasky@suse.cz>
19259             Ulrich Drepper  <drepper@gmail.com>
19260
19261         [BZ 12445]#
19262         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19263         to extend_alloca().
19264         * stdio-common/bug23.c: New file.
19265         * stdio-common/Makefile (tests): Add bug23.
19266
19267 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19268             Ulrich Drepper  <drepper@gmail.com>
19269
19270         [BZ #12489]
19271         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19272         before performing relro protection.  At old place add assertion
19273         to make sure nothing changed.
19274
19275 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19276             Glauber de Oliveira Costa  <glommer@gmail.com>
19277
19278         * elf/elf.h: Add new ARM TLS relocs.
19279
19280 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19281
19282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19283         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19284         cast from r3.
19285         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19286         'tests' variable.
19287         * sysdeps/wordsize-64/tst-writev.c: New file.
19288
19289 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19290
19291         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19292         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19293         insns in _dl_start to prevent a TOC reference before relocs are
19294         resolved.
19295
19296 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19297
19298         [BZ #12469]
19299         * Makeconfig: Remove RANLIB definition.
19300         * Makerules: Don't use RANLIB.
19301         * aclocal.m4: Remove ranlib test.
19302         * configure.in: No need to check for ranlib.
19303         * elf/rtld-Rules: Don't use RANLIB.
19304
19305 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19306
19307         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19308         protection macro.
19309         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19310         inclusion protection macro.
19311
19312         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19313         SIGRTMIN and SIGRTMAX and print information in that case only when
19314         SIGRTMIN is defined.
19315
19316 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19317
19318         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19319         arginfo fn returning -1.
19320
19321         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19322         and thousands string is zero terminated.
19323
19324 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19325
19326         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19327         sysdeps/unix/sysv/linux/bits/socket.h.
19328
19329 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19330
19331         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19332         (__CPU_COUNT): Remove old macros.
19333         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19334         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19335         (__CPU_ALLOC, __CPU_FREE): Add macros.
19336         (__sched_cpualloc, __sched_cpufree): Add declarations.
19337
19338 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19339
19340         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19341         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19342         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19343         (readdhstai): Return value of addhstaiX call.
19344         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19345         (addgrbyX): Return value returned by cache_addgr.
19346         (readdgrbyname): Return value returned by addgrbyX.
19347         (readdgrbygid): Likewise.
19348         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19349         (addpwbyX): Return value returned by cache_addpw.
19350         (readdpwbyname): Return value returned by addhstbyX.
19351         (readdpwbyuid): Likewise.
19352         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19353         (addservbyX): Return value returned by cache_addserv.
19354         (readdservbyname): Return value returned by addservbyX:
19355         (readdservbyport): Likewise.
19356         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19357         (addhstbyX): Return value returned by cache_addhst.
19358         (readdhstbyname): Return value returned by addhstbyX.
19359         (readdhstbyaddr): Likewise.
19360         (readdhstbynamev6): Likewise.
19361         (readdhstbyaddrv6): Likewise.
19362         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19363         (readdinitgroups): Return value returned by addinitgroupsX.
19364         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19365         (prune_cache): Keep track of timeout value of re-added entries.
19366         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19367         * nscd/nscd.h: Adjust prototypes of readd* functions.
19368
19369 2011-02-04  Roland McGrath  <roland@redhat.com>
19370
19371         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19372         (nis_stats): Likewise.
19373         * nis/nis_modify.c (nis_modify): Likewise.
19374         * nis/nis_remove.c (nis_remove): Likewise.
19375         * nis/nis_add.c (nis_add): Likewise.
19376
19377         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19378
19379         * posix/fnmatch_loop.c: Add some consts.
19380
19381         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19382
19383 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19384
19385         [BZ #12460]
19386         * config.make.in (config-cflags-novzeroupper): Define.
19387         * configure.in: Substitute libc_cv_cc_novzeroupper.
19388         * elf/Makefile (AVX-CFLAGS): Define.
19389         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19390         (CFLAGS-tst-auditmod4a.c): Likewise.
19391         (CFLAGS-tst-auditmod4b.c): Likewise.
19392         (CFLAGS-tst-auditmod6b.c): Likewise.
19393         (CFLAGS-tst-auditmod6c.c): Likewise.
19394         (CFLAGS-tst-auditmod7b.c): Likewise.
19395         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19396
19397 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19398
19399         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19400         function to the callback.
19401         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19402
19403 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19404
19405         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19406         of errno.
19407
19408 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19409
19410         [BZ #11724]
19411         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19412         of constructors.
19413         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19414         of destructors.
19415         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19416
19417         [BZ #11724]
19418         * elf/Makefile: Add rules to build and run new test.
19419         * elf/tst-initorder.c: New file.
19420         * elf/tst-initorder.exp: New file.
19421         * elf/tst-initordera1.c: New file.
19422         * elf/tst-initordera2.c: New file.
19423         * elf/tst-initordera3.c: New file.
19424         * elf/tst-initordera4.c: New file.
19425         * elf/tst-initorderb1.c: New file.
19426         * elf/tst-initorderb2.c: New file.
19427         * elf/tst-order-a1.c: New file.
19428         * elf/tst-order-a2.c: New file.
19429         * elf/tst-order-a3.c: New file.
19430         * elf/tst-order-a4.c: New file.
19431         * elf/tst-order-b1.c: New file.
19432         * elf/tst-order-b2.c: New file.
19433         * elf/tst-order-main.c: New file.
19434         New test case by George Gensure <werkt0@gmail.com>.
19435
19436 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19437
19438         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19439         decoding ACE if AI_CANONIDN.
19440
19441 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19442
19443         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19444
19445 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19446
19447         * version.h (RELEASE): Bump for 2.13 release.
19448         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19449
19450         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19451
19452         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19453         MADV_NOHUGEPAGE.
19454         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19455         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19456         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19457         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19458         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19459         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19460
19461         * posix/getconf.c: Update copyright year.
19462         * catgets/gencat.c: Likewise.
19463         * csu/version.c: Likewise.
19464         * debug/catchsegv.sh: Likewise.
19465         * debug/xtrace.sh: Likewise.
19466         * elf/ldconfig.c: Likewise.
19467         * elf/ldd.bash.in: Likewise.
19468         * elf/sprof.c (print_version): Likewise.
19469         * iconv/iconv_prog.c: Likewise.
19470         * iconv/iconvconfig.c: Likewise.
19471         * locale/programs/locale.c: Likewise.
19472         * locale/programs/localedef.c: Likewise.
19473         * malloc/memusage.sh: Likewise.
19474         * malloc/mtrace.pl: Likewise.
19475         * nscd/nscd.c (print_version): Likewise.
19476         * nss/getent.c: Likewise.
19477
19478         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19479         PF_CAIF, and PF_ALG.
19480         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19481
19482 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19483
19484         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19485         (modules-names): Use them.
19486         (ifunc-test-modules, ifunc-pie-tests): Define.
19487         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19488         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19489         (test-extras): Likewise.
19490         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19491         $(compile-command.c).
19492         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19493         (all-built-dso): Define.
19494         (check-textrel.out, check-execstack.out): Depend on it.
19495
19496         * configure.in: Don't override --enable-multi-arch.
19497
19498 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19499
19500         [BZ #6812]
19501         * nscd/hstcache.c (tryagain): Define.
19502         (cache_addhst): Return tryagain not notfound for temporary errors.
19503         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19504         failed.
19505
19506 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19507
19508         [BZ #10563]
19509         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19510         to make the syscall.
19511         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19512
19513         [BZ #12378]
19514         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19515         and fall back to matching as normal character if the string ends before
19516         the matching ']' is found.  This is what POSIX requires.
19517         * posix/testfnm.c: Adjust test result.
19518         * posix/globtest.sh: Adjust test result.  Add new test.
19519         * posix/tst-fnmatch.input: Likewise.
19520         * posix/tst-fnmatch2.c: Add new test.
19521
19522 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19523
19524         * elf/Makefile (check-execstack): Revert last change.  Depend on
19525         check-execstack.h.
19526         (check-execstack.h): New target.
19527         (generated): Add check-execstack.h.
19528         * elf/check-execstack.c: Include "check-execstack.h".
19529         (main): Revert last change.
19530         (handle_file): Return zero if GNU_STACK is absent and
19531         DEFAULT_STACK_PERMS doesn't include PF_X.
19532
19533 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19534
19535         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19536         in child fails because the descriptor is already closed.
19537         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19538         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19539         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19540
19541         [BZ #12397]
19542         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19543         syscall.
19544
19545         [BZ #10484]
19546         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19547         temporary buffer used to handle multi lookups locally.
19548         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19549
19550 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19551
19552         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19553         loader is ld.so.
19554
19555 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19556
19557         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19558         alignment for SSE2.
19559
19560 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19561
19562         [BZ #12394]
19563         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19564         characters.  When rounding increased number of integer digits recompute
19565         number of groups.
19566         * stdio-common/tst-grouping.c: New file.
19567         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19568
19569 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19570
19571         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19572         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19573
19574         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19575         void.
19576         * bits/select.h: Likewise.
19577
19578 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19579
19580         * po/ja.po: Update from translation team.
19581
19582 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19583
19584         [BZ #11155]
19585         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19586         implementation just like for lxstat, fxstatat, et al.
19587
19588 2010-12-27  Jim Meyering  <meyering@redhat.com>
19589
19590         [BZ #12348]
19591         * posix/regexec.c (build_trtable): Return failure indication upon
19592         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19593
19594 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19595
19596         [BZ #12201]
19597         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19598         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19599         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19600         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19601
19602         [BZ #12207]
19603         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19604
19605         [BZ #12204]
19606         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19607         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19608
19609 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19610
19611         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19612         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19613         script has SORT_BY_INIT_PRIORITY.
19614         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19615         NO_CTORS_DTORS_SECTIONS is defined.
19616         * elf/soinit.c: Likewise.
19617         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19618         NO_CTORS_DTORS_SECTIONS is defined.
19619         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19620         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19621         * sysdeps/sh/init-first.c: Likewise.
19622         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19623
19624 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19625
19626         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19627         always use the slow path.
19628
19629 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19630
19631         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19632         similar rule which adds the sysdep directories to the header search in
19633         order to pick up the correct platform stackinfo.h.
19634         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19635         perform test if it is, otherwise return successfully without testing.
19636         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19637         DEFAULT_STACK_PERMS define in stackinfo.h.
19638         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19639         defined in stackinfo.h.
19640         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19641         DEFAULT_STACK_PERMS defined in stackinfo.h.
19642         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19643         * sysdeps/ia64/stackinfo.h: Likewise.
19644         * sysdeps/s390/stackinfo.h: Likewise.
19645         * sysdeps/sh/stackinfo.h: Likewise.
19646         * sysdeps/sparc/stackinfo.h: Likewise.
19647         * sysdeps/x86_64/stackinfo.h: Likewise.
19648         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19649         PF_X for powerpc64.  Retain PF_X for powerpc32.
19650
19651 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19652
19653         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19654         accurately.
19655         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19656         GETDENTS_64BIT_ALIGNED.
19657
19658 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19659
19660         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19661
19662 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19663
19664         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19665         _GNU_SOURCE.
19666
19667         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19668         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19669         Remove __restrict.
19670         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19671         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19672
19673 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19674
19675         [BZ #11655]
19676         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19677         are initialized.
19678
19679 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19680
19681         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19682
19683 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19684
19685         * po/it.po: Update from translation team.
19686
19687 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19688
19689         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19690         unused codes.
19691
19692 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19693
19694         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19695
19696 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19697
19698         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19699         specially.
19700         (gaih_getanswer_slice): Likewise.
19701
19702 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19703
19704         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19705
19706 2010-05-31  Petr Baudis  <pasky@suse.cz>
19707
19708         [BZ #11149]
19709         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19710         silently even in the chroot mode.
19711
19712 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19713
19714         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19715         last patch a bit.  Pretty printing
19716
19717 2010-05-31  Petr Baudis <pasky@suse.cz>
19718
19719         [BZ #10085]
19720         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19721         initialization of skip_initgroups_dyn.
19722
19723 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19724
19725         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19726         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19727
19728 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19729
19730         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19731
19732 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19733
19734         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19735         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19736         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19737         ($(objpfx)tst-fnmatch-mem): New rule.
19738         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19739         * posix/tst-fnmatch.c (main): Call mtrace.
19740
19741 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19742
19743         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19744         Support Intel processor model 6 and model 0x2c.
19745
19746 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19747
19748         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19749           signed comparison.
19750
19751 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19752
19753         [BZ #12205]
19754         * string/test-strncasecmp.c (check_result): New function.
19755         (do_one_test): Use it.
19756         (check1): New function.
19757         (test_main): Use it.
19758         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19759         Support strcasecmp and strncasecmp.
19760
19761 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19762
19763         [BZ #12194]
19764         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19765         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19766
19767 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19768
19769         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19770         IFUNC support.
19771         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19772         memset-x86-64.
19773         * sysdeps/x86_64/multiarch/bzero.S: New file.
19774         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19775         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19776         * sysdeps/x86_64/multiarch/memset.S: New file.
19777         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19778         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19779         Set bit_Prefer_SSE_for_memop for Intel processors.
19780         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19781         Define.
19782         (index_Prefer_SSE_for_memop): Define.
19783         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19784
19785 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19786
19787         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19788         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19789
19790 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19791
19792         [BZ #12191]
19793         * sysdeps/i386/i686/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
19798         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19799         (__x86_64_raw_data_cache_size_half): Likewise.
19800         (__x86_64_raw_shared_cache_size): Likewise.
19801         (__x86_64_raw_shared_cache_size_half): Likewise.
19802         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19803         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19804         and __x86_64_raw_shared_cache_size_half.  Round
19805         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19806         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19807         to multiple of 256 bytes.
19808
19809 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19810
19811         [BZ #12167]
19812         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19813         of inacessible symlinks.  Verify result of symlink before returning it.
19814         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19815         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19816
19817 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19818
19819         * math/math.h (isinf): Fix typo in comment.
19820
19821 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19822
19823         * po/da.po: Update from translation team.
19824
19825 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19826
19827         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19828         is added to the list.
19829
19830 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19831             Ulrich Drepper  <drepper@gmail.com>
19832
19833         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19834         the global list here.  Move code to...
19835         (_dl_add_to_namespace_list): ...here.  New function.
19836         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19837         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19838         * elf/dl-load.c (lose): Don't remove the element from the list.
19839         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19840         (_dl_map_object): Likewise.
19841
19842 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19843
19844         [BZ #12159]
19845         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19846         into all bytes of SSE register.
19847         Patch by Richard Li <richardpku@gmail.com>.
19848
19849 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19850
19851         [BZ #12140]
19852         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19853         perturbing.
19854
19855 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19856
19857         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19858         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19859         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19860         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19862         submachine.
19863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19864
19865 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19866
19867         * include/dlfcn.h (__RTLD_SECURE): Define.
19868         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19869         mode & __RTLD_SECURE instead.
19870         (open_path): Rename preloaded parameter to secure.
19871         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19872         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19873         * elf/dl-deps.c (openaux): Likewise.
19874         * elf/rtld.c (struct map_args): Remove is_preloaded.
19875         (map_doit): Don't use it.
19876         (dl_main): Likewise.
19877         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19878         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19879
19880 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19881
19882         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19883         (sysd-rules-targets): Remove duplicates.
19884         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19885         rtld-%.$o dependency.
19886
19887 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19888
19889         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19890         _dl_map_object do it.
19891
19892 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19893
19894         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19895         fast fma builtins, define the macros in the C99 standard.
19896         (FP_FAST_FMAF): Likewise.
19897         (FP_FAST_FMAL): Likewise.
19898         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19899
19900         * bits/mathdef.h: Update copyright year.
19901         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19902
19903 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19904
19905         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19906         builtins, define the macros in the C99 standard.
19907         (FP_FAST_FMAF): Likewise.
19908         (FP_FAST_FMAL): Likewise.
19909         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19910         multiply/add.
19911         (FP_FAST_FMAF): Likewise.
19912
19913 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19914
19915         [BZ #3268]
19916         * math/libm-test.inc (fma_test): Some new testcases.
19917         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19918         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19919         y and infinite z.  Do multiplication by C already in long double.
19920         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19921         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19922         y and infinite z.  Do bitwise or of inexact bit into u.d.
19923         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19924         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19925         * sysdeps/i386/fpu/s_fma.S: Removed.
19926         * sysdeps/i386/fpu/s_fmal.S: Removed.
19927
19928 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19929
19930         [BZ #3268]
19931         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19932         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19933         computation is not scheduled after fetestexcept.  Fix value
19934         of minimum denormal long double.
19935
19936 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19937
19938         [BZ #3268]
19939         * math/libm-test.inc (fma_test): Add some more tests.
19940         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19941         correctly.
19942
19943 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19944
19945         * scripts/data/localplt-s390-linux-gnu.data: New file.
19946         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19947
19948 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19949
19950         [BZ #3268]
19951         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19952         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19953         instead of dbl-64.
19954         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19955         inlines.
19956         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19957         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19958         if one of x and y is very large and the other is subnormal.
19959         * sysdeps/s390/fpu/s_fmaf.c: New file.
19960         * sysdeps/s390/fpu/s_fma.c: New file.
19961         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19962         * sysdeps/powerpc/fpu/s_fma.S: New file.
19963         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19964         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19965         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19966
19967 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19968
19969         [BZ #3268]
19970         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19971         fma tests.
19972         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19973         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19974         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19975         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19976         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19977         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19978         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19979
19980 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19981
19982         [BZ #12078]
19983         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19984         * posix/bug-regex31.input: Add test case.
19985
19986 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19987
19988         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19989         * posix/bug-regex31.input: New file.
19990
19991         [BZ #12078]
19992         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19993         (parse_sub_exp): Fix last change, use postorder.
19994
19995         * posix/bug-regex31.c: New file.
19996         * posix/Makefile: Add rules to build and run bug-regex31.
19997
19998         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19999
20000         [BZ #12078]
20001         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20002
20003         [BZ #12108]
20004         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20005         to have entries in sys_siglist.
20006
20007         [BZ #12093]
20008         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20009         be NULL.
20010
20011 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20012
20013         [BZ #3268]
20014         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20015         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20016         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20017         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20018         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20019         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20020         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20021         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20022         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20023         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20024         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20025         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20026         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20027         * math/ftestexcept.c (fetestexcept): Likewise.
20028         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20029         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20030         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20031         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20032         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20033         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20034         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20035
20036 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20037
20038         [BZ #12107]
20039         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20040         newline.
20041
20042 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20043
20044         * string/bug-strstr1.c: New file.
20045         * string/Makefile: Add rules to build and run bug-strstr1.
20046
20047 2010-10-05  Eric Blake  <eblake@redhat.com>
20048
20049         [BZ #12092]
20050         * string/str-two-way.h (two_way_long_needle): Always clear memory
20051         when skipping input due to the shift table.
20052
20053 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20054
20055         [BZ #12005]
20056         * malloc/mcheck.c: Handle large requests.
20057
20058         [BZ #12077]
20059         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20060         for strncmp and strncasecmp.
20061         * string/stratcliff.c: Add tests for strcmp and strncmp.
20062         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20063
20064 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20065
20066         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20067         __set_fpscr.
20068
20069 2010-09-30  Andreas Jaeger  <aj@suse.de>
20070
20071         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20072         (CGROUP_SUPER_MAGIC): Define.
20073         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20074         Handle btrfs and cgroup file systems.
20075         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20076         Likewise.
20077
20078 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20079
20080         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20081         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20082
20083 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20084
20085         [BZ #12067]
20086         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20087         trying to locate the ELF header.
20088
20089 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20090
20091         [BZ #11611]
20092         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20093         Mask out sign-bit copies when constructing f_fsid.
20094
20095 2010-09-24  Petr Baudis <pasky@suse.cz>
20096
20097         * debug/stack_chk_fail_local.c: Add missing licence exception.
20098         * debug/warning-nop.c: Likewise.
20099
20100 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20101
20102         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20103         implementing getdents64 using getdents syscall, set d_type if
20104         __ASSUME_GETDENTS32_D_TYPE.
20105
20106 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20107
20108         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20109         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20110
20111 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20112
20113         [BZ #12037]
20114         * posix/unistd.h: Undo change of feature selection for ftruncate from
20115         2010-01-11.
20116
20117 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20118
20119         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20120         detection.
20121
20122 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20123
20124         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20125         fanotify_mark.
20126         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20127
20128 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20129
20130         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20131         variables after CHECK_SP call.
20132         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20133
20134 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20135             Ulrich Drepper  <drepper@redhat.com>
20136
20137         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20138         re-relocationg ld.so.
20139         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20140         _dl_init_paths call.
20141         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20142         here anymore.
20143
20144 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20145
20146         * resolv/res_init.c (__res_vinit): Count the default server we added.
20147
20148 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20149             Ulrich Drepper  <drepper@redhat.com>
20150
20151         [BZ #11968]
20152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20153         (____longjmp_chk): Use %ebx for saving value across system call.
20154         Add unwind info.
20155
20156 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20157
20158         * manual/Makefile: Don't mix pattern rules with normal rules.
20159
20160 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20161
20162         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20163         operation.
20164         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20165         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20166         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20167         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20168         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20169         Likewise.
20170
20171 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20172
20173         [BZ #11979]
20174         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20175         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20176
20177 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20178
20179         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20180         * sysdeps/x86_64/addmul_1.S: Likewise.
20181         * sysdeps/x86_64/lshift.S: Likewise.
20182         * sysdeps/x86_64/mul_1.S: Likewise.
20183         * sysdeps/x86_64/rshift.S: Likewise.
20184         * sysdeps/x86_64/sub_n.S: Likewise.
20185         * sysdeps/x86_64/submul_1.S: Likewise.
20186
20187 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20188
20189         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20190         Define __sched_param instead of SCHED_* and sched_param when
20191         <bits/sched.h> is included with __need_schedparam defined.
20192         * bits/sched.h [__need_schedparam]
20193         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20194         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20195         (__defined_schedparam): Define to 1.
20196         (__sched_param): New structure, identical to sched_param.
20197         (__need_schedparam): Undefine.
20198
20199 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20200
20201         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20202         (epoll_create1): Declare.
20203
20204         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20205
20206 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20207
20208         [BZ #7066]
20209         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20210         shifting retval into place.
20211
20212 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20213
20214         * nis/rpcsvc/nis.h: Update copyright notice.
20215         * nis/rpcsvc/nis.x: Likewise.
20216         * nis/rpcsvc/nis_callback.h: Likewise.
20217         * nis/rpcsvc/nis_callback.x: Likewise.
20218         * nis/rpcsvc/nis_object.x: Likewise.
20219         * nis/rpcsvc/nis_tags.h: Likewise.
20220         * nis/rpcsvc/yp.h: Likewise.
20221         * nis/rpcsvc/yp.x: Likewise.
20222         * nis/rpcsvc/ypupd.h: Likewise.
20223         * nis/yp_xdr.c: Likewise.
20224         * nis/ypupdate_xdr.c: Likewise.
20225
20226         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20227         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20228         (pmap_getport): Use __libc_rpc_getport.
20229         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20230         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20231         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20232
20233 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20234
20235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20236         fanotify_mark.
20237
20238 2010-08-27  Roland McGrath  <roland@redhat.com>
20239
20240         * sysdeps/i386/i686/multiarch/Makefile
20241         (CFLAGS-varshift.c): New variable.
20242
20243 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20244
20245         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20246         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20247
20248         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20249
20250         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20251
20252 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20253
20254         * sysdeps/x86_64/strlen.S: Unroll the loop.
20255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20256         strlen-sse2 strlen-sse2-bsf.
20257         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20258         __strlen_no_bsf if bit_Slow_BSF is set.
20259         (__strlen_sse42): Removed.
20260         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20261         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20262
20263 2010-08-25  Roland McGrath  <roland@redhat.com>
20264
20265         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20266         * sysdeps/x86_64/multiarch/varshift.c: New file.
20267         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20268         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20269         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20270         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20271
20272 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20273
20274         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20275         strlen-sse2 strlen-sse2-bsf.
20276         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20277         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20278         (__strlen_sse2): Removed.
20279         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20280         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20282         bit_Slow_BSF for Atom.
20283         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20284         (index_Slow_BSF): Define.
20285         (HAS_SLOW_BSF): Define.
20286
20287 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20288
20289         [BZ #10851]
20290         * resolv/res_init.c (__res_vinit): When no server address at all
20291         is given default to loopback.
20292
20293 2010-08-24  Roland McGrath  <roland@redhat.com>
20294
20295         * configure.in: Remove config-name.h generation.
20296         * configure: Regenerated.
20297         * config-name.in: File removed.
20298         * scripts/config-uname.sh: New file.
20299         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20300         ($(objdir)config-name.h): New target.
20301
20302         * sunrpc/rpc_parse.h: Avoid nested comment.
20303
20304 2010-08-24  Richard Henderson  <rth@redhat.com>
20305             Ulrich Drepper  <drepper@redhat.com>
20306             H.J. Lu  <hongjiu.lu@intel.com>
20307
20308         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20309         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20310         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20311         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20312         _mm_alignr_epi8 with _mm_loadu_si128.
20313         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20314         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20315         (__m128i_shift_right): Removed.
20316         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20317         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20318         * sysdeps/x86_64/multiarch/varshift.h: New file.
20319         * sysdeps/x86_64/multiarch/varshift.S: New file.
20320
20321 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20322
20323         * configure.in: Move assembler checks to before sysdep dir checking.
20324
20325 2010-08-20  Petr Baudis  <pasky@suse.cz>
20326
20327         * LICENSES: Sync the sunrpc license.
20328
20329 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20330
20331         * sunrpc/auth_des.c: Update copyright notice once again.
20332         * sunrpc/auth_none.c: Likewise.
20333         * sunrpc/auth_unix.c: Likewise.
20334         * sunrpc/authdes_prot.c: Likewise.
20335         * sunrpc/authuxprot.c: Likewise.
20336         * sunrpc/bindrsvprt.c: Likewise.
20337         * sunrpc/clnt_gen.c: Likewise.
20338         * sunrpc/clnt_perr.c: Likewise.
20339         * sunrpc/clnt_raw.c: Likewise.
20340         * sunrpc/clnt_simp.c: Likewise.
20341         * sunrpc/clnt_tcp.c: Likewise.
20342         * sunrpc/clnt_udp.c: Likewise.
20343         * sunrpc/clnt_unix.c: Likewise.
20344         * sunrpc/des_crypt.c: Likewise.
20345         * sunrpc/des_soft.c: Likewise.
20346         * sunrpc/get_myaddr.c: Likewise.
20347         * sunrpc/getrpcport.c: Likewise.
20348         * sunrpc/key_call.c: Likewise.
20349         * sunrpc/key_prot.c: Likewise.
20350         * sunrpc/openchild.c: Likewise.
20351         * sunrpc/pm_getmaps.c: Likewise.
20352         * sunrpc/pm_getport.c: Likewise.
20353         * sunrpc/pmap_clnt.c: Likewise.
20354         * sunrpc/pmap_prot.c: Likewise.
20355         * sunrpc/pmap_prot2.c: Likewise.
20356         * sunrpc/pmap_rmt.c: Likewise.
20357         * sunrpc/rpc/auth.h: Likewise.
20358         * sunrpc/rpc/auth_unix.h: Likewise.
20359         * sunrpc/rpc/clnt.h: Likewise.
20360         * sunrpc/rpc/des_crypt.h: Likewise.
20361         * sunrpc/rpc/key_prot.h: Likewise.
20362         * sunrpc/rpc/netdb.h: Likewise.
20363         * sunrpc/rpc/pmap_clnt.h: Likewise.
20364         * sunrpc/rpc/pmap_prot.h: Likewise.
20365         * sunrpc/rpc/pmap_rmt.h: Likewise.
20366         * sunrpc/rpc/rpc.h: Likewise.
20367         * sunrpc/rpc/rpc_des.h: Likewise.
20368         * sunrpc/rpc/rpc_msg.h: Likewise.
20369         * sunrpc/rpc/svc.h: Likewise.
20370         * sunrpc/rpc/svc_auth.h: Likewise.
20371         * sunrpc/rpc/types.h: Likewise.
20372         * sunrpc/rpc/xdr.h: Likewise.
20373         * sunrpc/rpc_clntout.c: Likewise.
20374         * sunrpc/rpc_cmsg.c: Likewise.
20375         * sunrpc/rpc_common.c: Likewise.
20376         * sunrpc/rpc_cout.c: Likewise.
20377         * sunrpc/rpc_dtable.c: Likewise.
20378         * sunrpc/rpc_hout.c: Likewise.
20379         * sunrpc/rpc_main.c: Likewise.
20380         * sunrpc/rpc_parse.c: Likewise.
20381         * sunrpc/rpc_parse.h: Likewise.
20382         * sunrpc/rpc_prot.c: Likewise.
20383         * sunrpc/rpc_sample.c: Likewise.
20384         * sunrpc/rpc_scan.c: Likewise.
20385         * sunrpc/rpc_scan.h: Likewise.
20386         * sunrpc/rpc_svcout.c: Likewise.
20387         * sunrpc/rpc_tblout.c: Likewise.
20388         * sunrpc/rpc_util.c: Likewise.
20389         * sunrpc/rpc_util.h: Likewise.
20390         * sunrpc/rpcinfo.c: Likewise.
20391         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20392         * sunrpc/rpcsvc/key_prot.x: Likewise.
20393         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20394         * sunrpc/rpcsvc/mount.x: Likewise.
20395         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20396         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20397         * sunrpc/rpcsvc/rex.x: Likewise.
20398         * sunrpc/rpcsvc/rstat.x: Likewise.
20399         * sunrpc/rpcsvc/rusers.x: Likewise.
20400         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20401         * sunrpc/rpcsvc/spray.x: Likewise.
20402         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20403         * sunrpc/rtime.c: Likewise.
20404         * sunrpc/svc.c: Likewise.
20405         * sunrpc/svc_auth.c: Likewise.
20406         * sunrpc/svc_authux.c: Likewise.
20407         * sunrpc/svc_raw.c: Likewise.
20408         * sunrpc/svc_run.c: Likewise.
20409         * sunrpc/svc_simple.c: Likewise.
20410         * sunrpc/svc_tcp.c: Likewise.
20411         * sunrpc/svc_udp.c: Likewise.
20412         * sunrpc/svc_unix.c: Likewise.
20413         * sunrpc/svcauth_des.c: Likewise.
20414         * sunrpc/xcrypt.c: Likewise.
20415         * sunrpc/xdr.c: Likewise.
20416         * sunrpc/xdr_array.c: Likewise.
20417         * sunrpc/xdr_float.c: Likewise.
20418         * sunrpc/xdr_mem.c: Likewise.
20419         * sunrpc/xdr_rec.c: Likewise.
20420         * sunrpc/xdr_ref.c: Likewise.
20421         * sunrpc/xdr_sizeof.c: Likewise.
20422         * sunrpc/xdr_stdio.c: Likewise.
20423
20424         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20425         handling.
20426
20427 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20428
20429         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20430
20431 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20432
20433         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20434         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20435         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20436         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20437         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20438         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20439         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20440         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20441         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20442         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20443         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20444         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20445         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20446         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20447
20448 2010-07-26  Anton Blanchard  <anton@samba.org>
20449
20450         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20451         * malloc/arena.c (heap_trim): Likewise.
20452
20453 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20454
20455         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20456         here.  Not...
20457         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20458         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20459
20460 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20461
20462         * sysdeps/i386/elf/Makefile: New file.
20463
20464 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20465
20466         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20467         from fanotify_init.
20468         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20469         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20470
20471 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20472
20473         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20474         of strncasecmp_l.
20475         * sysdeps/multiarch/strcmp.S: Likewise.
20476
20477 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20478
20479         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20480         strncase_l-nonascii.
20481         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20482         Add strncase_l-ssse3.
20483         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20484         * sysdeps/x86_64/strcmp.S: Likewise.
20485         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20486         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20487         * sysdeps/x86_64/strncase.S: New file.
20488         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20489         * sysdeps/x86_64/strncase_l.S: New file.
20490         * string/Makefile (strop-tests): Add strncasecmp.
20491         * string/test-strncasecmp.c: New file.
20492
20493         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20494         warning.
20495
20496         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20497         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20498
20499 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20500
20501         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20502
20503 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20504
20505         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20506         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20507         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20508
20509 2010-05-01  Alan Modra  <amodra@gmail.com>
20510
20511         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20512         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20513         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20514         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20515         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20516         tidying.  Don't tail-call __sigjmp_save for static lib.
20517         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20518         save location.
20519         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20520         (CALL_MCOUNT): Add eh info, and nop after bl.
20521         (TAIL_CALL_SYSCALL_ERROR): New macro.
20522         (PSEUDO_RET): Use it.
20523         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20524         Correct save location of integer regs and cr.
20525         (_dl_profile_resolve): Correct cr save location.  Delete nops
20526         after bl when SHARED.  Reduce cfi size a little by better
20527         placement of cfi directives.
20528         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20529         make a stack frame.  Instead use parm save area as a temp.
20530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20531         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20533         Don't make a stack frame for parent, use parm save area.
20534         Increase child stack frame to 112 bytes.  Don't save unused reg,
20535         and adjust reg usage.  Set up cfi on error recovery and
20536         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20538         (__makecontext): Add dummy nop after jump to exit.
20539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20540         Use correct parm save area and cr save, reduce stack frame.
20541         Correct cfi for possible PSEUDO_RET frame setup.
20542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20543         Branch to local label emitted by PSEUDO_RET rather than
20544         __syscall_error.
20545
20546 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20547
20548         [BZ #11904]
20549         * locale/programs/locale.c (print_assignment): New function.
20550         (show_locale_vars): Use it.
20551
20552 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20553
20554         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20555         field.
20556         (struct statfs64): Likewise.
20557         (_STATFS_F_FLAGS): Define.
20558         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20559         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20560         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20561         (ST_VALID): Define locally.
20562         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20563         __statvfs_getflags, use the provided value.
20564         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20565         __ASSUME_STATFS_F_FLAGS.
20566
20567         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20568
20569         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20570         Add sys/fanotify.h.
20571         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20572         fanotify_mask for GLIBC_2.13.
20573         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20574         fanotify_init and fanotify_mark.
20575         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20576         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20577
20578         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20579         Add prlimit.
20580         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20581         prlimit64 for GLIBC_2.13.
20582         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20583         prlimit64.
20584         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20585         syscall.
20586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20587         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20588         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20589         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20590         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20591         add prlimit alias.
20592         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20593
20594         [BZ #11903]
20595         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20596         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20597
20598         * nss/Makefile: Add rules to build and run tst-nss-test1.
20599         * shlib-versions: Add entry for libnss_test1.
20600         * nss/nss_test1.c: New file.
20601         * nss/tst-nss-test1.c: New file.
20602
20603         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20604         (__nss_configure_lookup): Set appropriate entry in
20605         __nss_configure_lookup to true.
20606         * nss/nsswitch.h: Define enum with indeces of databases in
20607         databases and __nss_database_custom arrays.  Declare
20608         __nss_database_custom.
20609         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20610         to avoid using nscd when custom rules are installed.
20611         * nss/getXXbyYY_r.c: Likewise.
20612         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20613
20614         * nss/nss_files/files-parse.c: Whitespace fixes.
20615
20616 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20617
20618         [BZ #11883]
20619         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20620         * posix/fnmatch_loop.c: Likewise.
20621
20622 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20623
20624         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20625         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20626         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20627         * Versions.def [GLIBC_2.13]: Add.
20628
20629 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20630
20631         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20632         Also fail if tpwd after pwuid call is NULL.
20633
20634 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20635
20636         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20637         when converting to ms.
20638
20639 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20640
20641         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20642         EOPNOTSUPP errors with ENOTTY.
20643         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20644         EOPNOTSUPP errors with ENOTTY.
20645
20646 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20647
20648         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20649         Add strcasecmp_l-ssse3.
20650         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20651         strcasecmp.
20652         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20653         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20654         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20655
20656 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20657
20658         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20659
20660         * string/Makefile (strop-tests): Add strcasecmp.
20661         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20662         strcasecmp_l-nonascii.
20663         (gen-as-const-headers): Add locale-defines.sym.
20664         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20665         * sysdeps/x86_64/strcasecmp.S: New file.
20666         * sysdeps/x86_64/strcasecmp_l.S: New file.
20667         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20668         * sysdeps/x86_64/locale-defines.sym: New file.
20669         * string/test-strcasecmp.c: New file.
20670
20671         * string/test-strcasestr.c: Test both ends of the range of characters.
20672         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20673
20674 2010-07-29  Roland McGrath  <roland@redhat.com>
20675
20676         [BZ #11856]
20677         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20678
20679 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20680
20681         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20682         for ld.so.
20683
20684 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20685
20686         * manual/memory.texi (Malloc Tunable Parameters): Document
20687         M_PERTURB.
20688
20689 2010-07-26  Roland McGrath  <roland@redhat.com>
20690
20691         [BZ #11840]
20692         * configure.in (-fgnu89-inline check): Set and substitute
20693         gnu89_inline, not libc_cv_gnu89_inline.
20694         * configure: Regenerated.
20695         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20696
20697 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20698
20699         * string/test-strnlen.c: New file.
20700         * string/Makefile (strop-tests): Add strnlen.
20701         * string/tester.c (test_strnlen): Add a few more test cases.
20702         * string/tst-strlen.c: Better error reporting.
20703
20704         * sysdeps/x86_64/strnlen.S: New file.
20705
20706 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20707
20708         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20709         lower-latency instructions.
20710
20711 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20712
20713         * string/test-strcasestr.c: New file.
20714         * string/test-strstr.c: New file.
20715         * string/Makefile (strop-tests): Add strstr and strcasestr.
20716         * string/str-two-way.h: Don't undefine MAX.
20717         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20718
20719 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20720
20721         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20722         strcasestr-nonascii.
20723         (CFLAGS-strcasestr-nonascii.c): Define.
20724         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20725         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20726         Remove unused attribute.
20727
20728 2010-07-20  Roland McGrath  <roland@redhat.com>
20729
20730         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20731         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20732         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20733         like LD_HWCAP_MASK can disable hwcaps.
20734
20735 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20736
20737         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20738
20739 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20740
20741         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20742         call in strcasestr.
20743         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20744         __strcasestr_sse42_nonascii.
20745         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20746         strcasestr-nonascii.c.
20747         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20748
20749 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20750
20751         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20752         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20753         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20754         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20755
20756 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20757
20758         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20759         fcntl.
20760
20761 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20762
20763         [BZ #11577]
20764         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20765         dl_signal_cerror.
20766
20767 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20768
20769         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20770         _PC_PIPE_BUF using F_GETPIPE_SZ.
20771
20772 2010-07-05  Roland McGrath  <roland@redhat.com>
20773
20774         * manual/arith.texi (Rounding Functions): Fix rint description
20775         implicit in round description.
20776
20777 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20778
20779         * elf/Makefile: Fix linking for a few tests to make recent linker
20780         happy.
20781
20782 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20783
20784         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20785         $(common-objpfx)libc_nonshared.a.
20786
20787 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20788
20789         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20790         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20791         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20792         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20793         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20794         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20795         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20796         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20811         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20812         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20813         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20814         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20815         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20816         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20817         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20818         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20819         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20820         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20821         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20822         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20837
20838 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20839
20840         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20841         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20842         * string/memmove.c (memmove): Renamed to ...
20843         (MEMMOVE): ...this.  Default to memmove.
20844         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20845         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20846         (END_CHK): Define.
20847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20848         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20849         mempcpy-ssse3-back memmove-ssse3-back.
20850         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20851         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20852         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20853         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20854         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20855         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20856         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20857         * sysdeps/x86_64/multiarch/memmove.c: New file.
20858         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20859         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20860         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20861         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20862         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20863         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20864         Define.
20865         (index_Fast_Copy_Backward): Define.
20866         (HAS_ARCH_FEATURE): Define.
20867         (HAS_FAST_REP_STRING): Define.
20868         (HAS_FAST_COPY_BACKWARD): Define.
20869
20870 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20871
20872         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20873         Restore proper fallback handling.
20874
20875 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20876
20877         [BZ #11701]
20878         * posix/group_member.c (__group_member): Correct checking loop.
20879
20880         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20881         OOM in getpwuid_r correctly.  Return error number when the caller
20882         should return, otherwise -1.
20883         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20884         call returning > 0 value.
20885         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20886
20887 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20888
20889         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20890         libc_nonshared.a from targets in modules-names.
20891
20892 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20893
20894         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20895         requires it.
20896
20897 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20898
20899         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20900         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20901         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20902         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20903
20904 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20905
20906         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20907
20908 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20909
20910         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20911         and F_GETPIPE_SZ.
20912         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20913         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20914         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20916         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20917         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20918
20919 2010-06-14  Roland McGrath  <roland@redhat.com>
20920
20921         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20922
20923 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20924
20925         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20926         __REDIRECT followed by __THROW.
20927         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20928         * posix/getopt.h (getopt): Likewise.
20929
20930 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20931
20932         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20933         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20934         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20935         in AT_FLAGS.
20936         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20937         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20938
20939 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20940
20941         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20942
20943 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20944
20945         [BZ #11640]
20946         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20947         Properly check family and model.
20948
20949 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20950
20951         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20952
20953 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20954
20955         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20956
20957 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20958
20959         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20960         symbol reference.
20961
20962 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20963
20964         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20965         symbol reference.
20966
20967 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20968
20969         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20970         and internal_recvmmsg.
20971         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20972         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20973         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20974         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20975
20976         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20977         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20978         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20979
20980 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20981
20982         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20983
20984 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20985
20986         POWER7 optimizations.
20987         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20988         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20989
20990 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20991
20992         * version.h: Update for 2.13 development version.
20993
20994 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20995
20996         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20997         exceptions.  Return 0.
20998
20999 2010-05-07  Roland McGrath  <roland@redhat.com>
21000
21001         * elf/ldconfig.c (main): Add a const.
21002
21003 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21004
21005         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21006         (args_options): Add no-idn option.
21007         (ahosts_keys_int): Add idn_flags to ai_flags.
21008         (parse_option): Handle 'i' option to clear idn_flags.
21009
21010         * malloc/malloc.c (_int_free): Possible race in the most recently
21011         added check.  Only act on the data if no current modification
21012         happened.
21013
21014 See ChangeLog.17 for earlier changes.