iconv: Fix -c
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
2
3         [BZ #14672]
4         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5
6 2012-11-16  David S. Miller  <davem@davemloft.net>
7
8         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
9         smaller than LDBL_EPSILON/2.0L, just return xm1.
10
11 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * elf/tst-array1.c (init): Set constructor priority to 1000.
14         (fini): Set destructor priority to 1000.
15         * elf/tst-array2dep.c: Likewise.
16
17 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18
19         [BZ #11741]
20         * libio/fileops.c (_IO_new_file_write): Correctly return error.
21         (_IO_new_file_xsputn): Also return EOF if none of the input
22         data was written when overflow failed.
23         * libio/iopadn.c (_IO_padn): Likewise.
24         * libio/iowpadn.c (_IO_wpadn): Likewise.
25         * stdio-common/tst-put-error.c: Add copyright notice.
26         (do_test): Add case for printing padded string.
27         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
28         _IO_padn returned error.
29         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
30         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
31         return EOF.
32
33 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
34
35         * libio/libioP.h: Add comment note that the references to C++
36         bits are now obsolete.
37
38 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39
40         * math/libm-test.inc (check_complex): Use asprintf.
41
42 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
43
44         * debug/pcprofiledump.c (print_version): Update copyright year.
45         * malloc/memusagestat.c (print_version): Likewise.
46
47 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
48
49         [BZ #14831]
50         * elf/Makefile (tests): Add tst-audit8.
51         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
52         ($(objpfx)tst-audit8.out): New target.
53         (tst-audit8-ENV): New variable.
54         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55         audit if l_reloc_result is NULL.
56         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
57         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
58         * elf/tst-audit8.c: New file.
59
60 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61
62         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
63         * misc/Makefile (CFLAGS-select.c): Define.
64         * posix/Makefile (CFLAGS-pause.c): Define.
65
66 2012-11-13  David S. Miller  <davem@davemloft.net>
67
68         * crypt/Makefile: Move test targets after toplevel Rules
69         inclusion.  Grab any necessary sysdep routines when linking.
70         * crypt/md5.c (md5_process_block): Remove define, we will always
71         name it __md5_process_block.
72         (md5_finish_ctx): Update md5_process_block call.
73         (md5_stream): Likewise.
74         (md5_process_bytes): Likewise.
75         (md5_process_block): Rename to __md5_process_block and move to ...
76         * crypt/md5-block.c: ... here.
77         * crypt/sha256.c (sha256_process_block): Move to ...
78         * crypt/sha256-block.c: ... here.
79         * crypt/sha512.c (sha512_process_block): Move to ...
80         * crypt/sha512-block.c: ... here.
81         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
82         path.
83         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
84         * sysdeps/sparc/sparc64/multiarch/Makefile
85         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
86         crypt subdir.
87         (localedef-aux): Add md5 crypto assembler when in locale subdir.
88         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
89         multiarch changes.
90         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
91         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
92         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
93         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
94         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
95         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
96         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
97         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
98         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
99         file.
100         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
101         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
102         file.
103         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
104
105 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
106
107         * timezone/tzselect.ksh: Update from tzcode git revision
108         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
109         * timezone/zdump.c: Likewise.
110         * timezone/zic.c: Likewise.
111         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
112         in TZVERSION setting, not $(PKGVERSION).
113         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
114         REPORT_BUGS_TO settings.
115
116         [BZ #14838]
117         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
118         macro.
119
120 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
121
122         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
123         detection to immediately after _FP_ROUND().
124         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
125         bits are 0.
126
127 2012-11-11  David S. Miller  <davem@davemloft.net>
128
129         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
130         inttypes.h
131         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
132         __close rather than their public counterparts.
133
134 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
135
136         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
137         file.
138         [UNIX98] (sem_timedwait): Do not expect.
139         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
140         [XPG4 || UNIX98] (sockatmark): Do not expect.
141         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
142         (clock_getcpuclockid): Do not expect.
143         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
144         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
145         Do not expect.
146         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
147         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
148         [UNIX98] (vwscanf): Likewise.
149         [UNIX98] (vswscanf): Likewise.
150
151 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
152
153         * timezone/version.h: Remove file.
154         * timezone/README: Do not refer to version.h.
155         * timezone/Makefile ($(objpfx)zic.o): New dependency on
156         $(objpfx)version.h.
157         ($(objpfx)zdump.o): Likewise.
158         ($(objpfx)version.h): New target.
159
160         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
161         2012i.
162         * timezone/README: Don't mention modification to tzselect.ksh.
163         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
164         work on unmodified tzselect.ksh.  Substitute version numbers in
165         tzselect.ksh.
166
167         * Makefile (format-me): Remove.
168         (INSTALL): Adjust indentation.  Use commands directly instead of
169         using $(format-me).
170
171         * aclocal.m4 (ACX_PKGVERSION): New macro.
172         (ACX_BUGURL): Likewise.
173         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
174         (PKGVERSION): New AC_DEFINE_UNQUOTED.
175         (REPORT_BUGS_TO): Likewise.
176         * configure: Regenerated.
177         * config.h.in (PKGVERSION): New macro.
178         (REPORT_BUGS_TO): Likewise.
179         * config.make.in (PKGVERSION): New variable.
180         (PKGVERSION_TEXI): Likewise.
181         (REPORT_BUGS_TO): Likewise.
182         (REPORT_BUGS_TEXI): Likewise.
183         * Makefile (format-me): Use -I$(common-objpfx)manual.
184         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
185         ($(common-objpfx)manual/%): New target.
186         (manual/%): Remove target.
187         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
188         (print_version): Use PKGVERSION.
189         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
190         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
191         and REPORT_BUGS_TO.
192         ($(objpfx)xtrace): Likewise.
193         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
194         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
195         (print_version): Use PKGVERSION.
196         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
197         (do_version): Use PKGVERSION.
198         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
199         REPORT_BUGS_TO.
200         (common-ldd-rewrite): Likewise.
201         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
202         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
203         (print_version): Use PKGVERSION.
204         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
205         * elf/pldd.c (argp_program_bug_address): Remove variable.
206         (more_help): New function.
207         (argp): Use more_help.
208         (print_version): Use PKGVERSION.
209         * elf/sln.c (main): Use PKGVERSION.
210         (usage): Use REPORT_BUGS_TO.
211         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
212         (top level): Use PKGVERSION.
213         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
214         (print_version): Use PKGVERSION.
215         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
216         (print_version): Use PKGVERSION.
217         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
218         (print_version): Use PKGVERSION.
219         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
220         (print_version): Use PKGVERSION.
221         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
222         (print_version): Use PKGVERSION.
223         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
224         (print_version): Use PKGVERSION.
225         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
226         and BUGURL.
227         ($(objpfx)memusage): Likewise.
228         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
229         (do_version): Use PKGVERSION.
230         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
231         (print_version): Use PKGVERSION.
232         * malloc/mtrace.pl ($PACKAGE): Remove variable.
233         ($PKGVERSION): New variable.
234         ($REPORT_BUGS_TO): Likewise.
235         (usage): Use $REPORT_BUGS_TO.
236         (top level): Use $PKGVERSION.
237         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
238         ($(objpfx)pkgvers.texi): New rule.
239         ($(objpfx)stamp-pkgvers): Likewise.
240         * manual/install.texi: Include pkgvers.texi.
241         (--with-pkgversion): Document new configure option.
242         (--with-bugurl): Likewise.
243         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
244         than necessarily for this particular distribution.  Use
245         REPORT_BUGS_TO for where to report bugs.
246         * INSTALL: Regenerated.
247         * manual/libc.texinfo: Include pkgvers.texi.
248         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
249         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
250         (print_version): Use PKGVERSION.
251         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
252         (print_version): Use PKGVERSION.
253         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
254         (print_version): Use PKGVERSION.
255         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
256         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
257         macro.
258         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
259         (print_version): Use PKGVERSION.
260         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
261         (print_version): Use PKGVERSION.
262         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
263         and PKGVERSION.
264
265         * timezone/checktab.awk: Update from tzcode 2012i.
266         * timezone/ialloc.c: Likewise.
267         * timezone/private.h: Likewise.
268         * timezone/scheck.c: Likewise.
269         * timezone/tzfile.h: Likewise.
270         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
271         (TZVERSION): Hardcode tzcode version number.
272         * timezone/zdump.c: Update from tzcode 2012i.
273         * timezone/zic.c: Likewise.
274         * timezone/version.h: New file.
275         * timezone/README: Describe version.h.  Update upstream location.
276
277         [BZ #14824]
278         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
279         (mktemp): Enable declaration.
280         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
281         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
282         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
283         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
284         Likewise.
285         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
286         Likewise.
287         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
288         Likewise.
289         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
290         Likewise.
291         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
292         Likewise.
293         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
294         Likewise.
295
296         [BZ #14821]
297         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
298         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
299         for copies of such integer values.
300         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
301         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
302
303 2012-11-09  Andreas Jaeger  <aj@suse.de>
304
305         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
306         definitions and declarations that are provided by
307         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
308
309 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
310
311         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
312         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
313         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
314         definition.
315
316 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
317
318         * elf/elf.h: Update comment before AArch64 relocations.
319
320 2012-11-07  David S. Miller  <davem@davemloft.net>
321
322         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
323         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
324         (__start_context): Declare.
325         (__makecontext_ret): Delete.
326         (__makecontext): Hook up __start_context instead of
327         __makecontext_ret.
328         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
329         (sysdep_routines): Add __start_context when in stdlib.
330
331 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
332
333         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
334         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
335         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
336         hardcoded "nm".
337         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
338         (READELF): New variable.  Use it instead of hardcoded "readelf".
339
340 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
341
342         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
343         * sysdeps/x86/Makefile: Here.
344         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
345         * sysdeps/x86/tst-xmmymm.sh: This.
346
347 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
348
349         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
350         expectations.
351         [UNIX98] (pthread_barrier_t): Do not expect.
352         [UNIX98] (pthread_barrierattr_t): Likewise.
353         [UNIX98] (pthread_spinlock_t): Likewise.
354         [UNIX98] (pthread_barrier_destroy): Likewise.
355         [UNIX98] (pthread_barrier_init): Likewise.
356         [UNIX98] (pthread_barrier_wait): Likewise.
357         [UNIX98] (pthread_barrierattr_destroy): Likewise.
358         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
359         [UNIX98] (pthread_barrierattr_init): Likewise.
360         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
361         [UNIX98] (pthread_getcpuclockid): Likewise.
362         [UNIX98] (pthread_mutex_timedlock): Likewise.
363         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
364         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
365         [UNIX98] (pthread_sigmask): Likewise.
366         [UNIX98] (pthread_spin_destroy): Likewise.
367         [UNIX98] (pthread_spin_init): Likewise.
368         [UNIX98] (pthread_spin_lock): Likewise.
369         [UNIX98] (pthread_spin_trylock): Likewise.
370         [UNIX98] (pthread_spin_unlock): Likewise.
371         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
372         Do not expect.
373         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
374         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
375         [XPG3 || XPG4] (pthread_cond_t): Likewise.
376         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
377         [XPG3 || XPG4] (pthread_key_t): Likewise.
378         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
379         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
380         [XPG3 || XPG4] (pthread_once_t): Likewise.
381         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
382         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
383         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
384         [XPG3 || XPG4] (pthread_t): Likewise.
385
386         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
387         not expect.
388         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
389
390         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
391         Change function return type to int.
392
393         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
394         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
395         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
396         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
397         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
398         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
399         [!POSIX] (posix_madvise): Likewise.
400         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
401         && !UNIX98].
402         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
403         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
404         (mode_t): Likewise.
405         (posix_mem_offset): Likewise.
406         (posix_typed_mem_get_info): Likewise.
407         (posix_typed_mem_open): Likewise.
408
409         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
410         Change condition to [XOPEN2K8].
411
412         * conform/conformtest.pl: Preprocess allow-header data with -x c
413         instead of from stdin.
414         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
415         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
416         [C99-based standards] (cerfc): Likewise.
417         [C99-based standards] (cexp2): Likewise.
418         [C99-based standards] (cexpm1): Likewise.
419         [C99-based standards] (clog10): Likewise.
420         [C99-based standards] (clog1p): Likewise.
421         [C99-based standards] (clog2): Likewise.
422         [C99-based standards] (clgamma): Likewise.
423         [C99-based standards] (ctgamma): Likewise.
424         [C99-based standards] (cerff): Likewise.
425         [C99-based standards] (cerfcf): Likewise.
426         [C99-based standards] (cexp2f): Likewise.
427         [C99-based standards] (cexpm1f): Likewise.
428         [C99-based standards] (clog10f): Likewise.
429         [C99-based standards] (clog1pf): Likewise.
430         [C99-based standards] (clog2f): Likewise.
431         [C99-based standards] (clgammaf): Likewise.
432         [C99-based standards] (ctgammaf): Likewise.
433         [C99-based standards] (cerfl): Likewise.
434         [C99-based standards] (cerfcl): Likewise.
435         [C99-based standards] (cexp2l): Likewise.
436         [C99-based standards] (cexpm1l): Likewise.
437         [C99-based standards] (clog10l): Likewise.
438         [C99-based standards] (clog1pl): Likewise.
439         [C99-based standards] (clog2l): Likewise.
440         [C99-based standards] (clgammal): Likewise.
441         [C99-based standards] (ctgammal): Likewise.
442         * conform/data/inttypes.h-data [C99-based standards]: Include
443         stdint.h-data.  Remove all expectations for stdint.h contents.
444         [C99-based standards] (PRI*): Do not allow.
445         [C99-based standards] (SCN*): Likewise.
446         [C99-based standards] (*_t): Likewise.
447         [C99-based-standards] (PRId8): Expect macro.
448         [C99-based-standards] (PRIi8): Likewise.
449         [C99-based-standards] (PRIo8): Likewise.
450         [C99-based-standards] (PRIu8): Likewise.
451         [C99-based-standards] (PRIx8): Likewise.
452         [C99-based-standards] (PRIX8): Likewise.
453         [C99-based-standards] (SCNd8): Likewise.
454         [C99-based-standards] (SCNi8): Likewise.
455         [C99-based-standards] (SCNo8): Likewise.
456         [C99-based-standards] (SCNu8): Likewise.
457         [C99-based-standards] (SCNx8): Likewise.
458         [C99-based-standards] (PRIdLEAST8): Likewise.
459         [C99-based-standards] (PRIiLEAST8): Likewise.
460         [C99-based-standards] (PRIoLEAST8): Likewise.
461         [C99-based-standards] (PRIuLEAST8): Likewise.
462         [C99-based-standards] (PRIxLEAST8): Likewise.
463         [C99-based-standards] (PRIXLEAST8): Likewise.
464         [C99-based-standards] (SCNdLEAST8): Likewise.
465         [C99-based-standards] (SCNiLEAST8): Likewise.
466         [C99-based-standards] (SCNoLEAST8): Likewise.
467         [C99-based-standards] (SCNuLEAST8): Likewise.
468         [C99-based-standards] (SCNxLEAST8): Likewise.
469         [C99-based-standards] (PRIdFAST8): Likewise.
470         [C99-based-standards] (PRIiFAST8): Likewise.
471         [C99-based-standards] (PRIoFAST8): Likewise.
472         [C99-based-standards] (PRIuFAST8): Likewise.
473         [C99-based-standards] (PRIxFAST8): Likewise.
474         [C99-based-standards] (PRIXFAST8): Likewise.
475         [C99-based-standards] (SCNdFAST8): Likewise.
476         [C99-based-standards] (SCNiFAST8): Likewise.
477         [C99-based-standards] (SCNoFAST8): Likewise.
478         [C99-based-standards] (SCNuFAST8): Likewise.
479         [C99-based-standards] (SCNxFAST8): Likewise.
480         [C99-based-standards] (PRId16): Likewise.
481         [C99-based-standards] (PRIi16): Likewise.
482         [C99-based-standards] (PRIo16): Likewise.
483         [C99-based-standards] (PRIu16): Likewise.
484         [C99-based-standards] (PRIx16): Likewise.
485         [C99-based-standards] (PRIX16): Likewise.
486         [C99-based-standards] (SCNd16): Likewise.
487         [C99-based-standards] (SCNi16): Likewise.
488         [C99-based-standards] (SCNo16): Likewise.
489         [C99-based-standards] (SCNu16): Likewise.
490         [C99-based-standards] (SCNx16): Likewise.
491         [C99-based-standards] (PRIdLEAST16): Likewise.
492         [C99-based-standards] (PRIiLEAST16): Likewise.
493         [C99-based-standards] (PRIoLEAST16): Likewise.
494         [C99-based-standards] (PRIuLEAST16): Likewise.
495         [C99-based-standards] (PRIxLEAST16): Likewise.
496         [C99-based-standards] (PRIXLEAST16): Likewise.
497         [C99-based-standards] (SCNdLEAST16): Likewise.
498         [C99-based-standards] (SCNiLEAST16): Likewise.
499         [C99-based-standards] (SCNoLEAST16): Likewise.
500         [C99-based-standards] (SCNuLEAST16): Likewise.
501         [C99-based-standards] (SCNxLEAST16): Likewise.
502         [C99-based-standards] (PRIdFAST16): Likewise.
503         [C99-based-standards] (PRIiFAST16): Likewise.
504         [C99-based-standards] (PRIoFAST16): Likewise.
505         [C99-based-standards] (PRIuFAST16): Likewise.
506         [C99-based-standards] (PRIxFAST16): Likewise.
507         [C99-based-standards] (PRIXFAST16): Likewise.
508         [C99-based-standards] (SCNdFAST16): Likewise.
509         [C99-based-standards] (SCNiFAST16): Likewise.
510         [C99-based-standards] (SCNoFAST16): Likewise.
511         [C99-based-standards] (SCNuFAST16): Likewise.
512         [C99-based-standards] (SCNxFAST16): Likewise.
513         [C99-based-standards] (PRId32): Likewise.
514         [C99-based-standards] (PRIi32): Likewise.
515         [C99-based-standards] (PRIo32): Likewise.
516         [C99-based-standards] (PRIu32): Likewise.
517         [C99-based-standards] (PRIx32): Likewise.
518         [C99-based-standards] (PRIX32): Likewise.
519         [C99-based-standards] (SCNd32): Likewise.
520         [C99-based-standards] (SCNi32): Likewise.
521         [C99-based-standards] (SCNo32): Likewise.
522         [C99-based-standards] (SCNu32): Likewise.
523         [C99-based-standards] (SCNx32): Likewise.
524         [C99-based-standards] (PRIdLEAST32): Likewise.
525         [C99-based-standards] (PRIiLEAST32): Likewise.
526         [C99-based-standards] (PRIoLEAST32): Likewise.
527         [C99-based-standards] (PRIuLEAST32): Likewise.
528         [C99-based-standards] (PRIxLEAST32): Likewise.
529         [C99-based-standards] (PRIXLEAST32): Likewise.
530         [C99-based-standards] (SCNdLEAST32): Likewise.
531         [C99-based-standards] (SCNiLEAST32): Likewise.
532         [C99-based-standards] (SCNoLEAST32): Likewise.
533         [C99-based-standards] (SCNuLEAST32): Likewise.
534         [C99-based-standards] (SCNxLEAST32): Likewise.
535         [C99-based-standards] (PRIdFAST32): Likewise.
536         [C99-based-standards] (PRIiFAST32): Likewise.
537         [C99-based-standards] (PRIoFAST32): Likewise.
538         [C99-based-standards] (PRIuFAST32): Likewise.
539         [C99-based-standards] (PRIxFAST32): Likewise.
540         [C99-based-standards] (PRIXFAST32): Likewise.
541         [C99-based-standards] (SCNdFAST32): Likewise.
542         [C99-based-standards] (SCNiFAST32): Likewise.
543         [C99-based-standards] (SCNoFAST32): Likewise.
544         [C99-based-standards] (SCNuFAST32): Likewise.
545         [C99-based-standards] (SCNxFAST32): Likewise.
546         [C99-based-standards] (PRId64): Likewise.
547         [C99-based-standards] (PRIi64): Likewise.
548         [C99-based-standards] (PRIo64): Likewise.
549         [C99-based-standards] (PRIu64): Likewise.
550         [C99-based-standards] (PRIx64): Likewise.
551         [C99-based-standards] (PRIX64): Likewise.
552         [C99-based-standards] (SCNd64): Likewise.
553         [C99-based-standards] (SCNi64): Likewise.
554         [C99-based-standards] (SCNo64): Likewise.
555         [C99-based-standards] (SCNu64): Likewise.
556         [C99-based-standards] (SCNx64): Likewise.
557         [C99-based-standards] (PRIdLEAST64): Likewise.
558         [C99-based-standards] (PRIiLEAST64): Likewise.
559         [C99-based-standards] (PRIoLEAST64): Likewise.
560         [C99-based-standards] (PRIuLEAST64): Likewise.
561         [C99-based-standards] (PRIxLEAST64): Likewise.
562         [C99-based-standards] (PRIXLEAST64): Likewise.
563         [C99-based-standards] (SCNdLEAST64): Likewise.
564         [C99-based-standards] (SCNiLEAST64): Likewise.
565         [C99-based-standards] (SCNoLEAST64): Likewise.
566         [C99-based-standards] (SCNuLEAST64): Likewise.
567         [C99-based-standards] (SCNxLEAST64): Likewise.
568         [C99-based-standards] (PRIdFAST64): Likewise.
569         [C99-based-standards] (PRIiFAST64): Likewise.
570         [C99-based-standards] (PRIoFAST64): Likewise.
571         [C99-based-standards] (PRIuFAST64): Likewise.
572         [C99-based-standards] (PRIxFAST64): Likewise.
573         [C99-based-standards] (PRIXFAST64): Likewise.
574         [C99-based-standards] (SCNdFAST64): Likewise.
575         [C99-based-standards] (SCNiFAST64): Likewise.
576         [C99-based-standards] (SCNoFAST64): Likewise.
577         [C99-based-standards] (SCNuFAST64): Likewise.
578         [C99-based-standards] (SCNxFAST64): Likewise.
579         [C99-based-standards] (PRIdMAX): Likewise.
580         [C99-based-standards] (PRIiMAX): Likewise.
581         [C99-based-standards] (PRIoMAX): Likewise.
582         [C99-based-standards] (PRIuMAX): Likewise.
583         [C99-based-standards] (PRIxMAX): Likewise.
584         [C99-based-standards] (PRIXMAX): Likewise.
585         [C99-based-standards] (SCNdMAX): Likewise.
586         [C99-based-standards] (SCNiMAX): Likewise.
587         [C99-based-standards] (SCNoMAX): Likewise.
588         [C99-based-standards] (SCNuMAX): Likewise.
589         [C99-based-standards] (SCNxMAX): Likewise.
590         [C99-based-standards] (PRIdPTR): Likewise.
591         [C99-based-standards] (PRIiPTR): Likewise.
592         [C99-based-standards] (PRIoPTR): Likewise.
593         [C99-based-standards] (PRIuPTR): Likewise.
594         [C99-based-standards] (PRIxPTR): Likewise.
595         [C99-based-standards] (PRIXPTR): Likewise.
596         [C99-based-standards] (SCNdPTR): Likewise.
597         [C99-based-standards] (SCNiPTR): Likewise.
598         [C99-based-standards] (SCNoPTR): Likewise.
599         [C99-based-standards] (SCNuPTR): Likewise.
600         [C99-based-standards] (SCNxPTR): Likewise.
601         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
602         allow.
603         * conform/data/stdint.h-data: Update comments to clarify
604         requirements.
605         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
606         type.
607         [C99-based standards] (INT8_MAX): Likewise.
608         [C99-based standards] (INT16_MIN): Likewise.
609         [C99-based standards] (INT16_MAX): Likewise.
610         [C99-based standards] (INT32_MIN): Likewise.
611         [C99-based standards] (INT32_MAX): Likewise.
612         [C99-based standards] (INT64_MIN): Likewise.
613         [C99-based standards] (INT64_MAX): Likewise.
614         [C99-based standards] (UINT8_MAX): Likewise.
615         [C99-based standards] (UINT16_MAX): Likewise.
616         [C99-based standards] (UINT32_MAX): Likewise.
617         [C99-based standards] (UINT64_MAX): Likewise.
618         [C99-based standards] (INT_LEAST8_MIN): Likewise.
619         [C99-based standards] (INT_LEAST8_MAX): Likewise.
620         [C99-based standards] (INT_LEAST16_MIN): Likewise.
621         [C99-based standards] (INT_LEAST16_MAX): Likewise.
622         [C99-based standards] (INT_LEAST32_MIN): Likewise.
623         [C99-based standards] (INT_LEAST32_MAX): Likewise.
624         [C99-based standards] (INT_LEAST64_MIN): Likewise.
625         [C99-based standards] (INT_LEAST64_MAX): Likewise.
626         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
627         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
628         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
629         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
630         [C99-based standards] (INT_FAST8_MIN): Likewise.
631         [C99-based standards] (INT_FAST8_MAX): Likewise.
632         [C99-based standards] (INT_FAST16_MIN): Likewise.
633         [C99-based standards] (INT_FAST16_MAX): Likewise.
634         [C99-based standards] (INT_FAST32_MIN): Likewise.
635         [C99-based standards] (INT_FAST32_MAX): Likewise.
636         [C99-based standards] (INT_FAST64_MIN): Likewise.
637         [C99-based standards] (INT_FAST64_MAX): Likewise.
638         [C99-based standards] (UINT_FAST8_MAX): Likewise.
639         [C99-based standards] (UINT_FAST16_MAX): Likewise.
640         [C99-based standards] (UINT_FAST32_MAX): Likewise.
641         [C99-based standards] (UINT_FAST64_MAX): Likewise.
642         [C99-based standards] (INTPTR_MIN): Likewise.
643         [C99-based standards] (INTPTR_MAX): Likewise.
644         [C99-based standards] (UINTPTR_MAX): Likewise.
645         [C99-based standards] (INTMAX_MIN): Likewise.
646         [C99-based standards] (INTMAX_MAX): Likewise.
647         [C99-based standards] (UINTMAX_MAX): Likewise.
648         [C99-based standards] (PTRDIFF_MIN): Likewise.
649         [C99-based standards] (PTRDIFF_MAX): Likewise.
650         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
651         [C99-based standards] (SIZE_MAX): Likewise.
652         [C99-based standards] (WCHAR_MAX): Likewise.
653         [C99-based standards] (WINT_MAX): Likewise.
654         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
655         constraint on value.
656         [C99-based standards] (WCHAR_MIN): Likewise.
657         [C99-based standards] (WINT_MIN): Likewise.
658         [C99-based standards] (*_t): Allow.
659         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
660         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
661         Include math.h-data and complex.h-data.  Remove all expectations
662         of math.h and complex.h contents.
663         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
664         at end of line.
665         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
666         (struct tm): Expect tag.
667         [C99-based-standards] (wcstof): Expect function.
668         [C99-based-standards] (wcstold): Likewise.
669         [C99-based-standards] (wcstoll): Likewise.
670         [C99-based-standards] (wcstoull): Likewise.
671         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
672         macro-int-constant.  Specify type.
673         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
674         constraint on value.
675         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
676         Specify type.
677         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
678         Specify value.
679         [ISO C standards]: Do not allow headers.
680         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
681         wcs[abcdefghijklmnopqrstuvwxyz]*.
682         [ISO C standards] (*_t): Do not allow.
683         * conform/data/wctype.h-data [C99-based standards] (iswblank):
684         Expect function.
685         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
686         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
687         Specify type.
688         [ISO C standards]: Do not allow headers.
689         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
690         is[abcdefghijklmnopqrstuvwxyz]*.
691         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
692         to[abcdefghijklmnopqrstuvwxyz]*.
693         [ISO C standards] (*_t): Do not allow.
694         * conform/data/stdalign.h-data: New file.
695         * conform/data/stdbool.h-data: Likewise.
696         * conform/data/stdnoreturn.h-data: Likewise.
697
698 2012-11-07  Andreas Jaeger  <aj@suse.de>
699
700         [BZ #14809]
701         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
702         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
703         guards are changed.  Only define if not yet defined, #undef back
704         after including linux/sysctl.h if defined here.
705
706 2012-11-07  Roland McGrath  <roland@hack.frob.com>
707
708         [BZ #14815]
709         * manual/filesys.texi (Directory Entries): Typo fix.
710         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
711
712 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
713
714         * elf/elf.h (EM_AARCH64): New macro.
715         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
716         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
717         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
718         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
719         (R_AARCH64_TLSDESC): Likewise.
720         (NT_ARM_TLS): Likewise.
721         (NT_ARM_HW_BREAK): Likewise.
722         (NT_ARM_HW_WATCH): Likewise.
723
724 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
725
726         [BZ #14811]
727         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
728         (__ieee754_powl): Saturate nonzero exponents with absolute value
729         below 0x1p-79 to +/- 0x1p-79.
730         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
731         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
732         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
733         nonzero exponents with absolute value below 0x1p-32 to +/-
734         0x1p-32.
735         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
736         (__ieee754_powl): Saturate nonzero exponents with absolute value
737         below 0x1p-79 to +/- 0x1p-79.
738         * math/libm-test.inc (pow_test): Add more tests.
739
740 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
741
742         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
743         _dl_s390_cap_flags with kernel. Increase string length.
744         (_dl_s390_platforms): Add z196 and zEC12.
745
746 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
747
748         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
749         Change XOPEN21K to XOPEN2K.
750
751 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
752
753         * string/memmove.c: Use memcpy when possible.
754
755 2012-11-06  Andreas Jaeger  <aj@suse.de>
756
757         * po/eo.po: Update from translation team.
758
759 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
760
761         [BZ #14793]
762         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
763         exponent and small x and y exponents, scale x or y up.  Increase
764         by 2 the exponent used in scaling up.
765         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
766         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
767         * math/libm-test.inc (fma_test): Add more tests.
768         (fma_test_towardzero): Likewise.
769         (fma_test_downward): Likewise.
770         (fma_test_upward): Likewise.
771
772 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
773
774         [BZ #14805]
775         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
776         fenv_t *.
777
778         [BZ #14801]
779         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
780         namespace for names of struct fields.
781         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
782         fenv_t fields.
783         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
784         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
785
786 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
787
788         [BZ #3665]
789         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
790
791 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
792
793         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
794         PTR_DEMANGLE.
795
796         [BZ #5246]
797         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
798         PTR_DEMANGLE.
799
800 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
801
802         [BZ #14797]
803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
804         definitely overflow as x * y not x * y + z.
805         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
806         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
807         * math/libm-test.inc (fma_test): Add more tests.
808         (fma_test_towardzero): Likewise.
809         (fma_test_downward): Likewise.
810         (fma_test_upward): Likewise.
811
812 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
813
814         [BZ #157]
815
816         * include/stub-tag.h: Remove file.
817         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
818         '#include' of it.
819         * manual/maint.texi (Porting): Don't reference it.
820         * Makerules ($(objpfx)stubs): Likewise.
821         * dirent/closedir.c: Don't include <stub-tag.h>.
822         * dirent/dirfd.c: Likewise.
823         * dirent/fdopendir.c: Likewise.
824         * dirent/getdents.c: Likewise.
825         * dirent/getdents64.c: Likewise.
826         * dirent/opendir.c: Likewise.
827         * dirent/readdir.c: Likewise.
828         * dirent/readdir64.c: Likewise.
829         * dirent/readdir64_r.c: Likewise.
830         * dirent/readdir_r.c: Likewise.
831         * dirent/rewinddir.c: Likewise.
832         * dirent/seekdir.c: Likewise.
833         * dirent/telldir.c: Likewise.
834         * gmon/profil.c: Likewise.
835         * grp/setgroups.c: Likewise.
836         * inet/if_index.c: Likewise.
837         * io/access.c: Likewise.
838         * io/chdir.c: Likewise.
839         * io/chmod.c: Likewise.
840         * io/chown.c: Likewise.
841         * io/close.c: Likewise.
842         * io/dup.c: Likewise.
843         * io/dup2.c: Likewise.
844         * io/dup3.c: Likewise.
845         * io/euidaccess.c: Likewise.
846         * io/faccessat.c: Likewise.
847         * io/fchdir.c: Likewise.
848         * io/fchmod.c: Likewise.
849         * io/fchmodat.c: Likewise.
850         * io/fchown.c: Likewise.
851         * io/fchownat.c: Likewise.
852         * io/fcntl.c: Likewise.
853         * io/flock.c: Likewise.
854         * io/fstatfs.c: Likewise.
855         * io/fstatfs64.c: Likewise.
856         * io/fstatvfs.c: Likewise.
857         * io/fstatvfs64.c: Likewise.
858         * io/futimens.c: Likewise.
859         * io/fxstat.c: Likewise.
860         * io/fxstat64.c: Likewise.
861         * io/fxstatat.c: Likewise.
862         * io/fxstatat64.c: Likewise.
863         * io/getcwd.c: Likewise.
864         * io/isatty.c: Likewise.
865         * io/lchmod.c: Likewise.
866         * io/lchown.c: Likewise.
867         * io/link.c: Likewise.
868         * io/linkat.c: Likewise.
869         * io/lseek.c: Likewise.
870         * io/lseek64.c: Likewise.
871         * io/lxstat64.c: Likewise.
872         * io/mkdir.c: Likewise.
873         * io/mkdirat.c: Likewise.
874         * io/mkfifo.c: Likewise.
875         * io/mkfifoat.c: Likewise.
876         * io/open.c: Likewise.
877         * io/open64.c: Likewise.
878         * io/openat.c: Likewise.
879         * io/openat64.c: Likewise.
880         * io/pipe.c: Likewise.
881         * io/pipe2.c: Likewise.
882         * io/poll.c: Likewise.
883         * io/posix_fadvise.c: Likewise.
884         * io/posix_fadvise64.c: Likewise.
885         * io/posix_fallocate.c: Likewise.
886         * io/posix_fallocate64.c: Likewise.
887         * io/read.c: Likewise.
888         * io/readlink.c: Likewise.
889         * io/readlinkat.c: Likewise.
890         * io/rmdir.c: Likewise.
891         * io/sendfile.c: Likewise.
892         * io/sendfile64.c: Likewise.
893         * io/statfs.c: Likewise.
894         * io/statfs64.c: Likewise.
895         * io/statvfs.c: Likewise.
896         * io/statvfs64.c: Likewise.
897         * io/symlink.c: Likewise.
898         * io/symlinkat.c: Likewise.
899         * io/ttyname.c: Likewise.
900         * io/ttyname_r.c: Likewise.
901         * io/umask.c: Likewise.
902         * io/unlink.c: Likewise.
903         * io/unlinkat.c: Likewise.
904         * io/utime.c: Likewise.
905         * io/utimensat.c: Likewise.
906         * io/write.c: Likewise.
907         * io/xmknod.c: Likewise.
908         * io/xmknodat.c: Likewise.
909         * io/xstat.c: Likewise.
910         * io/xstat64.c: Likewise.
911         * login/getpt.c: Likewise.
912         * login/grantpt.c: Likewise.
913         * login/unlockpt.c: Likewise.
914         * math/e_acoshl.c: Likewise.
915         * math/e_acosl.c: Likewise.
916         * math/e_asinl.c: Likewise.
917         * math/e_atan2l.c: Likewise.
918         * math/e_atanhl.c: Likewise.
919         * math/e_coshl.c: Likewise.
920         * math/e_expl.c: Likewise.
921         * math/e_fmodl.c: Likewise.
922         * math/e_gammal_r.c: Likewise.
923         * math/e_hypotl.c: Likewise.
924         * math/e_j0l.c: Likewise.
925         * math/e_j1l.c: Likewise.
926         * math/e_jnl.c: Likewise.
927         * math/e_lgammal_r.c: Likewise.
928         * math/e_log10l.c: Likewise.
929         * math/e_log2l.c: Likewise.
930         * math/e_logl.c: Likewise.
931         * math/e_powl.c: Likewise.
932         * math/e_rem_pio2l.c: Likewise.
933         * math/e_sinhl.c: Likewise.
934         * math/e_sqrtl.c: Likewise.
935         * math/fclrexcpt.c: Likewise.
936         * math/fedisblxcpt.c: Likewise.
937         * math/feenablxcpt.c: Likewise.
938         * math/fegetenv.c: Likewise.
939         * math/fegetexcept.c: Likewise.
940         * math/fegetround.c: Likewise.
941         * math/feholdexcpt.c: Likewise.
942         * math/fesetenv.c: Likewise.
943         * math/fesetround.c: Likewise.
944         * math/feupdateenv.c: Likewise.
945         * math/fgetexcptflg.c: Likewise.
946         * math/fraiseexcpt.c: Likewise.
947         * math/fsetexcptflg.c: Likewise.
948         * math/ftestexcept.c: Likewise.
949         * math/k_cosl.c: Likewise.
950         * math/k_rem_pio2l.c: Likewise.
951         * math/k_sinl.c: Likewise.
952         * math/k_tanl.c: Likewise.
953         * math/s_asinhl.c: Likewise.
954         * math/s_atanl.c: Likewise.
955         * math/s_cbrtl.c: Likewise.
956         * math/s_erfl.c: Likewise.
957         * math/s_expm1l.c: Likewise.
958         * math/s_log1pl.c: Likewise.
959         * math/s_tanhl.c: Likewise.
960         * misc/acct.c: Likewise.
961         * misc/brk.c: Likewise.
962         * misc/chflags.c: Likewise.
963         * misc/chroot.c: Likewise.
964         * misc/fchflags.c: Likewise.
965         * misc/fgetxattr.c: Likewise.
966         * misc/flistxattr.c: Likewise.
967         * misc/fremovexattr.c: Likewise.
968         * misc/fsetxattr.c: Likewise.
969         * misc/fsync.c: Likewise.
970         * misc/ftruncate.c: Likewise.
971         * misc/futimes.c: Likewise.
972         * misc/futimesat.c: Likewise.
973         * misc/getdomain.c: Likewise.
974         * misc/getdtsz.c: Likewise.
975         * misc/gethostid.c: Likewise.
976         * misc/gethostname.c: Likewise.
977         * misc/getloadavg.c: Likewise.
978         * misc/getpagesize.c: Likewise.
979         * misc/getsysstats.c: Likewise.
980         * misc/getxattr.c: Likewise.
981         * misc/gtty.c: Likewise.
982         * misc/ioctl.c: Likewise.
983         * misc/lgetxattr.c: Likewise.
984         * misc/listxattr.c: Likewise.
985         * misc/llistxattr.c: Likewise.
986         * misc/lremovexattr.c: Likewise.
987         * misc/lsetxattr.c: Likewise.
988         * misc/lutimes.c: Likewise.
989         * misc/madvise.c: Likewise.
990         * misc/mincore.c: Likewise.
991         * misc/mlock.c: Likewise.
992         * misc/mlockall.c: Likewise.
993         * misc/mmap.c: Likewise.
994         * misc/mprotect.c: Likewise.
995         * misc/msync.c: Likewise.
996         * misc/munlock.c: Likewise.
997         * misc/munlockall.c: Likewise.
998         * misc/munmap.c: Likewise.
999         * misc/preadv.c: Likewise.
1000         * misc/preadv64.c: Likewise.
1001         * misc/ptrace.c: Likewise.
1002         * misc/pwritev.c: Likewise.
1003         * misc/pwritev64.c: Likewise.
1004         * misc/readv.c: Likewise.
1005         * misc/reboot.c: Likewise.
1006         * misc/remap_file_pages.c: Likewise.
1007         * misc/removexattr.c: Likewise.
1008         * misc/revoke.c: Likewise.
1009         * misc/select.c: Likewise.
1010         * misc/setdomain.c: Likewise.
1011         * misc/setegid.c: Likewise.
1012         * misc/seteuid.c: Likewise.
1013         * misc/sethostid.c: Likewise.
1014         * misc/sethostname.c: Likewise.
1015         * misc/setregid.c: Likewise.
1016         * misc/setreuid.c: Likewise.
1017         * misc/setxattr.c: Likewise.
1018         * misc/sstk.c: Likewise.
1019         * misc/stty.c: Likewise.
1020         * misc/swapoff.c: Likewise.
1021         * misc/swapon.c: Likewise.
1022         * misc/sync.c: Likewise.
1023         * misc/syncfs.c: Likewise.
1024         * misc/syscall.c: Likewise.
1025         * misc/truncate.c: Likewise.
1026         * misc/ualarm.c: Likewise.
1027         * misc/usleep.c: Likewise.
1028         * misc/ustat.c: Likewise.
1029         * misc/utimes.c: Likewise.
1030         * misc/vhangup.c: Likewise.
1031         * misc/writev.c: Likewise.
1032         * posix/_exit.c: Likewise.
1033         * posix/alarm.c: Likewise.
1034         * posix/execve.c: Likewise.
1035         * posix/fexecve.c: Likewise.
1036         * posix/fork.c: Likewise.
1037         * posix/fpathconf.c: Likewise.
1038         * posix/getaddrinfo.c: Likewise.
1039         * posix/getegid.c: Likewise.
1040         * posix/geteuid.c: Likewise.
1041         * posix/getgid.c: Likewise.
1042         * posix/getgroups.c: Likewise.
1043         * posix/getlogin.c: Likewise.
1044         * posix/getlogin_r.c: Likewise.
1045         * posix/getpgid.c: Likewise.
1046         * posix/getpid.c: Likewise.
1047         * posix/getppid.c: Likewise.
1048         * posix/getresgid.c: Likewise.
1049         * posix/getresuid.c: Likewise.
1050         * posix/getsid.c: Likewise.
1051         * posix/getuid.c: Likewise.
1052         * posix/glob64.c: Likewise.
1053         * posix/nanosleep.c: Likewise.
1054         * posix/pathconf.c: Likewise.
1055         * posix/pause.c: Likewise.
1056         * posix/posix_madvise.c: Likewise.
1057         * posix/pread.c: Likewise.
1058         * posix/pread64.c: Likewise.
1059         * posix/pwrite.c: Likewise.
1060         * posix/pwrite64.c: Likewise.
1061         * posix/sched_getaffinity.c: Likewise.
1062         * posix/sched_getp.c: Likewise.
1063         * posix/sched_gets.c: Likewise.
1064         * posix/sched_primax.c: Likewise.
1065         * posix/sched_primin.c: Likewise.
1066         * posix/sched_rr_gi.c: Likewise.
1067         * posix/sched_setaffinity.c: Likewise.
1068         * posix/sched_setp.c: Likewise.
1069         * posix/sched_sets.c: Likewise.
1070         * posix/sched_yield.c: Likewise.
1071         * posix/setgid.c: Likewise.
1072         * posix/setlogin.c: Likewise.
1073         * posix/setpgid.c: Likewise.
1074         * posix/setresgid.c: Likewise.
1075         * posix/setresuid.c: Likewise.
1076         * posix/setsid.c: Likewise.
1077         * posix/setuid.c: Likewise.
1078         * posix/sleep.c: Likewise.
1079         * posix/spawni.c: Likewise.
1080         * posix/sysconf.c: Likewise.
1081         * posix/times.c: Likewise.
1082         * posix/wait.c: Likewise.
1083         * posix/wait3.c: Likewise.
1084         * posix/wait4.c: Likewise.
1085         * posix/waitpid.c: Likewise.
1086         * resolv/gai_sigqueue.c: Likewise.
1087         * resource/getpriority.c: Likewise.
1088         * resource/getrlimit.c: Likewise.
1089         * resource/getrusage.c: Likewise.
1090         * resource/nice.c: Likewise.
1091         * resource/setpriority.c: Likewise.
1092         * resource/setrlimit.c: Likewise.
1093         * resource/ulimit.c: Likewise.
1094         * rt/aio_cancel.c: Likewise.
1095         * rt/aio_fsync.c: Likewise.
1096         * rt/aio_read.c: Likewise.
1097         * rt/aio_sigqueue.c: Likewise.
1098         * rt/aio_suspend.c: Likewise.
1099         * rt/aio_write.c: Likewise.
1100         * rt/clock_getres.c: Likewise.
1101         * rt/clock_gettime.c: Likewise.
1102         * rt/clock_nanosleep.c: Likewise.
1103         * rt/clock_settime.c: Likewise.
1104         * rt/lio_listio.c: Likewise.
1105         * rt/mq_close.c: Likewise.
1106         * rt/mq_getattr.c: Likewise.
1107         * rt/mq_notify.c: Likewise.
1108         * rt/mq_open.c: Likewise.
1109         * rt/mq_receive.c: Likewise.
1110         * rt/mq_send.c: Likewise.
1111         * rt/mq_setattr.c: Likewise.
1112         * rt/mq_timedreceive.c: Likewise.
1113         * rt/mq_timedsend.c: Likewise.
1114         * rt/mq_unlink.c: Likewise.
1115         * rt/shm_open.c: Likewise.
1116         * rt/shm_unlink.c: Likewise.
1117         * rt/timer_create.c: Likewise.
1118         * rt/timer_delete.c: Likewise.
1119         * rt/timer_getoverr.c: Likewise.
1120         * rt/timer_gettime.c: Likewise.
1121         * rt/timer_settime.c: Likewise.
1122         * setjmp/__longjmp.c: Likewise.
1123         * setjmp/setjmp.c: Likewise.
1124         * signal/kill.c: Likewise.
1125         * signal/killpg.c: Likewise.
1126         * signal/raise.c: Likewise.
1127         * signal/sigaction.c: Likewise.
1128         * signal/sigaltstack.c: Likewise.
1129         * signal/sigblock.c: Likewise.
1130         * signal/sigignore.c: Likewise.
1131         * signal/sigintr.c: Likewise.
1132         * signal/signal.c: Likewise.
1133         * signal/sigpause.c: Likewise.
1134         * signal/sigpending.c: Likewise.
1135         * signal/sigqueue.c: Likewise.
1136         * signal/sigreturn.c: Likewise.
1137         * signal/sigset.c: Likewise.
1138         * signal/sigsetmask.c: Likewise.
1139         * signal/sigstack.c: Likewise.
1140         * signal/sigsuspend.c: Likewise.
1141         * signal/sigtimedwait.c: Likewise.
1142         * signal/sigvec.c: Likewise.
1143         * signal/sigwait.c: Likewise.
1144         * signal/sigwaitinfo.c: Likewise.
1145         * signal/sysv_signal.c: Likewise.
1146         * socket/accept.c: Likewise.
1147         * socket/accept4.c: Likewise.
1148         * socket/bind.c: Likewise.
1149         * socket/connect.c: Likewise.
1150         * socket/getpeername.c: Likewise.
1151         * socket/getsockname.c: Likewise.
1152         * socket/getsockopt.c: Likewise.
1153         * socket/isfdtype.c: Likewise.
1154         * socket/listen.c: Likewise.
1155         * socket/recv.c: Likewise.
1156         * socket/recvfrom.c: Likewise.
1157         * socket/recvmsg.c: Likewise.
1158         * socket/send.c: Likewise.
1159         * socket/sendmsg.c: Likewise.
1160         * socket/sendto.c: Likewise.
1161         * socket/setsockopt.c: Likewise.
1162         * socket/shutdown.c: Likewise.
1163         * socket/sockatmark.c: Likewise.
1164         * socket/socket.c: Likewise.
1165         * socket/socketpair.c: Likewise.
1166         * stdio-common/ctermid.c: Likewise.
1167         * stdio-common/cuserid.c: Likewise.
1168         * stdio-common/remove.c: Likewise.
1169         * stdio-common/rename.c: Likewise.
1170         * stdio-common/renameat.c: Likewise.
1171         * stdio-common/tempname.c: Likewise.
1172         * stdlib/getcontext.c: Likewise.
1173         * stdlib/makecontext.c: Likewise.
1174         * stdlib/setcontext.c: Likewise.
1175         * stdlib/swapcontext.c: Likewise.
1176         * stdlib/system.c: Likewise.
1177         * streams/fattach.c: Likewise.
1178         * streams/fdetach.c: Likewise.
1179         * streams/getmsg.c: Likewise.
1180         * streams/getpmsg.c: Likewise.
1181         * streams/putmsg.c: Likewise.
1182         * streams/putpmsg.c: Likewise.
1183         * sysdeps/unix/bsd/getpt.c: Likewise.
1184         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1185         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1186         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1188         Likewise.
1189         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1190         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1191         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1192         * sysvipc/msgctl.c: Likewise.
1193         * sysvipc/msgget.c: Likewise.
1194         * sysvipc/msgrcv.c: Likewise.
1195         * sysvipc/msgsnd.c: Likewise.
1196         * sysvipc/semctl.c: Likewise.
1197         * sysvipc/semget.c: Likewise.
1198         * sysvipc/semop.c: Likewise.
1199         * sysvipc/semtimedop.c: Likewise.
1200         * sysvipc/shmat.c: Likewise.
1201         * sysvipc/shmctl.c: Likewise.
1202         * sysvipc/shmdt.c: Likewise.
1203         * sysvipc/shmget.c: Likewise.
1204         * termios/tcdrain.c: Likewise.
1205         * termios/tcflow.c: Likewise.
1206         * termios/tcflush.c: Likewise.
1207         * termios/tcgetattr.c: Likewise.
1208         * termios/tcgetpgrp.c: Likewise.
1209         * termios/tcsendbrk.c: Likewise.
1210         * termios/tcsetattr.c: Likewise.
1211         * termios/tcsetpgrp.c: Likewise.
1212         * time/adjtime.c: Likewise.
1213         * time/clock.c: Likewise.
1214         * time/getitimer.c: Likewise.
1215         * time/gettimeofday.c: Likewise.
1216         * time/setitimer.c: Likewise.
1217         * time/settimeofday.c: Likewise.
1218         * time/stime.c: Likewise.
1219         * time/time.c: Likewise.
1220
1221 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1222
1223         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1224         /usr/old/bin.
1225
1226         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1227         instead of spaces.
1228         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1229
1230 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1231
1232         [BZ #14796]
1233         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1234         FE_TONEAREST before applying Dekker multiplication and Knuth
1235         addition.  Clear inexact exceptions and check for exact zero
1236         results afterwards.
1237         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1238         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1239         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1240         * math/libm-test.inc (fma_test): Add more tests.
1241         (fma_test_towardzero): Likewise.
1242         (fma_test_downward): Likewise.
1243         (fma_test_upward): Likewise.
1244         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1245         function.
1246         (libc_fesetround): New macro.
1247         (libc_fesetroundf): Likewise.
1248         (libc_fesetroundl): Likewise.
1249         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1250         function.
1251         (libc_fesetround_387): Likewise.
1252         (libc_fesetroundf): New macro.
1253         (libc_fesetround): Likewise.
1254         (libc_fesetroundl): Likewise.
1255         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1256         function.
1257         (libc_fesetroundf): New macro.
1258         (libc_fesetround): Likewise.
1259         (libc_fesetroundl): Likewise.
1260         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1261         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1262         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1263         libm_hidden_ver.
1264         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1265         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1266         libm_hidden_def.
1267         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1268         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1269         libm_hidden_ver.
1270         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1271         libm_hidden_def.
1272
1273         [BZ #3439]
1274         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1275         integer constant usable in #if and use that to give value to enum
1276         constant.
1277         (FE_DIVBYZERO): Likewise.
1278         (FE_UNDERFLOW): Likewise.
1279         (FE_OVERFLOW): Likewise.
1280         (FE_INVALID): Likewise.
1281         (FE_INVALID_SNAN): Likewise.
1282         (FE_INVALID_ISI): Likewise.
1283         (FE_INVALID_IDI): Likewise.
1284         (FE_INVALID_ZDZ): Likewise.
1285         (FE_INVALID_IMZ): Likewise.
1286         (FE_INVALID_COMPARE): Likewise.
1287         (FE_INVALID_SOFTWARE): Likewise.
1288         (FE_INVALID_SQRT): Likewise.
1289         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1290         (FE_TONEAREST): Likewise.
1291         (FE_TOWARDZERO): Likewise.
1292         (FE_UPWARD): Likewise.
1293         (FE_DOWNWARD): Likewise.
1294         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1295         (FE_DIVBYZERO): Likewise.
1296         (FE_OVERFLOW): Likewise.
1297         (FE_UNDERFLOW): Likewise.
1298         (FE_INEXACT): Likewise.
1299         (FE_TONEAREST): Likewise.
1300         (FE_DOWNWARD): Likewise.
1301         (FE_UPWARD): Likewise.
1302         (FE_TOWARDZERO): Likewise.
1303         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1304         (FE_UNDERFLOW): Likewise.
1305         (FE_OVERFLOW): Likewise.
1306         (FE_DIVBYZERO): Likewise.
1307         (FE_INVALID): Likewise.
1308         (FE_TONEAREST): Likewise.
1309         (FE_TOWARDZERO): Likewise.
1310         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1311         (FE_OVERFLOW): Likewise.
1312         (FE_UNDERFLOW): Likewise.
1313         (FE_DIVBYZERO): Likewise.
1314         (FE_INEXACT): Likewise.
1315         (FE_TONEAREST): Likewise.
1316         (FE_TOWARDZERO): Likewise.
1317         (FE_UPWARD): Likewise.
1318         (FE_DOWNWARD): Likewise.
1319         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1320         (FE_DIVBYZERO): Likewise.
1321         (FE_OVERFLOW): Likewise.
1322         (FE_UNDERFLOW): Likewise.
1323         (FE_INEXACT): Likewise.
1324         (FE_TONEAREST): Likewise.
1325         (FE_DOWNWARD): Likewise.
1326         (FE_UPWARD): Likewise.
1327         (FE_TOWARDZERO): Likewise.
1328
1329 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1330
1331         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1332
1333 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1334
1335         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1336         commands.  Quote $PWD.
1337         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1338         -x" by "export".
1339         (remove_newlines): Remove.
1340
1341 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1342
1343         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1344         * stdlib/stdlib.h (atof): Moved to ...
1345         * include/bits/stdlib-float.h: Here.  New file.
1346         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1347         * stdlib/bits/stdlib-float.h: New file.
1348         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1349         -mno-sse -mno-mmx.
1350         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1351         <xmmintrin.h>.
1352
1353 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1354
1355         * conform/conformtest.pl (@headers): Add fenv.h.
1356         * conform/data/fenv.h-data: New file.
1357         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1358         include of <math/fenv.h>.
1359
1360         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1361         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1362         && !UNIX98].  Enables tests for XOPEN2K8.
1363         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1364         POSIX2008]: Likewise.
1365
1366         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1367         (struct rusage): Do not expect type or its members.
1368
1369         [BZ #3439]
1370         * math/math.h (FP_NAN): Define macro to integer constant usable in
1371         #if and use that to give value to enum constant.
1372         (FP_INFINITE): Likewise.
1373         (FP_ZERO): Likewise.
1374         (FP_SUBNORMAL): Likewise.
1375         (FP_NORMAL): Likewise.
1376
1377 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1378
1379         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1380         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1381         arguments.
1382
1383 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1384
1385         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1386         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1387         autoconf-time if not.
1388         * configure.in: Remove AC_PREREQ.
1389
1390 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1391
1392         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1393         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1394         of the internal implementation.
1395
1396 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1397
1398         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1399         except include of <misc/sys/syslog.h>.
1400
1401 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1402
1403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1404         function returns with a NULL context exit with zero.
1405
1406 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1407
1408         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1409
1410 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1411
1412         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1413         (run_program_cmd): This.
1414         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1415         (tst_langinfo): New variable.  Use it.
1416
1417 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1418
1419         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1420         floating point opcodes.
1421
1422 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1423
1424         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1425         variable.
1426
1427         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1428
1429         * sysdeps/mach/hurd/powerpc: Remove directory.
1430         * sysdeps/mach/powerpc: Likewise.
1431
1432 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1433
1434         * scripts/check-local-headers.sh: Ignore c++ headers.
1435
1436 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1437
1438         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1439         __libc_cleanup_region_start argument.
1440
1441 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1442
1443         [BZ #14784]
1444         [BZ #14785]
1445         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1446         x * y using scaling, not as x * y + z.
1447         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1448         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1449         * math/libm-test.inc (fma_test): Add more tests.
1450         (fma_test_towardzero): Likewise.
1451         (fma_test_downward): Likewise.
1452         (fma_test_upward): Likewise.
1453
1454 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1455
1456         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1457
1458 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1459
1460         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1461         New variable.
1462
1463 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1464
1465         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1466
1467 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1468
1469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1470         Fix sort order.
1471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1472         Likewise.
1473
1474 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1475
1476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1477         Fix the order of the list for glibc 2.17.
1478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1479         Likewise.
1480
1481 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1482
1483         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1484
1485 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1486
1487         [BZ #14610]
1488         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1489         for low part of x being zero before using __atanl (y).
1490         * math/libm-test.inc (atan2_test): Add another test.
1491
1492         * manual/install.texi (Configuring and compiling): Document
1493         general use of test-wrapper and test-wrapper-env.
1494         * INSTALL: Regenerated.
1495
1496         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1497         (__fma): Do not extract and scale down low bits on after-rounding
1498         systems when result rounded to normal precision would have normal
1499         exponent.
1500         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1501         (__fmal): Do not extract and scale down low bits on after-rounding
1502         systems when result rounded to normal precision would have normal
1503         exponent.
1504         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1505         (__fmal): Do not extract and scale down low bits on after-rounding
1506         systems when result rounded to normal precision would have normal
1507         exponent.
1508         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1509         macro.
1510         (fma_test): Add more tests.
1511         (fma_test_towardzero): Likewise.
1512         (fma_test_downward): Likewise.
1513         (fma_test_upward): Likewise.
1514
1515 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1516
1517         * sysdeps/i386/tininess.h: Renamed to ...
1518         * sysdeps/x86/tininess.h: This.
1519         * sysdeps/x86_64/tininess.h: Removed.
1520
1521 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1522
1523         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1524         input.  Use $(build-program-cmd).
1525         ($(objpfx)tst-array1-static.out): Likewise.
1526         ($(objpfx)tst-array2.out): Likewise.
1527         ($(objpfx)tst-array3.out): Likewise.
1528         ($(objpfx)tst-array4.out): Likewise.
1529         ($(objpfx)tst-array5.out): Likewise.
1530         ($(objpfx)tst-array5-static.out): Likewise.
1531
1532 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1533
1534         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1535         if defined.
1536
1537         * nss/nsswitch.h (nss_interface_function): Provide new
1538         macro for use with NSS functions.
1539         * grp/initgroups.c: Use new macro.
1540         * nss/getXXbyYY.c: Likewise.
1541         * nss/getXXbyYY_r.c: Likewise.
1542         * nss/getXXent.c: Likewise.
1543         * nss/getXXent_r.c: Likewise.
1544         * sysdeps/posix/getaddrinfo.c: Likewise.
1545
1546 2012-10-30  Andreas Jaeger  <aj@suse.de>
1547
1548         * po/ru.po: Update Russion translation from translation project.
1549
1550 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1551
1552         [BZ #14152]
1553         [BZ #14783]
1554         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1555         result and shift together with sticky bit instead of replicating
1556         round-to-nearest rounding.
1557         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1558         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1559         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1560         missing underflow exceptions.
1561         (fma_test_towardzero): Add more tests.
1562         (fma_test_downward): Likewise.
1563         (fma_test_upward): Likewise.
1564
1565         [BZ #14047]
1566         * sysdeps/generic/tininess.h: New file.
1567         * sysdeps/i386/tininess.h: Likewise.
1568         * sysdeps/sh/tininess.h: Likewise.
1569         * sysdeps/x86_64/tininess.h: Likewise.
1570         * stdlib/tst-strtod-underflow.c: Likewise.
1571         * stdlib/tst-tininess.c: Likewise.
1572         * stdlib/strtod_l.c: Include <tininess.h>.
1573         (round_and_return): Do not set errno for exact underflow cases.
1574         Force an underflow exception when setting errno for underflow.
1575         Determine underflow based on rounding to normal precision if
1576         TININESS_AFTER_ROUNDING.
1577         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1578         ERANGE for exact underflow cases.
1579         * stdlib/Makefile (tests): Add tst-tininess and
1580         tst-strtod-underflow.
1581         ($(objpfx)tst-tininess): Use $(link-libm).
1582         ($(objpfx)tst-strtod-underflow): Likewise.
1583
1584 2012-10-30  Andreas Jaeger  <aj@suse.de>
1585
1586         [BZ#14767]
1587         * elf/Makefile (tests): Remove conditional for have-initfini-array
1588         since this is now always required and the variable does not exist
1589         anymore.
1590         (tests-static): Likewise.
1591         (modules-names): Likewise.
1592
1593         * po/eo.po: Add Esperanto translation from translation project.
1594
1595         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1596         merged with constructor/destructor.
1597         (init_array): Likewise.
1598         * elf/tst-array2dep.c (fini_array): Likewise.
1599         (init_array): Likewise.
1600
1601 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1602
1603         * manual/message.texi: Delete @cartouche tags.
1604
1605 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1606
1607         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1608         EOPNOTSUPP.
1609         * sysdeps/mach/hurd/fsync.c: Likewise.
1610
1611         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1612         [_POSIX_REALTIME_SIGNALS]: Change condition to
1613         [_POSIX_REALTIME_SIGNALS > 0].
1614
1615 2012-10-27  Andreas Jaeger  <aj@suse.de>
1616
1617         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1618         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1619         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1620         [__WORDSIZE != 64]: Likewise.
1621
1622 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1623
1624         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1625         *  iconvdata/tst-tables.sh: Likewise.
1626
1627 2012-10-25  David S. Miller  <davem@davemloft.net>
1628
1629         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1630         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1631         of strtoull.
1632
1633         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1634         ifunc-impl-list.c
1635         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1636         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1637         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1638         file.
1639
1640 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1641
1642         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1643         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1644         __getdirentries.
1645
1646 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1647             Jim Blandy  <jimb@codesourcery.com>
1648
1649         * scripts/cross-test-ssh.sh: New file.
1650         * manual/install.texi (Configuring and compiling): Document use of
1651         cross-test-ssh.sh.
1652         * INSTALL: Regenerated.
1653
1654 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1655
1656         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1657         EOPNOTSUPP.
1658
1659 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1660
1661         * Makeconfig (run-program-prefix): Fix comment.
1662
1663 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1664             Jim Blandy  <jimb@codesourcery.com>
1665
1666         * Makeconfig (test-wrapper): New variable,
1667         (test-wrapper-env): Likewise.
1668         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1669         (run-built-tests): Define to yes.
1670         (run-program-prefix): Use $(test-wrapper).
1671         (built-program-cmd): Likewise.
1672         * Rules (make-test-out): Use $(test-wrapper-env) and
1673         $(host-built-program-cmd).
1674         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1675         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1676         tst-pathopt.sh.
1677         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1678         $(test-wrapper-env) to tst-rtld-load-self.sh.
1679         ($(objpfx)order2.out): Use $(test-wrapper).
1680         ($(objpfx)tst-initorder.out): Likewise.
1681         ($(objpfx)tst-initorder2.out): Likewise.
1682         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1683         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1684         (test_wrapper_env): New variable.  Use it to run ld.so.
1685         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1686         Use it to run ld.so.
1687         (test_wrapper_env): Likewise.
1688         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1689         $(test-wrapper) to run-iconv-test.sh.
1690         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1691         (ICONV): Use $test_wrapper.
1692         * posix/Makefile ($(objpfx)globtest.out): Pass
1693         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1694         globtest.sh, not $(run-program-prefix).
1695         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1696         (test_wrapper): Likewise.
1697         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1698         set together with run_via_rtld_prefix.
1699         (run_program_prefix): Define in terms of test_wrapper and
1700         run_via_rtld_prefix.
1701
1702 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1703
1704         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1705         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1706         Targets removed.
1707
1708         [BZ #14743]
1709         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1710         Declare __clock_getres, __clock_gettime, __clock_settime,
1711         __clock_nanosleep, and __clock_getcpuclockid.
1712         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1713         Remove librt_hidden_def (clock_gettime).
1714         * sysdeps/unix/clock_gettime.c: Likewise.
1715         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1716         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1717         * rt/clock_getres.c: Define __clock_getres as an alias.
1718         * sysdeps/posix/clock_getres.c: Likewise.
1719         * rt/clock_settime.c: Define __clock_settime as an alias.
1720         * sysdeps/unix/clock_settime.c: Likewise.
1721         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1722         * sysdeps/unix/clock_nanosleep.c: Likewise.
1723         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1724         * rt/clock-compat.c: New file.
1725         * rt/Makefile (librt-routines): Add clock-compat and move
1726         $(clock-routines) to ...
1727         (routines): ... here, new variable.
1728         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1729         Don't add get_clockfreq here.
1730         * rt/Versions (libc: GLIBC_2.17): New version set.
1731         Add clock_* symbols here.
1732         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1733         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1734         (GLIBC_2.17): Add clock_* symbols.
1735         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1736         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1737         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1739         Likewise.
1740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1741         Likewise.
1742         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1743         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1746         * NEWS: Mention the move.
1747
1748         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1749         Use __open, __read, __close rather than their public counterparts.
1750         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1751         (__get_clockfreq_via_cpuinfo): Likewise.
1752         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1753         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1754
1755         * config.h.in (HAVE_IFUNC): New #undef.
1756         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1757         was successful.
1758         * configure: Regenerated.
1759
1760 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1761
1762         * configure.in: Move READELF check to start of file.
1763         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1764         libc_cv_asm_gnu_indirect_function in the process.
1765         * configure: Regenerated.
1766
1767 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1768
1769         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1770         send the output to /dev/null.
1771         (libc_cv_cc_with_libunwind): Likewise.
1772         (libc_cv_as_noexecstack): Likewise.
1773         * configure: Regenerate.
1774
1775 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1776
1777         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1778
1779         * posix/globtest.sh (TMPDIR): Do not set.
1780         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1781         (testout): Likewise.
1782
1783 2012-10-24  Andreas Jaeger  <aj@suse.de>
1784
1785         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1786         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1787         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1788         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1789         posix_fadvise64, posix_fallocate64.
1790
1791         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1792         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1793         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1794         Likewise.
1795         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1796         Likewise.
1797         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1798
1799         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1800         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1801         <bits/fcntl-linux.h>.
1802         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1803
1804         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1805         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1806         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1807         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1808         [__WORDSIZE != 64]: Likewise.
1809
1810 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1811
1812         * Makeconfig (run-built-tests): New variable.
1813         * Rules [$(cross-compiling) = yes]: Change condition to
1814         [$(run-built-tests) = no].
1815         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1816         to [$(run-built-tests) = yes].
1817         * elf/Makefile [$(cross-compiling) = no]: Likewise
1818         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1819         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1820         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1821         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1822         * io/Makefile [$(cross-compiling) = no]: Likewise.
1823         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1824         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1825         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1826         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1827         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1828         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1829         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1830         * string/Makefile [$(cross-compiling) = no]: Likewise.
1831
1832         * posix/Makefile ($(objpfx)globtest.out): Pass
1833         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1834         $(rtld-installed-name).
1835         * posix/globtest.sh (elf_objpfx): Remove variable.
1836         (rtld_installed_name): Likewise.
1837         (library_path): Likewise.
1838         (run_program_prefix): New variable.  Use for running globtest
1839         binary.
1840
1841 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1842             Joseph Myers  <joseph@codesourcery.com>
1843
1844         * Makeconfig (host-built-program-cmd): New variable.
1845         * elf/Makefile (tst-stackguard1-ARGS): Use
1846         $(host-built-program-cmd).
1847         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1848         (tst-spawn-ARGS): Likewise.
1849         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1850
1851 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1852             Jim Blandy  <jimb@codesourcery.com>
1853
1854         * Makeconfig (run-via-rtld-prefix): New variable.
1855         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1856         (built-program-cmd): Likewise.
1857
1858 2012-10-22  Andreas Jaeger  <aj@suse.de>
1859
1860         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1861         __O_RSYNC if it exists, otherwise to O_SYNC.
1862
1863 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1864             Joseph Myers  <joseph@codesourcery.com>
1865
1866         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1867         /dev/null.
1868         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1869         from /dev/null
1870         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1871         /dev/null.
1872
1873 2012-10-22  Andreas Jaeger  <aj@suse.de>
1874
1875         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1876         Define always.
1877         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1878
1879         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1880         bits/fcntl-linux.h.
1881
1882         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1883         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1884
1885         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1886         to __O_LARGEFILE.
1887         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1888         to __O_LARGEFILE.
1889
1890 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1891             Joseph Myers  <joseph@codesourcery.com>
1892
1893         * config.make.in (NM): New variable.
1894
1895 2012-10-21  Andreas Jaeger  <aj@suse.de>
1896
1897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1898         definitions and declarations that are provided by
1899         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1900
1901 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1902
1903         [BZ #14683]
1904         * elf/Makefile (tests-static): Add tst-leaks1-static.
1905         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1906         ($(objpfx)tst-leaks1-static): New rule.
1907         ($(objpfx)tst-leaks1-static-mem): Likewise.
1908         (tst-leaks1-static-ENV): New macro.
1909         * elf/dl-open.c (dl_open_worker): Check the main application
1910         only if SHARED is defined.
1911         * elf/tst-leaks1-static.c: New file.
1912
1913 2012-10-20  Andreas Jaeger  <aj@suse.de>
1914
1915         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1916         generic values for Linux.
1917         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1918         and declarations that are provided by <bits/fcntl-linux.h> and
1919         include <bits/fcntl-linux.h>.
1920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1921         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1922
1923 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1924
1925         * io/fcntl.h: Move include of <bits/types.h> to the top and
1926         include it unconditionally.
1927
1928 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1929
1930         * wcsmbs/Makefile (tests-ifunc): New variable.
1931         (tests): Add $(tests-ifunc).
1932         * wcsmbs/test-wcschr-ifunc.c: New file.
1933         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1934         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1935         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1936         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1937         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1938
1939         * string/Makefile (tests-ifunc): New variable.
1940         (tests): Add $(tests-ifunc).
1941         * string/test-memccpy.c (TEST_NAME): New macro.
1942         * string/test-memchr.c (TEST_NAME): Likewise.
1943         * string/test-memcmp.c (TEST_NAME): Likewise.
1944         * string/test-memcpy.c (TEST_NAME): Likewise.
1945         * string/test-memmem.c (TEST_NAME): Likewise.
1946         * string/test-memmove.c (TEST_NAME): Likewise.
1947         * string/test-memset.c (TEST_NAME): Likewise.
1948         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1949         * string/test-stpcpy.c (TEST_NAME): Likewise.
1950         * string/test-stpncpy.c (TEST_NAME): Likewise.
1951         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1952         * string/test-strcasestr.c (TEST_NAME): Likewise.
1953         * string/test-strcat.c (TEST_NAME): Likewise.
1954         * string/test-strchr.c (TEST_NAME): Likewise.
1955         * string/test-strcmp.c(TEST_NAME): Likewise.
1956         * string/test-strcpy.c (TEST_NAME): Likewise.
1957         * string/test-strcspn.c (TEST_NAME): Likewise.
1958         * string/test-strlen.c (TEST_NAME): Likewise.
1959         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1960         * string/test-strncmp.c (TEST_NAME): Likewise.
1961         * string/test-strncpy.c (TEST_NAME): Likewise.
1962         * string/test-strnlen.c (TEST_NAME): Likewise.
1963         * string/test-strpbrk.c (TEST_NAME): Likewise.
1964         * string/test-strrchr.c (TEST_NAME): Likewise.
1965         * string/test-strspn.c (TEST_NAME): Likewise.
1966         * string/test-strstr.c (TEST_NAME): Likewise.
1967         * string/test-bcopy-ifunc.c: New file.
1968         * string/test-bzero-ifunc.c: Likewise.
1969         * string/test-memccpy-ifunc.c: Likewise.
1970         * string/test-memchr-ifunc.c: Likewise.
1971         * string/test-memcmp-ifunc.c: Likewise.
1972         * string/test-memcpy-ifunc.c: Likewise.
1973         * string/test-memmem-ifunc.c: Likewise.
1974         * string/test-memmove-ifunc.c: Likewise.
1975         * string/test-mempcpy-ifunc.c: Likewise.
1976         * string/test-memset-ifunc.c: Likewise.
1977         * string/test-rawmemchr-ifunc.c: Likewise.
1978         * string/test-stpcpy-ifunc.c: Likewise.
1979         * string/test-stpncpy-ifunc.c: Likewise.
1980         * string/test-strcasecmp-ifunc.c: Likewise.
1981         * string/test-strcasestr-ifunc.c: Likewise.
1982         * string/test-strcat-ifunc.c: Likewise.
1983         * string/test-strchr-ifunc.c: Likewise.
1984         * string/test-strchrnul-ifunc.c: Likewise.
1985         * string/test-strcmp-ifunc.c: Likewise.
1986         * string/test-strcpy-ifunc.c: Likewise.
1987         * string/test-strcspn-ifunc.c: Likewise.
1988         * string/test-strlen-ifunc.c: Likewise.
1989         * string/test-strncasecmp-ifunc.c: Likewise.
1990         * string/test-strncat-ifunc.c: Likewise.
1991         * string/test-strncmp-ifunc.c: Likewise.
1992         * string/test-strncpy-ifunc.c: Likewise.
1993         * string/test-strnlen-ifunc.c: Likewise.
1994         * string/test-strpbrk-ifunc.c: Likewise.
1995         * string/test-strrchr-ifunc.c: Likewise.
1996         * string/test-strspn-ifunc.c: Likewise.
1997         * string/test-strstr-ifunc.c: Likewise.
1998
1999         * debug/Makefile (tests-ifunc): New variable.
2000         (tests): Add $(tests-ifunc).
2001         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2002         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2003         * debug/test-stpcpy_chk-ifunc.c: New file.
2004         * debug/test-strcpy_chk-ifunc.c: Likewise.
2005
2006 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2007
2008         [BZ #13601]
2009         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2010         header is not read in.
2011
2012 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2013
2014         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2015         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2016         directly.  Pass built executable to script as
2017         $(built-program-cmd).
2018         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2019         $testprogram without using LD_LIBRARY_PATH and $ldso.
2020
2021         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2022         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2023         $(rtld-installed-name).
2024         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2025         (rtld_installed_name): Likewise.
2026         (library_path): Likewise.
2027         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2028         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2029         $(run-program-prefix) to tst-tables.sh.
2030         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2031         it to run tst-table-from and tst-table-to.
2032         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2033         Pass it to tst-table.sh.
2034         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2035         $(run-program-prefix) to tst-gettext.sh.
2036         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2037         tst-translit.sh.
2038         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2039         tst-gettext2.sh.
2040         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2041         to run tst-gettext.
2042         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2043         to run tst-gettext2.
2044         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2045         to run tst-translit.
2046         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2047         $(run-program-prefix) to tst-mtrace.sh.
2048         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2049         to run tst-mtrace.
2050         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2051         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2052         $(rtld-installed-name).
2053         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2054         (rtld_installed_name): Likewise.
2055         (run_program_prefix): New variable.  Use it to run wordexp-test.
2056
2057         * Makeconfig (ARCH): Remove all definitions.
2058         (machine): Likewise.
2059         [ARCH]: Remove conditional code.
2060         [!objdir]: Give error.
2061         [!objdir] (objpfx): Remove.
2062         [!objdir] (common-objpfx): Likewise.
2063         [!objdir] (common-objdir): Likewise.
2064         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2065         AC_CONFIG_FILES call.
2066         * configure: Regenerated.
2067
2068         [BZ #13888]
2069         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2070         or TMPDIR.
2071         (testout): Likewise.
2072
2073         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2074         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2075         $(rtld-installed-name).
2076         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2077         (rtld_installed_name): Likwise.
2078         (runit): Remove function.
2079         (run_getconf): New variable,  Use it for running getconf binary.
2080
2081 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2082
2083         [BZ #14716]
2084         * string/test-memmem.c (check_result): New function.
2085         (do_one_test): Use it.
2086         (check1): New function.
2087         (test_main): Use it.
2088
2089 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2090
2091         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2092
2093 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2096         (_G_LSEEK64): Likewise.
2097         (_G_MMAP64): Likewise.
2098         (_G_FSTAT64): Likewise.
2099         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2100         (_G_LSEEK64): Likewise.
2101         (_G_MMAP64): Likewise.
2102         (_G_FSTAT64): Likewise.
2103         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2104         unconditional.  Call __mmap64 directly.
2105         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2106         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2107         __lseek64 directly.
2108         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2109         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2110         __mmap64 directly.
2111         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2112         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2113         __lseek64 directly.
2114         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2115         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2116         __lseek64 directly.
2117         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2118         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2119         __lseek64 directly.
2120         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2121         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2122         __fxstat64 directly.
2123         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2124         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2125         unconditional.
2126         (freopen64) [!_G_OPEN64]: Remove conditional code.
2127         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2128         unconditional.
2129         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2130         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2131         unconditional.
2132         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2133         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2134         unconditional.
2135         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2136         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2137         unconditional.
2138         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2139         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2140         unconditional.
2141         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2142         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2143         unconditional.
2144         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2145         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2146         unconditional.
2147         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2148
2149 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2150
2151         [BZ #12140]
2152         * manual/memory.texi (Malloc Tunable Parameters): Add note
2153         about free list pointers overwriting some perturb bytes.
2154         Wording suggested by Roland McGrath.
2155
2156 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2157
2158         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2159         (lgamma_test): Likewise.
2160         (tgamma_test): Likewise.
2161
2162 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2163
2164         [BZ #14700]
2165         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2166         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2167
2168 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2169
2170         * NEWS: Mention BZ #14716.
2171         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2172         when removing AVAILABLE1_USES_J macro.
2173
2174 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2175
2176         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2177         (__bswap_64): __uint64_t for unsigned 64-bit int.
2178
2179 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2180
2181         * include/string.h (memmem): Declare libc hidden alias.
2182         * string/memmem.c (memmem): Define libc hidden alias.
2183         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2184         __read, __close instead of open, read, close.
2185
2186 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2187
2188         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2189         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2190         global and hidden.
2191         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2192         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2193         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2194         Likewise.
2195         (__rawmemchr_sse2): Likewise.
2196         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2197         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2198         (__strchr_sse2): Likewise.
2199         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2200         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2201         (__strcasecmp_sse2): Likewise.
2202         (__strncasecmp_sse2): Likewise.
2203         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2204         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2205         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2206         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2207         (__strrchr_sse2): Likewise.
2208         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2209         ifunc-impl-list.c.
2210         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2211         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2212         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2213         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2214         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2215         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2216         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2217         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2218         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2219         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2220         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2221         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2222         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2223         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2224         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2225         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2226         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2227         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2228         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2229         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2230         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2231         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2232         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2233         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2234         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2235         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2236         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2237         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2238         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2239         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2240
2241         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2242         global and hidden.
2243         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2244         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2245         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2246         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2247         Likewise.
2248         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2249         Likewise.
2250         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2251         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2252         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2253         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2254         ifunc-impl-list.c.
2255         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2256         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2257         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2258         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2259         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2260         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2261         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2262         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2263         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2264         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2265         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2266         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2267         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2268         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2269         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2270         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2271         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2272         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2273         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2274         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2275         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2276         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2277         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2278         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2279         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2280         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2281         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2282         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2283         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2284         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2285         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2286         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2287         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2288         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2289         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2290         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2291         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2292         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2293         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2294         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2295         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2296
2297         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2298         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2299         * include/ifunc-impl-list.h: New file.
2300         * misc/ifunc-impl-list.c: Likewise.
2301         * misc/Makefile (routines): Add ifunc-impl-list.
2302         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2303         * string/test-string.h: Include <ifunc-impl-list.h>.
2304         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2305         impl_array): New variables.
2306         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2307         are defined.
2308         (test_init): Call __libc_ifunc_impl_list to initialize
2309         func_list if TEST_IFUNC and TEST_NAME are defined.
2310
2311         * string/Makefile (strop-tests): Add bcopy and bzero.
2312         * string/test-bcopy.c: New file.
2313         * string/test-bzero.c: Likewise.
2314         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2315         defined.
2316         * string/test-memset.c: Support bzero test if TEST_BZERO is
2317         defined.
2318         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2319         __libc_memmove.
2320         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2321         __libc_memset.
2322         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2323         of memset.
2324
2325 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2326
2327         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2328         * configure: Regenerated.
2329
2330         * Makeconfig (+link-static-before-libc): Don't include
2331         $(link-static-libc).
2332
2333         * libio/libio.h (_IO_pos_t): Remove.
2334
2335 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2336
2337         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2338         McGrath.
2339
2340 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2341
2342         * crypt/crypt-entry.c: Include fips-private.h.
2343         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2344         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2345         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2346         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2347
2348 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2349
2350         * crypt/crypt-private.h: Include stdbool.h.
2351         (_ufc_setup_salt_r): Return bool.
2352         * crypt/crypt-entry.c: Include errno.h.
2353         (__crypt_r): Return NULL with EINVAL for bad salt.
2354         * crypt/crypt_util.c (bad_for_salt): New.
2355         (_ufc_setup_salt_r): Check that salt is long enough and within
2356         the specified alphabet.
2357         * crypt/badsalttest.c: New file.
2358         * crypt/Makefile (tests): Add it.
2359         ($(objpfx)badsalttest): New.
2360
2361 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2362
2363         * NEWS: Add entry for BZ #14602.
2364
2365 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2366
2367         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2368         type-generic.
2369         * math/libm-test.inc: Update comment listing what functions and
2370         macros are tested.
2371         (isgreater_test): New function.
2372         (isgreaterequal_test): Likewise.
2373         (isless_test): Likewise.
2374         (islessequal_test): Likewise.
2375         (islessgreater_test): Likewise.
2376         (isunordered_test): Likewise.
2377         (main): Call the new functions.
2378
2379 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2380
2381         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2382         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2383         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2384         * sysdeps/i386/configure: Regenerated.
2385         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2386         * sysdeps/mach/configure: Regenerated.
2387         * sysdeps/mach/hurd/configure: Regenerated.
2388         * sysdeps/powerpc/configure: Regenerated.
2389         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2390         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2391         * sysdeps/s390/s390-32/configure: Regenerated.
2392         * sysdeps/s390/s390-64/configure: Regenerated.
2393         * sysdeps/sh/configure: Regenerated.
2394         * sysdeps/sparc/configure: Regenerated.
2395         * sysdeps/unix/sysv/linux/configure: Regenerated.
2396         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2397         * sysdeps/x86_64/configure: Regenerated.
2398
2399         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2400         defined.  Don't check if MAP is NULL.
2401
2402 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2403
2404         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2405         (_G_stat64): Likewise.
2406         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2407         (_G_stat64): Likewise.
2408         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2409         instead of struct _G_stat64.
2410         * libio/fileops.c (mmap_remap_check): Likewise.
2411         (decide_maybe_mmap): Likewise.
2412         (_IO_new_file_seekoff): Likewise.
2413         (_IO_file_stat): Likewise.
2414         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2415         _G_off64_t.
2416         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2417         instead of struct _G_stat64.
2418         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2419
2420 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2421
2422         [BZ #14602]
2423         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2424         Replace with ...
2425         (CHECK_EOL): New macro.
2426         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2427         CHECK_EOL.
2428         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2429         Replace with CHECK_EOL.
2430         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2431         Replace with CHECK_EOL.
2432
2433 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2434
2435         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2436         type-generic.
2437         * math/libm-test.inc: Update comment listing what functions and
2438         macros are tested.
2439         (finite_test): New function.
2440         (isinf_test): Likewise.
2441         (isnan_test): Likewise.
2442         (fpclassify_test): Test subnormal input.
2443         (isfinite_test): Likewise.
2444         (isnormal_test): Likewise.
2445         (main): Call the new functions.
2446
2447 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2448
2449         [BZ #14660]
2450         * Makerules (%.dynsym): Force C locale when running
2451         $(OBJDUMP) --dynamic-syms.
2452
2453 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2454
2455         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2456         <stdint.h>.
2457
2458 2012-10-06  David S. Miller  <davem@davemloft.net>
2459
2460         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2461         upper 32-bits of the length value in %o2 since we use branch-on-register
2462         tests which consider the entire 64-bit register.
2463
2464 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         * string/test-strstr.c (check2): Add a test for page boundary.
2467
2468 2012-10-05  David S. Miller  <davem@davemloft.net>
2469
2470         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2471         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2472         file.
2473         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2474         sysdep_routines.
2475         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2476         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2477         and bzero when HWCAP_SPARC_CRYPTO is present.
2478
2479 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2480
2481         [BZ #14602]
2482         * string/test-strstr.c (check2): New function.
2483         (test_main): Call check2.
2484
2485         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2486         and bug-strchr1.
2487         * string/bug-strcasestr1.c (do_test): Moved to ...
2488         * string/test-strcasestr.c (check1): Here.  New function.
2489         (do_one_test): Break out result checking code into ...
2490         (check_result): This.  New function.
2491         (do_one_test): Call check_result.
2492         (test_main): Call check1.
2493         * string/bug-strchr1.c (do_test): Moved to ...
2494         * string/test-strchr.c (check1): Here.  New function.
2495         (do_one_test): Break out result checking code into ...
2496         (check_result): This.  New function.
2497         (do_one_test): Call check_result.
2498         (test_main): Call check1.
2499         * string/bug-strstr1.c (main): Moved to ...
2500         * string/test-strchr.c (check1): Here.  New function.
2501         (do_one_test): Break out result checking code into ...
2502         (check_result): This.  New function.
2503         (do_one_test): Call check_result.
2504         (test_main): Call check1.
2505         * string/bug-strcasestr1.c: Removed.
2506         * string/bug-strchr1.c: Likewise.
2507         * string/bug-strstr1.c: Likewise.
2508
2509         * elf/Makefile (dl-routines): Add hwcaps.
2510         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2511         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2512         (_dl_important_hwcaps): Moved to ...
2513         * elf/dl-hwcaps.c: Here.  New file.
2514         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2515
2516         [BZ #14557]
2517         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2518         if IS_IN_rtld isn't defined.
2519
2520         * elf/dl-support.c (_dl_sysinfo_map): New.
2521         Include "get-dynamic-info.h" and "setup-vdso.h".
2522         (_dl_non_dynamic_init): Call setup_vdso.
2523         * elf/dynamic-link.h: Don't include <assert.h>.
2524         (elf_get_dynamic_info): Moved to ...
2525         * elf/get-dynamic-info.h: Here.  New file.
2526         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2527         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2528         * elf/setup-vdso.h: Here.  New file.
2529         * elf/rtld.c: Include "setup-vdso.h".
2530         (dl_main): Call setup_vdso.
2531
2532 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2533
2534         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2535         creal in comment listing functions tested.  List finite, isinf,
2536         isnan, isless, islessequal, isgreater, isgreaterequal,
2537         islessgreater, isunordered, lgamma_r and pow10 as functions and
2538         macros not tested.  Mention which functions not tested are aliases
2539         for other functions.  Fix typo.  Note that signs of NaNs are not
2540         tested.
2541
2542         * scripts/config.guess: Update from config.git.
2543         * scripts/config.sub: Likewise.
2544
2545 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2546
2547         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2548         * misc/madvise.c (madvise): Renamed to __madvise.
2549         Make madvise a weak alias.
2550         * include/sys/mman.h: Declare __madvise.
2551         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2552         * sysdeps/unix/syscalls.list
2553         (madvise): Make __madvise the strong name, and madvise a weak alias.
2554         * sysdeps/unix/sysv/linux/syscalls.list
2555         (madvise, mmap): Remove redundant entries.
2556         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2557         * malloc/malloc.c (mtrim): Likewise.
2558         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2559
2560 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2561
2562         * sysdeps/mach/hurd/dl-cache.c: File removed.
2563         * config.h.in (USE_LDCONFIG): New #undef.
2564         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2565         * configure: Regenerated.
2566         * elf/Makefile (dl-routines): Add dl-cache only under
2567         [$(use-ldconfig) = yes].
2568         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2569         cache on [USE_LDCONFIG].
2570         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2571         [USE_LDCONFIG].
2572         * elf/rtld.c (dl_main): Likewise.
2573
2574 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2575
2576         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2577         _SC_LEVEL4_CACHE_LINESIZE.
2578
2579 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2580
2581         * sysdeps/unix/bsd/confstr.h: File removed.
2582
2583 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2584
2585         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2586         sys/sdt-config.h.
2587
2588 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2589
2590         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2591         Make 'mapoff' field ElfW(Off) rather than off_t.
2592
2593 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2594
2595         * nscd/Makefile: Remove nscd-cflags and all its users.
2596         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2597         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2598
2599         [BZ #10631]
2600         * malloc.c (malloc_printerr): Clarify error message.
2601
2602 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2603
2604         [BZ #14648]
2605         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2606         Set bit_FMA_Usable if FMA is supported.
2607         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2608         macro.
2609         (bit_FMA4_Usable): Updated.
2610         (index_FMA_Usable): New macro.
2611         (CPUID_FMA): Likewise
2612         (HAS_FMA): Defined with bit_FMA_Usable.
2613
2614 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2615
2616         * bits/types.h (__swblk_t): Type removed.
2617         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2618         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2619         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2620         (__SWBLK_T_TYPE): Likewise.
2621         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2622         (__SWBLK_T_TYPE): Likewise.
2623         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2624         (__SWBLK_T_TYPE): Likewise.
2625         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2626         (__SWBLK_T_TYPE): Likewise.
2627
2628 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2629             Honza Horak <hhorak@redhat.com>
2630
2631         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2632         (xdr_mapname): Use YPMAXMAP as maxsize.
2633         (xdr_peername): Use YPMAXPEER as maxsize.
2634         (xdr_keydat): Use YPAXRECORD as maxsize.
2635         (xdr_valdat): Use YPMAXRECORD as maxsize.
2636
2637 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2638
2639         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2640
2641         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2642         * csu/init-first.c: ... here.
2643         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2644         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2645         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2646         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2647         * sysdeps/i386/init-first.c: File removed.
2648         * sysdeps/sh/init-first.c: File removed.
2649
2650 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2651
2652         [BZ #14645]
2653         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2654         if x * y might underflow to zero and z is zero.
2655         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2656         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2657         * math/libm-test.inc (min_subnorm_value): New variable.
2658         (fma_test): Add more tests.
2659         (fma_test_towardzero): Likewise.
2660         (fma_test_downward): Likewise
2661         (fma_test_upward): Likewise.
2662         (initialize): Set min_subnorm_value.
2663
2664 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2665
2666         [BZ #14638]
2667         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2668         0 + 0.
2669         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2670         mode for addition resulting in exact zero.
2671         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2672         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2673         exact 0 + 0.
2674         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2675         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2676         * math/libm-test.inc (fma_test): Add more tests.
2677         (fma_test_towardzero): New function.
2678         (fma_test_downward): Likewise.
2679         (fma_test_upward): Likewise.
2680         (main): Call the new functions.
2681
2682 2012-09-28  David S. Miller  <davem@davemloft.net>
2683
2684         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2685
2686 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2687
2688         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2689         instead of SIGALRM.
2690
2691         * sysdeps/gnu/_G_config.h: Moved to ...
2692         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2693         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2694         * sysdeps/generic/_G_config.h: ... here.
2695
2696         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2697
2698         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2699
2700         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2701         Conditionalize target on [libnss_test1.so-version].
2702
2703         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2704
2705         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2706         (elfobjdir): Move out of conditionals.
2707
2708         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2709         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2710         (__nss_lookup_function): Conditionalize label remove_from_tree on
2711         [!DO_STATIC_NSS || SHARED], matching its only use.
2712
2713 2012-09-28  David S. Miller  <davem@davemloft.net>
2714
2715         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2716         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2717         file.
2718         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2719         sysdep_routines.
2720         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2721         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2722         when HWCAP_SPARC_CRYPTO is present.
2723
2724 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2725
2726         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2727
2728 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2729
2730         [BZ #6530]
2731         * stdio-common/vfprintf.c (process_string_arg): Revert
2732         2000-07-22 change.
2733
2734 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2735
2736         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2737         for testcase.
2738         * stdio-common/tst-sprintf.c: Include <locale.h>
2739         (main): Test sprintf's handling of incomplete multibyte
2740         characters.
2741
2742 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2743
2744         * elf/dl-runtime.c (VERSYMIDX): Removed.
2745         * elf/dl-version.c (VERSYMIDX): Likewise.
2746         * elf/do-rel.h (VERSYMIDX): Likewise.
2747         (VALIDX): Likewise.
2748         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2749         * elf/rtld.c (VALIDX): Likewise.
2750         (ADDRIDX): Likewise.
2751         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2752         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2753         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2754         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2755         (VALIDX): Likewise.
2756         (ADDRIDX): Likewise.
2757
2758 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2759
2760         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2761
2762 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2763
2764         [BZ #11438]
2765         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2766         to global scope.
2767         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2768         addresses are in the same scope as 192.0.2/24.
2769         * posix/gai.conf: Document new scope table defaults.
2770
2771 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2772
2773         [BZ #5298]
2774         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2775         for ftell.  Compute offsets from write pointers instead.
2776         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2777
2778 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2779
2780         [BZ #14543]
2781         * libio/Makefile (tests): New test case tst-fseek.
2782         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2783         combination works in wide mode.
2784         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2785         state when the external buffer state changes.
2786
2787 2012-09-27  David S. Miller  <davem@davemloft.net>
2788
2789         [BZ #14376]
2790         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2791         pass reloc->r_addend in as the 'high' argument to
2792         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2793
2794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2795
2796 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2797
2798         * rt/tst-aio2.c: Include <pthread.h>.
2799         * rt/tst-aio3.c: Likewise.
2800
2801 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2802
2803         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2804
2805 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2806
2807         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2808         contents on [SHARED].
2809
2810 2012-09-26  Marek Polacek  <polacek@redhat.com>
2811
2812         [BZ #14530]
2813         [BZ #13741]
2814         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2815         for C++ and GCC <4.3 as well as for non GCC compilers.
2816
2817 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2818
2819         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2820
2821 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2822
2823         * Makefile.in (all, install): Declare with .PHONY.
2824         Reported by Michael Hope <michael.hope@linaro.org>.
2825
2826 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2827
2828         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2829         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2830         system header.
2831         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2832         Likewise.
2833         (sydep_routines): Add the new and the internal functions.
2834         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2835         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2837         (GLIBC_2.17): Add the new function.
2838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2839         (GLIBC_2.17): Likewise.
2840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2841         (GLIBC_2.17): Likewise.
2842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2843         (GLIBC_2.17): Likewise.
2844         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2845
2846 2012-09-25  Alan Modra  <amodra@gmail.com>
2847
2848         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2849         Add release barrier before setting once_control to say
2850         initialisation is done.  Add hints on lwarx.  Use macro in
2851         place of isync.
2852         (clear_once_control): Add release barrier.
2853
2854 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2855
2856         [BZ #13629]
2857         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2858         specially.
2859         * math/s_clog10.c (__clog10): Likewise.
2860         * math/s_clog10f.c (__clog10f): Likewise.
2861         * math/s_clog10l.c (__clog10l): Likewise.
2862         * math/s_clogf.c (__clogf): Likewise.
2863         * math/s_clogl.c (__clogl): Likewise.
2864         * math/Makefile (libm-calls): Add x2y2m1.
2865         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2866         (__x2y2m1): Likewise.
2867         (__x2y2m1l): Likewise.
2868         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2869         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2870         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2871         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2872         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2873         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2874         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2875         * sysdeps/i386/fpu/libm-test-ulps: Update.
2876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2877
2878         [BZ #14621]
2879         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2880         int as type of variable DEPTH.
2881         (glob): Use size_t instead of int as type of variables NEWCOUNT
2882         and OLD_PATHC.
2883
2884 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2885
2886         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2887         Add s_sincosf-sse2.
2888         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2889         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2890         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2891         macros for using routine as __sincosf_ia32.
2892         Use macro for function declaration and weak_alias.
2893         * sysdeps/i386/fpu/libm-test-ulps: Update.
2894
2895         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2896         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2897
2898         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2899         subnormal argument.
2900         * math/s_cexpf.c (__cexpf): Likewise.
2901         * math/s_csinf.c (__csinf): Likewise.
2902         * math/s_csinhf.c (__csinhf): Likewise.
2903         * math/s_ctanf.c (__ctanf): Likewise.
2904         * math/s_ctanhf.c (__ctanhf): Likewise.
2905         * math/s_ccosh.c (__ccoshf): Likewise.
2906         * math/s_cexp.c (__cexpl): Likewise.
2907         * math/s_csin.c (__csin): Likewise.
2908         * math/s_csinh.c (__csinh): Likewise.
2909         * math/s_ctan.c (__ctan): Likewise.
2910         * math/s_ctanh.c (ctanh): Likewise.
2911         * math/s_ccoshl.c (__ccoshl): Likewise.
2912         * math/s_cexpl.c (__cexpl): Likewise.
2913         * math/s_csinl.c (__csinl): Likewise.
2914         * math/s_csinhl.c (__csinhl): Likewise.
2915         * math/s_ctanl.c (__ctanl): Likewise.
2916         * math/s_ctanhl.c (__ctanhl): Likewise.
2917
2918 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2919
2920         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2921         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2922         (_IO_off_t): Define to __off_t, not _G_off_t.
2923         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2924         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2925         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2926         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2927         type of __dummy and __dummy2 fields.
2928         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2929         (_G_ssize_t): Likewise.
2930         (_G_off_t): Likewise.
2931         (_G_pid_t): Likewise.
2932         (_G_uid_t): Likewise.
2933         (_G_wchar_t): Likewise.
2934         (_G_wint_t): Likewise.
2935         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2936         (_G_ssize_t): Likewise.
2937         (_G_off_t): Likewise.
2938         (_G_pid_t): Likewise.
2939         (_G_uid_t): Likewise.
2940         (_G_wchar_t): Likewise.
2941         (_G_wint_t): Likewise.
2942         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2943         (_G_ssize_t): Likewise.
2944         (_G_off_t): Likewise.
2945         (_G_pid_t): Likewise.
2946         (_G_uid_t): Likewise.
2947         (_G_wchar_t): Likewise.
2948         (_G_wint_t): Likewise.
2949
2950 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2951
2952         * malloc/arena.c: Include malloc-sysdep.h.
2953         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2954         is sufficient to shrink the heap or an unmap is needed.
2955         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2956         new function check_may_shrink_heap.
2957         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2958         new function check_may_shrink_heap.
2959
2960 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2961
2962         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2963         comments.
2964
2965 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2966
2967         * catgets/test-gencat.sh: Add "set -e".
2968         * elf/tst-pathopt.sh: Likewise.
2969         * grp/tst_fgetgrent.sh: Likewise.
2970         * iconvdata/run-iconv-test.sh: Likewise.
2971         * intl/tst-gettext.sh: Likewise.
2972         * intl/tst-gettext2.sh: Likewise.
2973         * intl/tst-gettext4.sh: Likewise.
2974         * intl/tst-gettext6.sh: Likewise.
2975         * intl/tst-translit.sh: Likewise.
2976         * io/ftwtest-sh: Likewise.
2977         * libio/test-freopen.sh: Likewise.
2978         * malloc/tst-mtrace.sh: Likewise.
2979         * posix/globtest.sh: Likewise.
2980         * posix/tst-getconf.sh: Likewise.
2981         * posix/wordexp-tst.sh: Likewise.
2982         * stdio-common/tst-printf.sh: Likewise.
2983         * stdio-common/tst-unbputc.sh: Likewise.
2984         * stdlib/tst-fmtmsg.sh: Likewise.
2985         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2986         * catgets/Makefile: Do not specify -e option when running
2987         testsuite shell scripts.
2988         * elf/Makefile: Likewise.
2989         * grp/Makefile: Likewise.
2990         * iconvdata/Makefile: Likewise.
2991         * intl/Makefile: Likewise.
2992         * io/Makefile: Likewise.
2993         * libio/Makefile: Likewise.
2994         * malloc/Makefile: Likewise.
2995         * posix/Makefile: Likewise.
2996         * stdio-common/Makefile: Likewise.
2997         * stdlib/Makefile: Likewise.
2998         * sysdeps/x86_64/Makefile: Likewise.
2999
3000         * io/ftwtest-sh: Add copyright header.
3001         * posix/globtest.sh: Likewise.
3002         * posix/tst-getconf.sh: Likewise.
3003         * posix/wordexp-tst.sh: Likewise.
3004         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3005
3006 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3007
3008         [BZ #13679]
3009         * Makeconfig (+link): Defined as $(+link-static) if
3010         $(build-shared) isn't yes.
3011         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3012         isn't yes.
3013         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3014
3015         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3016
3017         [BZ #14562]
3018         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3019         new chunk size with MALLOC_ALIGN_MASK.
3020
3021 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3022
3023         [BZ #5044]
3024         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3025         <rounding-mode.h>.
3026         (__printf_fphex): Determine rounding using get_rounding_mode and
3027         round_away.
3028         * stdio-common/tst-printf-round.c (struct hex_test): New
3029         structure.
3030         (hex_tests): New variable.
3031         (test_hex_in_one_mode): New function.
3032         (do_test): Also run tests for hex float output.
3033
3034 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3035
3036         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3037         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3038         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3039         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3040         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3041         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3042         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3043         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3044
3045 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3046
3047         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3048         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3049         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3050         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3051
3052 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3053
3054         [BZ #14579]
3055         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3056         mode only.
3057         * elf/tst-rtld-load-self.sh: New test.
3058         * elf/Makefile: Run it.
3059
3060 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3061
3062         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3063         (tst-writev-ENV): Remove.
3064         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3065
3066 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3067
3068         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3069
3070 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3071
3072         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3073         unconditional.
3074         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3075         Likewise.
3076         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3077         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3078         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3079         Likewise.
3080
3081 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3082
3083         [BZ #14587]
3084         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3085         * config.make.in (have-cpp-asm-debuginfo): Removed.
3086         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3087         * configure: Regenerated.
3088
3089 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3090
3091         [BZ #5044]
3092         * stdio-common/printf_fp.c: Include <stdbool.h> and
3093         <rounding-mode.h>.
3094         (___printf_fp): Determine rounding using get_rounding_mode and
3095         round_away.
3096         * stdio-common/tst-printf-round.c: New file.
3097         * stdio-common/Makefile (tests): Add tst-printf-round.
3098         (link-libm): New variable.
3099         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3100
3101 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3102
3103         [BZ #14576]
3104         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3105         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3106         Likewise.
3107         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3108         Likewise.
3109
3110 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3111
3112         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3113         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3114         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3115         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3116
3117 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3118
3119         [BZ #14518]
3120         * include/rounding-mode.h: New file.
3121         * sysdeps/generic/get-rounding-mode.h: Likewise.
3122         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3123         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3124         (MAX_VALUE): New macro.
3125         (MIN_VALUE): Likewise.
3126         (overflow_value): New function.
3127         (underflow_value): Likewise.
3128         (round_and_return): Use overflow_value and underflow_value to
3129         determine return values in overflow and underflow cases.  Use
3130         round_away to determine rounding depending on rounding mode.
3131         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3132         determine return values in overflow and underflow cases.
3133         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3134         (struct test_results): New structure.
3135         (struct test): Use struct test_results to store expected results
3136         for all rounding modes.
3137         (TEST): Include expected results for all rounding modes.
3138         (test_in_one_mode): New function.
3139         (do_test): Use test_in_one_mode to compute and check results.
3140         Check results for all rounding modes.
3141         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3142         $(link-libm).
3143
3144 2012-12-09  Allan McRae  <allan@archlinux.org>
3145
3146         * sysdeps/i386/fpu/libm-test-ulps: Update
3147
3148 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3149
3150         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3151         (_G_int32_t): Likewise.
3152         (_G_uint16_t): Likewise.
3153         (_G_uint32_t): Likewise.
3154         (_G_HAVE_BOOL): Likewise.
3155         (_G_HAVE_ATEXIT): Likewise.
3156         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3157         (_G_HAVE_IO_FILE_OPEN): Likewise.
3158         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3159         (_G_int32_t): Likewise.
3160         (_G_uint16_t): Likewise.
3161         (_G_uint32_t): Likewise.
3162         (_G_HAVE_BOOL): Likewise.
3163         (_G_HAVE_ATEXIT): Likewise.
3164         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3165         (_G_HAVE_IO_FILE_OPEN): Likewise.
3166         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3167         (_G_int32_t): Likewise.
3168         (_G_uint16_t): Likewise.
3169         (_G_uint32_t): Likewise.
3170         (_G_HAVE_BOOL): Likewise.
3171         (_G_HAVE_ATEXIT): Likewise.
3172         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3173         (_G_HAVE_IO_FILE_OPEN): Likewise.
3174
3175 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3176
3177         * csu/libc-tls.c: Update copyright years.
3178
3179 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3180
3181         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3182         [!_G_USING_THUNKS]: Remove conditional code.
3183         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3184         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3185
3186         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3187         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3188         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3189         (_G_VTABLE_LABEL_PREFIX): Likewise.
3190         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3191         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3192         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3193         (_G_VTABLE_LABEL_PREFIX): Likewise.
3194         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3195         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3196         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3197         (_G_VTABLE_LABEL_PREFIX): Likewise.
3198         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3199
3200 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3201
3202         * libio/Makefile: Include ../Makeconfig before tests.
3203         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3204         only if $(build-shared) is yes.
3205
3206         * iconv/gconv_db.c: Update copyright years.
3207
3208 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3209
3210         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3211         unwind info if defined PIC. Fix special cases description.
3212         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3213
3214         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3215         DP_HI_MASK entry.
3216         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3217
3218 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3219
3220         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3221
3222         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3223         is NULL.
3224
3225         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3226         (LDLIBS-tst-chk4): This.
3227         (LDFLAGS-tst-chk5): Renamed to ...
3228         (LDLIBS-tst-chk5): This.
3229         (LDFLAGS-tst-chk6): Renamed to ...
3230         (LDLIBS-tst-chk6): This.
3231         (LDFLAGS-tst-lfschk4): Renamed to ...
3232         (LDLIBS-tst-lfschk4): This.
3233         (LDFLAGS-tst-lfschk5): Renamed to ...
3234         (LDLIBS-tst-lfschk5): This.
3235         (LDFLAGS-tst-lfschk6): Renamed to ...
3236         (LDLIBS-tst-lfschk6): This.
3237
3238         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3239         on $(common-objpfx)soversions.mk.
3240
3241 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3242
3243         [BZ #10014]
3244         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3245         example host name.
3246
3247 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3248
3249         * malloc/arena.c (arena_get_retry): New function that gets
3250         another arena for the caller to try its request on.
3251         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3252         current arena cannot fulfill the request.
3253         (__libc_memalign): Likewise.
3254         (__libc_memalign): Likewise.
3255         (__libc_pvalloc): Likewise.
3256         (__libc_calloc): Likewise.
3257
3258 2012-09-05  John Tobey  <john.tobey@gmail.com>
3259
3260         [BZ #13542]
3261         * manual/arith.texi (Operations on Complex): Fix description
3262         of carg branch cut.
3263
3264 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3265
3266         [BZ #10014]
3267         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3268         host name.
3269
3270         [BZ #10038]
3271         * manual/memory.texi (Memory): Make order of menu items match
3272         order of sections.
3273
3274 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3275
3276         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3277         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3278         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3279
3280 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3281
3282         * csu/libc-tls.c (static_dtv): Renamed to ...
3283         (_dl_static_dtv): This.  Make it global.
3284         (_dl_initial_dtv): Removed.
3285         (__libc_setup_tls): Updated.
3286         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3287         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3288         DL_INITIAL_DTV.
3289
3290 2012-09-06  Petr Machata  <pmachata@redhat.com>
3291
3292         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3293         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3294         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3295         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3296
3297 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3298
3299         [BZ #14545]
3300         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3301         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3302         freeing dtv[-1].
3303
3304 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3305
3306         [BZ #14544]
3307         * Makeconfig (link-static-before-libc): Replace $(+prector)
3308         with $(+prectorT).
3309         (link-static-after-libc): Replace $(+postctor) with
3310         $(+postctorT).
3311         (link-bounded): Replace $(+prector)/$(+postctor) with
3312         $(+prectorT)/$(+postctorT).
3313         (+prectorT): New macro.
3314         (+postctorT): Likewise.
3315
3316 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3317
3318         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3319         (round_str): Handle values above the maximum for IBM long double
3320         as inexact.
3321         * stdlib/tst-strtod-round.c (tests): Regenerated.
3322
3323 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3324
3325         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3326         assembler flag.
3327         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3328         zarch_nohighgprs around the zarch optimized routines.
3329         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3330         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3331         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3332         for zarch.
3333
3334 2012-09-05  David S. Miller  <davem@davemloft.net>
3335
3336         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3337
3338         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3339         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3340         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3341         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3342         entries.
3343
3344 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3345
3346         * malloc/arena.c: Fold copyright years.
3347         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3348
3349 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3350
3351         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3352
3353 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3354
3355         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3356
3357 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3358
3359         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3360         change internal state upon failure.
3361
3362 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3363
3364         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3365         * malloc/memusage.c (mmap): Likewise.
3366         (mmap64, mremap): Likewise.  Adjust name in comment.
3367
3368 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3369
3370         * libio/fileops.c: Fix typos in comments.
3371         * libio/oldfileops.c: Likewise.
3372         * libio/wfileops.c: Likewise.
3373
3374 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3375
3376         [BZ #1349]
3377         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3378         (tst-malloc-usable-ENV): Set environment for test case.
3379         * malloc/hooks.c (malloc_check_get_size): New function to get
3380         requested size.
3381         * malloc/malloc.c (musable): Use malloc_check_get_size.
3382         * malloc/tst-malloc-usable.c: New test case.
3383
3384 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3385
3386         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3387
3388 2012-09-05  Allan McRae  <allan@archlinux.org>
3389
3390         [BZ #13966]
3391         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3392         determine header location.
3393         * configure: Regenerated.
3394
3395 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3396
3397         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3398         float format.
3399         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3400         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3401         format.
3402         (test): Regenerate.
3403
3404 2012-09-04  David S. Miller  <davem@davemloft.net>
3405
3406         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3407         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3408         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3409
3410 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3411
3412         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3413         failures.
3414
3415         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3416
3417 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3418
3419         [BZ #9914]
3420         * libio/iogetdelim.c: Include <limits.h>.
3421         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3422         + len + 1 would overflow.
3423
3424 2012-09-03  Andreas Jaeger  <aj@suse.de>
3425
3426         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3427         * sysdeps/i386/fpu/libm-test-ulps: Update.
3428
3429 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3430
3431         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3432         Add s_sinf-sse2, s_conf-sse2.
3433
3434         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3435         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3436         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3437         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3438
3439         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3440         for using routine as __sinf_ia32.
3441         Use macro for function declaration and weak_alias.
3442         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3443         for using routine as __cosf_ia32.
3444         Use macro for function declaration and weak_alias.
3445
3446         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3447         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3448
3449         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3450         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3452
3453         * math/libm-test.inc (cos_test): Add more test cases.
3454         (sin_test): Likewise.
3455         (sincos_test): Likewise.
3456
3457 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3458
3459         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3460         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3461         hidden.
3462         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3463
3464 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3465
3466         [BZ #14538]
3467         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3468         first element of the GOT.
3469         (elf_machine_load_address): Return the difference between
3470         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3471
3472 2012-09-01  Allan McRae  <allan@archlinux.org>
3473
3474         [BZ #13412]
3475         * configure.in (AWK): Require gawk version 3.0 or later.
3476         * configure: Regenerated.
3477
3478 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3479
3480         * sysdeps/unix/sysv/linux/kernel-features.h
3481         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3482         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3483         [__NR_clock_getres]: Make code unconditional.
3484         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3485         (clock_getcpuclockid): Remove code left unreachable by removal of
3486         conditionals.
3487         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3488         code unconditional.
3489         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3490         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3491         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3492         Make code unconditional.
3493         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3494         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3495         * sysdeps/unix/sysv/linux/clock_settime.c
3496         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3497         conditional code.
3498         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3499         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3500
3501 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3502
3503         [BZ #14476]
3504         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3505         scripts/test-installation.pl.
3506
3507         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3508         and $ld_so_version if it is set.
3509
3510 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3511
3512         [BZ #14516]
3513         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3514         failure if reading from procfs failed.
3515         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3516
3517 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3518
3519         * sysdeps/unix/sysv/linux/kernel-features.h
3520         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3521         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3522         Remove conditional code.
3523         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3524         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3525         Remove conditional code.
3526         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3527         * sysdeps/unix/sysv/linux/i386/fxstat.c
3528         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3529         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3530         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3531         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3532         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3533         * sysdeps/unix/sysv/linux/i386/lxstat.c
3534         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3535         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3536         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3537         Remove conditional code.
3538         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3539         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3540         Remove conditional code.
3541         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3542         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3543         <kernel-features.h>.
3544         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3545         Remove.
3546         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3547         Remove conditional code.
3548         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3549         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3550         Remove conditional.
3551
3552 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3553
3554         [BZ #5400]
3555         * NEWS: Add fixed bug number.
3556
3557 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3558
3559         [BZ #14519]
3560         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3561         underflowing exponent in case of negative sign.
3562         * stdlib/tst-strtod-round-data: Add more tests.
3563         * stdlib/tst-strtod-round.c (tests): Regenerated.
3564
3565         [BZ #3479]
3566         * stdlib/strtod_l.c (NDIG): Remove.
3567         (HEXNDIG): Likewise.
3568         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3569         smallest representable value.
3570         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3571         lie within an exact representation of 1/2 ulp of the result.
3572         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3573         unconditionally.
3574         (TENS_P9_IDX): Define unconditionally.
3575         (TENS_P9_SIZE): Likewise.
3576         (TENS_P10_IDX): Likewise.
3577         (TENS_P10_SIZE): Likewise.
3578         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3579         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3580         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3581         entries for 10^2^13 and 10^2^14.
3582         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3583         (TENS_P13_IDX): Define.
3584         (TENS_P13_SIZE): Likewise.
3585         (TENS_P14_IDX): Likewise.
3586         (TENS_P14_SIZE): Likewise.
3587         (_fpioconst_pow10): Change array size to
3588         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3589         unconditional.
3590         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3591         1024]: Add entries for 10^2^13 and 10^2^14.
3592         [LAST_POW10 > _LAST_POW10]: Remove #error.
3593         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3594         (_fpioconst_pow10): Change array size to
3595         FPIOCONST_POW10_ARRAY_SIZE.
3596         * stdlib/gen-fpioconst.c: New file.
3597         * stdlib/gen-tst-strtod-round.c: Likewise.
3598         * stdlib/tst-strtod-round-data: Likewise.
3599         * stdlib/tst-strtod-round.c: Likewise.
3600         * stdlib/Makefile (tests): Add tst-strtod-round.
3601
3602         [BZ #14459]
3603         * stdlib/strtod_l.c: Include <stdint.h>.
3604         (NDEBUG): Do not define.
3605         (round_and_return): Change EXPONENT parameter to type intmax_t.
3606         Rearrange calculations to avoid internal overflow possibilities.
3607         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3608         Rearrange calculations to avoid internal overflow possibilities.
3609         Assert that number fits inside MPNSIZE limbs.
3610         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3611         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3612         calculations and add assertions to avoid internal overflow
3613         possibilities.  Add casts to avoid signed/unsigned operations.
3614         * stdlib/tst-strtod-overflow.c: New file.
3615         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3616
3617 2012-08-25  Marek Polacek  <polacek@redhat.com>
3618
3619         * time/time.h: Fix some typos in comments.
3620
3621 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3622
3623         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3624         * posix/tst-rfc3484-2.c: Likewise.
3625         * posix/tst-rfc3484-3.c: Likewise.
3626
3627 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3628
3629         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3630         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3631
3632 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3633
3634         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3635         #include of fxstatat64.c.
3636
3637 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3638
3639         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3640         * shadow/getspent_r.c: Likewise.
3641         * shadow/getspnam.c: Likewise.
3642         * shadow/getspnam_r.c: Likewise.
3643         * gshadow/getsgent.c: Likewise.
3644         * gshadow/getsgent_r.c: Likewise.
3645         * gshadow/getsgnam.c: Likewise.
3646         * gshadow/getsgnam_r.c: Likewise.
3647         * inet/getnetbyad.c: Likewise.
3648         * inet/getnetbyad_r.c: Likewise.
3649         * inet/getnetbynm.c: Likewise.
3650         * inet/getnetbynm_r.c: Likewise.
3651         * inet/getnetent.c: Likewise.
3652         * inet/getnetent_r.c: Likewise.
3653         * inet/getproto.c: Likewise.
3654         * inet/getproto_r.c: Likewise.
3655         * inet/getprtent.c: Likewise.
3656         * inet/getprtent_r.c: Likewise.
3657         * inet/getprtname.c: Likewise.
3658         * inet/getprtname_r.c: Likewise.
3659         * inet/getrpcbyname.c: Likewise.
3660         * inet/getrpcbyname_r.c: Likewise.
3661         * inet/getrpcbynumber.c: Likewise.
3662         * inet/getrpcbynumber_r.c: Likewise.
3663         * inet/getrpcent.c: Likewise.
3664         * inet/getrpcent_r.c: Likewise.
3665         * inet/getaliasent.c: Likewise.
3666         * inet/getaliasent_r.c: Likewise.
3667         * inet/getaliasname.c: Likewise.
3668         * inet/getaliasname_r.c: Likewise.
3669         * nscd/getgrgid_r.c: Likewise.
3670         * nscd/getgrnam_r.c: Likewise.
3671         * nscd/gethstbyad_r.c: Likewise.
3672         * nscd/gethstbynm3_r.c: Likewise.
3673         * nscd/getpwnam_r.c: Likewise.
3674         * nscd/getpwuid_r.c: Likewise.
3675         * nscd/getsrvbynm_r.c: Likewise.
3676         * nscd/getsrvbypt_r.c: Likewise.
3677         * nscd/gai.c: Likewise.
3678
3679         * configure.in (build_nscd): New substituted variable, set
3680         by --disable-build-nscd and defaults to $use_nscd.
3681         * configure: Regenerated.
3682         * config.make.in (build-nscd): New substituted variable.
3683         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3684         Change conditional to require [$(build-nscd) = yes] as well.
3685         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3686
3687         [BZ# 13696]
3688         * configure.in (use_nscd): New substituted variable, set by
3689         --disable-nscd.  If enabled, define USE_NSCD.
3690         * configure: Regenerated.
3691         * config.h.in: Add USE_NSCD.
3692         * config.make.in (use-nscd): New substituted variable.
3693         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3694         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3695         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3696         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3697         (CFLAGS-getgrnam_r.c): Likewise.
3698         (CFLAGS-initgroups.c): Likewise.
3699         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3700         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3701         Variables removed.
3702         * inet/getnetgrent_r.c
3703         (nscd_setnetgrent): New function, broken out of ...
3704         (setnetgrent): ... here.  Call it.
3705         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3706         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3707         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3708         * nscd/Makefile (routines, aux): Move definitions after include of
3709         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3710         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3711         Conditionalize on [USE_NSCD].
3712         (is_nscd, nscd_init_cb): Likewise.
3713         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3714         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3715         * nss/nss_db/db-init.c: Likewise.
3716         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3717         [USE_NSCD].
3718         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3719         (make_request): Use it.
3720         (cache_valid_p): New function.
3721         (__check_pf): Use it.
3722         * NEWS: Add item for --disable-nscd.
3723
3724 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3725
3726         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3727         to support sed >= 4.2.1-20-ga9bf076.
3728         * configure: Regenerated.
3729
3730 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3731
3732         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3733         Conditionalize whole body on [IREL].
3734
3735 2012-08-22  Jeff Law <law@redhat.com>
3736
3737         [BZ #14505]
3738         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3739         if the family is PF_UNSPEC.
3740
3741 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3742
3743         * Makerules (lib-version): Rename from V.
3744         (install-lib-nosubdir): Change V to lib-version.
3745
3746 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3747
3748         [BZ #14252]
3749         * powerpc32/power6/wcschr.c: New file.
3750         * powerpc32/power6/wcscpy.c: New file.
3751         * powerpc32/power6/wcsrchr.c: New file.
3752         * powerpc64/power6/wcschr.c: New file.
3753         * powerpc64/power6/wcscpy.c: New file.
3754         * powerpc64/power6/wcsrchr.c: New file.
3755
3756 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3757
3758         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3759         (two_way_short_needle): Use it.
3760         * string/strstr.c (AVAILABLE1_USES_J): Define.
3761         * string/strcasestr.c: Likewise.
3762
3763         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3764         array references.
3765         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3766
3767         [BZ #11607]
3768         * NEWS: Add an entry.
3769         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3770         define their defaults.
3771         (two_way_short_needle): Detect end-of-string on-the-fly.
3772         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3773         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3774         * string/bug-strcasestr1.c: New test.
3775         * string/Makefile: Run it.
3776
3777 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3778
3779         [BZ #11607]
3780         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3781         the first character.
3782
3783 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3784
3785         * csu/elf-init.c (__libc_csu_irel): Function removed.
3786         * csu/libc-start.c (apply_irel): New function.
3787         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3788
3789 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3790
3791         * sysdeps/unix/sysv/linux/kernel-features.h
3792         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3793         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3794         <kernel-features.h>.
3795         [__NR_fadvise64_64]: Make code unconditional.
3796         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3797         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3798         !__NR_fadvise64_64)]: Likewise.
3799         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3800         !__NR_fadvise64_64))]: Likewise.
3801         [__NR_fadvise64]: Make code unconditional.
3802         [!__NR_fadvise64]: Remove conditional code.
3803         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3804         <kernel-features.h>.
3805         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3806         unconditional.
3807         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3808         conditional code.
3809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3810         not include <kernel-features.h>.
3811         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3812         unconditional.
3813         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3814         conditional code.
3815         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3816         include <kernel-features.h>.
3817         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3818         unconditional.
3819         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3820         conditional code.
3821
3822 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3823
3824         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3825         slight instruction rearrangements per scrollpipe analysis.
3826         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3827
3828 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3829
3830         * manual/syslog.texi (syslog; vsyslog, closelog):
3831         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3832         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3833
3834         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3835         DSOCAPS to match condition on defining it.
3836
3837 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3838
3839         * sysdeps/unix/sysv/linux/kernel-features.h
3840         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3842         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3843         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3845         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3846         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3848         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3849         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3850
3851         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3852         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3853
3854         * sysdeps/unix/sysv/linux/kernel-features.h
3855         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3856         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3857         unconditional.
3858         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3859         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3860         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3861         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3862         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3863         Make code unconditional.
3864         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3865         (__mmap64) [!__NR_mmap2]: Likewise.
3866         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3867         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3868         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3869         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3870         [__NR_mmap2]: Make code unconditional.
3871         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3872         (__mmap64) [!__NR_mmap2]: Likewise.
3873
3874 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3875
3876         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3877
3878 2012-08-18  Andreas Jaeger  <aj@suse.de>
3879
3880         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3881
3882 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3883
3884         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3885         * include/unistd.h (__have_sock_cloexec): Likewise.
3886         (__have_pipe2): Likewise.
3887         (__have_dup3): Likewise.
3888
3889 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3890
3891         [BZ #9685]
3892         * include/unistd.h (__have_pipe2): Change define into an extern int.
3893         (__have_dup3): Likewise.
3894         * socket/have_sock_cloexec.c: Include fcntl.h.
3895         (__have_pipe2): New variable.
3896         (__have_dup3): Likewise.
3897
3898 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3899
3900         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3901
3902 2012-08-17  Marek Polacek  <polacek@redhat.com>
3903
3904         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3905         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3906
3907 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3908
3909         * configure.in: Add AC_SUBST for sysheaders.
3910         * configure: Regenerated.
3911         * config.make.in (sysheaders): New substituted variable.
3912
3913         * sysdeps/unix/mkfifo.c: Moved ...
3914         * sysdeps/posix/mkfifo.c: ... here.
3915         * sysdeps/unix/mkfifoat.c: Moved ...
3916         * sysdeps/posix/mkfifoat.c: ... here.
3917
3918         * sysdeps/unix/utime.c: Moved ...
3919         * sysdeps/posix/utime.c: ... here.
3920
3921         * sysdeps/unix/time.c: Moved ...
3922         * sysdeps/posix/time.c: ... here.
3923         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3924         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3925
3926         * sysdeps/unix/nice.c: Moved ...
3927         * sysdeps/posix/nice.c: ... here.
3928
3929         * sysdeps/unix/alarm.c: Moved ...
3930         * sysdeps/posix/alarm.c: ... here.
3931
3932         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3933
3934 2012-08-17  Jeff Law <law@redhat.com>
3935
3936         * intl/Makefile (codeset_mo): New variable.
3937         ($(codeset_mo)): New target.
3938         (tst-codeset.out): Depend on that.  Remove explicit rule.
3939         (tst-gettext3.out, tst-gettext5.out): Likewise.
3940         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3941         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3942         * intl/tst-codeset.sh: Remove.
3943         * intl/tst-gettext3.sh: Likewise.
3944         * intl/tst-gettext5.sh: Likewise.
3945
3946 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3947
3948         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3949         * sysdeps/unix/syscalls.list: ... here.
3950
3951         * sysdeps/posix/getaddrinfo.c
3952         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3953         (gaiconf_init, gaiconf_reload): Use them.
3954         [!_STATBUF_ST_NSEC]
3955         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3956         Define using time_t rather than struct timespec.
3957
3958         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3959         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3960         Macros removed.
3961         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3962         [!NO_THREADS].
3963         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3964         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3965         Likewise.
3966
3967         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3968         __libc_cleanup_push argument.
3969
3970         * bits/param.h: New file.
3971         * misc/sys/param.h: New file.
3972         * include/sys/param.h: New file.
3973         * misc/Makefile (headers): Add bits/param.h.
3974         * sysdeps/generic/sys/param.h: File removed.
3975         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3976         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3977         * sysdeps/mach/hurd/bits/param.h: New file.
3978         * sysdeps/mach/hurd/sys/param.h: File removed.
3979
3980         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3981         last change.
3982
3983         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3984         [_IO_MTSAFE_IO].
3985         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3986         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3987         New macros.
3988
3989         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3990         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3991         rather than -D_IO_MTSAFE_IO conditionally.
3992         * stdio-common/Makefile (CPPFLAGS): Likewise.
3993         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3994         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3995         Use $(libio-mtsafe).
3996         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3997         of -D_IO_MTSAFE_IO.
3998         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3999         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4000         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4001         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4002         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4003         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4004         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4005         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4006         (CFLAGS-fread_u_chk.c): Likewise.
4007         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4008         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4009         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4010         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4011         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4012         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4013         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4014         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4015         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4016
4017         * libio/Makefile: Test [$(libc-reentrant) = yes]
4018         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4019
4020         * Makeconfig
4021         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4022         * sysdeps/pthread/configure: File removed.
4023         * sysdeps/pthread/Makeconfig: New file.
4024         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4025         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4026
4027 2012-08-16  Gary Benson  <gbenson@redhat.com>
4028
4029         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4030         unmapping the first object in a namespace.
4031
4032 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4033
4034         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4035         (__internal_setnetgrent): ... this.  Add internal_function to
4036         definition.  Add libc_hidden_def.
4037         (setnetgrent): Update caller.
4038         (internal_endnetgrent): Renamed to ...
4039         (__internal_endnetgrent): ... this.  Add internal_function to
4040         definition.  Add libc_hidden_def.
4041         (endnetgrent): Update caller.
4042         (internal_getnetgrent_r): Renamed to ...
4043         (__internal_getnetgrent_r): ... this.  Add internal_function to
4044         definition.  Add libc_hidden_def.
4045         (__getnetgrent_r): Update caller.
4046         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4047
4048 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4049
4050         * stdlib/longlong.h: Update from GCC.
4051
4052 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4053
4054         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4055         on _QL, which is set by umul_ppmm but never used.
4056         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4057         variables, which are set by GMP macros but never used.
4058         * stdio-common/_itowa.c (_itowa): Likewise.
4059         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4060         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4061
4062 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4063
4064         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4065         struct La_sh_regs is not constant.
4066         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4067         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4068         and struct La_sparc64_regs are not constant.
4069
4070 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4071
4072         * sysdeps/unix/sysv/linux/kernel-features.h
4073         (__ASSUME_POSIX_TIMERS): Remove.
4074         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4075         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4076         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4077         Make code unconditional.
4078         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4079         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4080         Make code unconditional.
4081         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4082         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4083         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4084         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4085         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4086         Make code unconditional.
4087         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4088         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4089         (__libc_missing_posix_timers): Remove.
4090
4091 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4092
4093         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4094         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4095
4096         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4097
4098         * elf/dl-sym.c: Include <stdlib.h>.
4099
4100         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4101         constants, which avoids warnings in 32-bit builds.
4102
4103         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4104         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4105
4106         * misc/lseek.c: File moved to ...
4107         * io/lseek.c: ... here.
4108
4109         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4110
4111         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4112         shifting LEN more than 31 bits at once.
4113
4114 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4115
4116         [BZ #14195]
4117         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4118         segmentation fault for a case of two empty input strings.
4119         * string/test-strncasecmp.c (check1): Renamed to...
4120         (bz12205): ...this.
4121         (bz14195): Add new testcase for two empty input strings and N > 0.
4122         (test_main): Call new testcase, adapt for renamed function.
4123
4124 2012-08-15  Andreas Jaeger  <aj@suse.de>
4125
4126         [BZ #14090]
4127         * crypt/md5test2.c: New test, based on test supplied by Serge
4128         Belyshev <belyshev@depni.sinp.msu.ru>.
4129         * crypt/Makefile (xtests): Add md5test-giant..
4130         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4131
4132 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4133
4134         [BZ #14090]
4135         * crypt/md5.c (md5_process_block): Don't assume the buffer
4136         length is less than 2**32.
4137         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4138         length is less than 2**64.
4139
4140 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4141
4142         * string/str-two-way.h: Include <sys/param.h>.
4143         (MAX): Macro removed.
4144
4145         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4146         Move #define and #undef of memmove to just before and after
4147         including <string.h>.
4148
4149         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4150         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4151         and after including <string.h>.  Move declarations of
4152         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4153         to before #include "string/memmove.c".
4154
4155         * include/dirent.h: Declare __getdirentries.
4156
4157         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4158         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4159
4160 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4161
4162         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4163         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4164         * sysdeps/i386/configure: Regenerated.
4165         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4166         STABS_CURRENT_FILE, and STABS_FUN.
4167         (END): Remove call to STABS_FUN_END.
4168         (STABS_CURRENT_FILE1): Delete.
4169         (STABS_CURRENT_FILE): Likewise.
4170         (STABS_FUN): Likewise.
4171         (STABS_FUN_END): Likewise.
4172         (STABS_FUN2): Likewise.
4173         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4174         * sysdeps/x86_64/configure: Regenerated.
4175
4176 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4177
4178         * elf/dl-open.c: Include <atomic.h>.
4179         * elf/dl-lookup.c: Likewise.
4180
4181 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4182
4183         * sysdeps/unix/sysv/linux/kernel-features.h
4184         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4185         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4186         unconditionally.
4187         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4188         unconditionally.
4189         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4190         condition on __ASSUME_CLONE_THREAD_FLAGS.
4191
4192 2012-08-14  Andreas Jaeger  <aj@suse.de>
4193
4194         * sysdeps/i386/fpu/libm-test-ulps: Update.
4195
4196 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4197
4198         * include/atomic.h (atomic_exchange_and_add): Split into ...
4199         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4200         New atomic macros.
4201
4202 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4203
4204         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4205
4206 2012-08-13  Jeff Law <law@redhat.com>
4207
4208         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4209         null byte in the output string.
4210
4211 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4212
4213         * sysdeps/unix/sysv/linux/kernel-features.h
4214         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4215         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4216         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4217         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4218         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4219         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4220         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4221
4222 2012-08-09  Jeff Law <law@redhat.com>
4223
4224         [BZ #13939]
4225         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4226         When avoid_arena is set, don't retry in the that arena.  Pick the
4227         next one, whatever it might be.
4228         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4229         (arena_lock): Pass in new parameter to arena_get2.
4230         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4231         arena_get2.
4232         (__libc_malloc): Unify retrying after main arena failure with
4233         __libc_memalign version.
4234         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4235
4236 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4237
4238         [BZ #14166]
4239         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4240         to __redirect_strstr.
4241         (__strstr_sse42): Use typeof __redirect_strstr.
4242         (__strstr_ia32): Likewise.
4243         (__libc_strstr): New prototype.
4244         (strstr): Renamed to ...
4245         (__libc_strstr): This.
4246         (strstr): New strong alias of __libc_strstr.
4247         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4248         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4249         __redirect_time.
4250         Include <time.h>.
4251         (__libc_time): New prototype.
4252         (time_ifunc): Replace time with __libc_time.
4253         (time): New strong alias and hidden definition of __libc_time.
4254         (__GI_time): Remove strong alias.
4255         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4256         Include <stddef.h>.
4257         (memmove): Redefined to __redirect_memmove.
4258         (__memmove_sse2): Use typeof __redirect_memmove.
4259         (__memmove_ssse3): Likewise.
4260         (__memmove_ssse3_back): Likewise.
4261         (__libc_memmove): New prototype.
4262         (memmove): Renamed to ...
4263         (__libc_memmove): This.
4264         (memmove): New strong alias of __libc_memmove.
4265
4266 2012-08-08  Mark Salter  <msalter@redhat.com>
4267
4268         * elf/elf.h
4269         (R_MN10300_TLS_GD): Define.
4270         (R_MN10300_TLS_LD): Likewise.
4271         (R_MN10300_TLS_LDO): Likewise.
4272         (R_MN10300_TLS_GOTIE): Likewise.
4273         (R_MN10300_TLS_IE): Likewise.
4274         (R_MN10300_TLS_LE): Likewise.
4275         (R_MN10300_TLS_DTPMOD): Likewise.
4276         (R_MN10300_TLS_DTPOFF): Likewise.
4277         (R_MN10300_TLS_TPOFF): Likewise.
4278         (R_MN10300_SYM_DIFF): Likewise.
4279         (R_MN10300_ALIGN): Likewise.
4280         (R_MN10300_NUM): Update.
4281
4282 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4283
4284         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4285         Remove.
4286
4287 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4288
4289         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4290
4291         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4292         sysdeps/unix -> sysdeps/posix move.
4293         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4294
4295 2012-08-07      Allan McRae     <allan@archlinux.org>
4296
4297         [BZ #14303]
4298         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4299         (SUNOS_CPP): Likewise.
4300         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4301         not found.
4302         (open_input): Call CPP using execvp.
4303
4304 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4305
4306         * sysdeps/unix/sysv/linux/kernel-features.h
4307         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4308         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4309         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4310         (__ASSUME_WAITID_SYSCALL): Likewise.
4311         * sysdeps/unix/sysv/linux/dl-execstack.c
4312         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4313         code unconditional.
4314         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4315         conditional code.
4316         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4317         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4318         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4319         code.
4320         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4321         unconditional.
4322         [__ASSUME_WAITID_SYSCALL]: Likewise.
4323         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4324
4325 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4326
4327         * sysdeps/unix/closedir.c: Renamed to ...
4328         * sysdeps/posix/closedir.c: ... here.
4329         * sysdeps/unix/dirfd.c: Renamed to ...
4330         * sysdeps/posix/dirfd.c: ... here.
4331         * sysdeps/unix/dirstream.h: Renamed to ...
4332         * sysdeps/posix/dirstream.h: ... here.
4333         * sysdeps/unix/fdopendir.c: Renamed to ...
4334         * sysdeps/posix/fdopendir.c: ... here.
4335         * sysdeps/unix/opendir.c: Renamed to ...
4336         * sysdeps/posix/opendir.c: ... here.
4337         * sysdeps/unix/readdir.c: Renamed to ...
4338         * sysdeps/posix/readdir.c: ... here.
4339         * sysdeps/unix/readdir_r.c: Renamed to ...
4340         * sysdeps/posix/readdir_r.c: ... here.
4341         * sysdeps/unix/rewinddir.c: Renamed to ...
4342         * sysdeps/posix/rewinddir.c: ... here.
4343         * sysdeps/unix/seekdir.c: Renamed to ...
4344         * sysdeps/posix/seekdir.c: ... here.
4345         * sysdeps/unix/telldir.c: Renamed to ...
4346         * sysdeps/posix/telldir.c: ... here.
4347         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4348         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4349         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4350         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4351
4352         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4353         * bits/fcntl.h: ... here.
4354
4355         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4356         not 0.
4357         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4358         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4359         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4360         (struct flock): Move l_start, l_len to the beginning.
4361         Use __pid_t for l_pid.
4362         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4363         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4364         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4365         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4366         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4367         [__USE_LARGEFILE64] (struct flock64): New type.
4368         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4369
4370         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4371         * bits/dirent.h: ... here.
4372
4373         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4374         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4375
4376 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4377
4378         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4379         Change from 2.6.0 to 2.6.16.
4380         * sysdeps/unix/sysv/linux/configure: Regenerated.
4381         * sysdeps/unix/sysv/linux/kernel-features.h
4382         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4383         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4384         version.
4385         (__ASSUME_UTIMES): Likewise.
4386         (__ASSUME_CLONE_STOPPED): Remove.
4387         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4388         architectures, not kernel version.
4389         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4390         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4391         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4392         (__ASSUME_WAITID_SYSCALL): Likewise.
4393         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4394         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4395         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4396         refer to older versions.
4397
4398 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4399
4400         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4401         Define alphasort64 as an alias.
4402         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4403         Define versionsort64 as an alias.
4404         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4405         Define scandir64 as an alias.
4406         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4407         Define scandirat64 as an alias.
4408         * dirent/alphasort64.c (alphasort64):
4409         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4410         * dirent/versionsort64.c: Likewise.
4411         * dirent/scandir64.c: Likewise.
4412         * dirent/scandirat64.c: Likewise.
4413         * sysdeps/wordsize-64/alphasort.c: File removed.
4414         * sysdeps/wordsize-64/alphasort64.c: File removed.
4415         * sysdeps/wordsize-64/scandir.c: File removed.
4416         * sysdeps/wordsize-64/scandir64.c: File removed.
4417         * sysdeps/wordsize-64/scandirat.c: File removed.
4418         * sysdeps/wordsize-64/scandirat64.c: File removed.
4419         * sysdeps/wordsize-64/versionsort.c: File removed.
4420         * sysdeps/wordsize-64/versionsort64.c: File removed.
4421         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4422         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4423         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4424         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4425         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4426         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4427         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4428         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4429
4430         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4431         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4432         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4433         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4434         [defined __arch64__ || defined __sparcv9]
4435         (__INO_T_MATCHES_INO64_T): New macro.
4436         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4437         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4438         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4439         * sysdeps/unix/sysv/linux/bits/dirent.h
4440         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4441         (_DIRENT_MATCHES_DIRENT64): New macro.
4442
4443         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4444         Define lockf64 as an alias.
4445         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4446         Define fseeko64 as an alias.
4447         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4448         Define ftello64 as an alias.
4449         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4450         Define _IO_fgetpos64 and fgetpos64 as aliases.
4451         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4452         Define _IO_fsetpos64 and fsetpos64 as aliases.
4453         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4454         Conditionalize body on this.
4455         * libio/fseeko64.c: Likewise.
4456         * libio/ftello64.c: Likewise.
4457         * libio/iofgetpos64.c: Likewise.
4458         * libio/iofsetpos64.c: Likewise.
4459         * sysdeps/wordsize-64/lockf.c: File removed.
4460         * sysdeps/wordsize-64/lockf64.c: File removed.
4461         * sysdeps/wordsize-64/fseeko.c: File removed.
4462         * sysdeps/wordsize-64/fseeko64.c: File removed.
4463         * sysdeps/wordsize-64/ftello.c: File removed.
4464         * sysdeps/wordsize-64/ftello64.c: File removed.
4465         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4466         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4467         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4468         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4469         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4470         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4471         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4472         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4473         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4474         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4475         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4476         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4477         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4478         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4479
4480         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4481         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4482         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4483         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4484         [defined __arch64__ || defined __sparcv9]
4485         (__OFF_T_MATCHES_OFF64_T): New macro.
4486         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4487         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4488         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4489         (__OFF_T_MATCHES_OFF64_T): New macro.
4490
4491 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4492
4493         * stdlib/secure-getenv.c (__secure_getenv): Replace
4494         GLIBC_2_16 with GLIBC_2_17.
4495
4496 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4497
4498         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4499         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4500
4501 2012-08-03  David S. Miller  <davem@davemloft.net>
4502
4503         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4504
4505 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4506
4507         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4508         Remove.
4509         (__ASSUME_CORRECT_SI_PID): Likewise.
4510         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4511         (__ASSUME_TMPFS_NAME): Likewise.
4512         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4513         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4514         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4515         (HAVE_AUX_SECURE): Make definition unconditional.
4516         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4517         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4518
4519 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4520
4521         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4522         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4523         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4524         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4525         __eloop_threshold instead of SYMLOOP_MAX.
4526
4527         * sysdeps/generic/eloop-threshold.h: New file.
4528         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4529         of MAXSYMLINKS.
4530         * elf/chroot_canon.c (chroot_canon): Likewise.
4531
4532 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4533
4534         [BZ #13717]
4535         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4536         Change to 2.6.0 everywhere.
4537         * sysdeps/unix/sysv/linux/configure: Regenerated.
4538         * sysdeps/unix/sysv/linux/kernel-features.h
4539         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4540         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4541         kernel versions.
4542         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4543         (__ASSUME_FUTEX_REQUEUE): Remove.
4544         (__ASSUME_STATFS64): Define unconditionally.
4545         (__ASSUME_AT_SECURE): Likewise.
4546         (__ASSUME_CORRECT_SI_PID): Likewise.
4547         (__ASSUME_TGKILL): Define without depending on kernel version for
4548         i386.
4549         (__ASSUME_UTIMES): Likewise.
4550         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4551         kernel version.
4552         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4553         (__ASSUME_TMPFS_NAME): Likewise.
4554         * README: Update reference to Linux kernel versions.
4555
4556 2012-08-02  Marek Polacek  <polacek@redhat.com>
4557
4558         [BZ# 14150]
4559         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4560         libc_cv_asm_type_prefix with %.
4561         * configure: Regenerated.
4562         * include/libc-symbols.h: Remove comment about
4563         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4564         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4565         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4566         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4567         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4568         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4569         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4570         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4571         * elf/tst-unique2mod1.c: Likewise.
4572         * elf/tst-unique1mod2.c: Likewise.
4573         * elf/tst-unique1mod1.c: Likewise.
4574         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4575         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4576         Replace ASM_TYPE_DIRECTIVE with .type.
4577         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4578         * sysdeps/i386/sysdep.h: Likewise.
4579         * sysdeps/x86_64/sysdep.h: Likewise.
4580         * sysdeps/sh/sysdep.h: Likewise.
4581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4582         Do not define ASM_TYPE_DIRECTIVE.
4583         * sysdeps/powerpc/sysdep.h: Likewise.
4584         * sysdeps/powerpc/powerpc32/sysdep.h:
4585         Replace ASM_TYPE_DIRECTIVE with .type.
4586         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4587         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4588         * sysdeps/i386/fpu/e_powf.S: Likewise.
4589         * sysdeps/i386/fpu/e_expl.S: Likewise.
4590         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4591         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4592         * sysdeps/i386/fpu/e_pow.S: Likewise.
4593         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4594         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4595         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4596         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4597         * sysdeps/i386/fpu/e_log2.S: Likewise.
4598         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4599         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4600         * sysdeps/i386/fpu/e_powl.S: Likewise.
4601         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4602         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4603         * sysdeps/i386/fpu/e_logl.S: Likewise.
4604         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4605         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4606         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4607         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4608         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4609         * sysdeps/i386/fpu/e_log.S: Likewise.
4610         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4611         * sysdeps/i386/fpu/e_logf.S: Likewise.
4612         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4613         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4614         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4615         * sysdeps/i386/fpu/e_log10.S: Likewise.
4616         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4617         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4618         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4619         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4620         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4621         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4622         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4623         * sysdeps/i386/i686/strtok.S: Likewise.
4624         * sysdeps/i386/i386-mcount.S: Likewise.
4625         * sysdeps/i386/strtok.S: Likewise.
4626         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4627         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4628         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4629         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4630         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4631         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4632         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4633         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4634         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4635         * sysdeps/x86_64/_mcount.S: Likewise.
4636         * sysdeps/x86_64/strtok.S: Likewise.
4637         * sysdeps/sh/_mcount.S: Likewise.
4638
4639 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4640
4641         * libio/iofopen.c: Include <fcntl.h>.
4642         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4643         (_IO_fopen64, fopen64): Define as aliases.
4644         * libio/iofopen64.c: Include <fcntl.h>.
4645         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4646         Conditionalize body on this.
4647         * sysdeps/wordsize-64/iofopen.c: File removed.
4648         * sysdeps/wordsize-64/iofopen64.c: File removed.
4649
4650 2012-08-01  Marek Polacek  <polacek@redhat.com>
4651
4652         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4653         Use dlfcn directly instead of a variable.
4654         (binfmt-subdir): Do not define.
4655         (dlfcn): Likewise.
4656
4657 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4658
4659         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4660         Remove all definitions.
4661         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4662         <kernel-features.h>.
4663         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4664         (miss_F_GETOWN_EX): Remove all definitions.
4665         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4666         macro definition.
4667         [!__ASSUME_FCNTL64]: Remove conditional code.
4668         [__ASSUME_FCNTL64]: Make code unconditional.
4669         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4670         <kernel-features.h>.
4671         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4672         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4673         (lockf64) [__NR_fcntl64]: Make code unconditional.
4674         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4675
4676         * sysdeps/unix/sysv/linux/kernel-features.h
4677         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4678         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4679         Make code unconditional.
4680         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4681         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4683         [__NR_vfork]: Make code unconditional.
4684         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4685         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4687         [__NR_vfork]: Make code unconditional.
4688         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4689         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4690
4691 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4692
4693         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4694         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4695
4696         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4697         Define mkstemp64 as an alias.
4698         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4699         Define mkstemps64 as an alias.
4700         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4701         Define mkostemp64 as an alias.
4702         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4703         Define mkostemps64 as an alias.
4704         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4705         Conditionalize body on this.
4706         * misc/mkostemp64.c: Likewise.
4707         * misc/mkostemps64.c: Likewise.
4708         * misc/mkstemps64.c: Likewise.
4709         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4710         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4711         * sysdeps/wordsize-64/mkostemp.c: File removed.
4712         * sysdeps/wordsize-64/mkstemp.c: File removed.
4713         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4714         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4715         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4716         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4717
4718         [BZ #14138]
4719         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4720         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4721         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4722         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4723
4724         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4725         compat_symbol macros from <shlib-compat.h> rather than the underlying
4726         default_symbol_version and symbol_version macros, so that DEFAULT
4727         lines in shlib-versions are respected.
4728         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4729
4730 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4731
4732         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4733         Declare with warn_unused_result.
4734         (setgid, setregid, setegid, setresgid): Likewise.
4735         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4736         Likewise.
4737         * WUR-REPORT: Remove set*id functions.
4738
4739 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4740
4741         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4742
4743 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4744
4745         * include/sys/socket.h (__libc_accept, __libc_accept4):
4746         Add attribute_hidden.
4747         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4748
4749         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4750         use of PTR_MANGLE.
4751         * inet/getnetgrent_r.c (setup): Likewise.
4752
4753         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4754
4755 2012-07-31  David S. Miller  <davem@davemloft.net>
4756
4757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4758
4759 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4760
4761         [BZ #13629]
4762         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4763         value between 1.0 and 2.0 and smaller part has absolute value less
4764         than 1.0.
4765         * math/s_clog10.c (__clog10): Likewise.
4766         * math/s_clog10f.c (__clog10f): Likewise.
4767         * math/s_clog10l.c (__clog10l): Likewise.
4768         * math/s_clogf.c (__clogf): Likewise.
4769         * math/s_clogl.c (__clogl): Likewise.
4770         * math/libm-test.inc (clog_test): Add more tests.
4771         (clog10_test): Likewise.
4772         * sysdeps/i386/fpu/libm-test-ulps: Update.
4773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4774
4775 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4776
4777         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4778         Exit with zero in case no suitable GID is found, and write a
4779         message to standard error.
4780
4781 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4782
4783         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4784         rather than to 1.
4785         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4786         (MAXPATHLEN): Removed.
4787         (NOGROUP, NODEV): New macros.
4788         (setbit, clrbit, isset, isclr): New macros.
4789         (howmany, roundup, powerof2): New macros.
4790         (DEV_BSIZE): New macro.
4791
4792         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4793         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4794
4795         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4796         definition on [!__NO_LONG_DOUBLE_MATH].
4797
4798         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4799         PTR_MANGLE and PTR_DEMANGLE.
4800
4801         * socket/accept4.c (accept4): Rename to __libc_accept4.
4802         Define accept4 as a weak alias.
4803
4804         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4805         on [_DIRENT_HAVE_D_TYPE].
4806         * io/ftw.c (ftw_dir): Likewise.
4807
4808         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4809
4810         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4811
4812         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4813         Use the BSD numbers rather than the arbitrary ones we had.
4814         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4815         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4816         (SIGXCPU, SIGXFSZ): New macros.
4817         (_NSIG): Now 32.
4818
4819         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4820         initializer on [_LIBC_REENTRANT].
4821
4822         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4823         definitions inside [_POSIX_MAPPED_FILES].
4824
4825         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4826
4827         * dirent/opendir.c: Include <fcntl.h>.
4828
4829         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4830         (__libc_getspecific): Likewise.
4831         (__libc_key_create): Likewise.
4832
4833         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4834         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4835         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4836         (tmpfile64): Define as alias.
4837         * sysdeps/wordsize-64/tmpfile.c: File removed.
4838         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4839         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4840         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4841
4842         * stdio-common/vfscanf.c: Include <stdbool.h>.
4843         * nss/makedb.c: Likewise.
4844         * stdio-common/_i18n_number.h: Likewise.
4845         * argp/argp-help.c: Likewise.
4846         * posix/wordexp.c: Likewise.
4847         * sysdeps/posix/spawni.c: Likewise.
4848         * nss/nss_files/files-initgroups.c: Likewise.
4849         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4850         * nss/nss_files/files-initgroups.c: Likewise.
4851         * nss/nss_db/db-netgrp.c: Likewise.
4852         * nss/nss_db/db-initgroups.c: Likewise.
4853         * io/fchmodat.c: Include <sys/stat.h>.
4854
4855         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4856         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4857
4858         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4859         [HAVE_MMAP].
4860
4861         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4862         Add multiple inclusion protection.
4863
4864 2012-07-27  David S. Miller  <davem@davemloft.net>
4865
4866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4867
4868 2012-07-27  Gary Benson  <gbenson@redhat.com>
4869
4870         [BZ #14298]
4871         * elf/rtld.c: Include <stap-probe.h>.
4872         (dl_main): Added static probes "init_start" and "init_complete".
4873         * elf/dl-load.c: Include <stap-probe.h>.
4874         (lose): Take new parameter "nsid".
4875         Added static probe "map_failed".
4876         (_dl_map_object_from_fd): Pass namespace id to lose.
4877         Added static probe "map_start".
4878         (open_verify): Pass namespace id to lose.
4879         * elf/dl-open.c: Include <stap-probe.h>.
4880         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4881         and "reloc_complete".
4882         * elf/dl-close.c: Include <stap-probe.h>.
4883         (_dl_close_worker): Added static probes "unmap_start" and
4884         "unmap_complete".
4885         * elf/rtld-debugger-interface.txt: New file documenting the above.
4886
4887 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4888
4889         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4890         rather than a string variable.
4891         * sunrpc/rpc_main.c (h_output): Likewise.
4892         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4893
4894 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4895
4896         * inet/check_native.c: New file.
4897
4898 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4899
4900         [BZ #13629]
4901         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4902         if larger part has absolute value 1.0.
4903         * math/s_clog10.c (__clog10): Likewise.
4904         * math/s_clog10f.c (__clog10f): Likewise.
4905         * math/s_clog10l.c (__clog10l): Likewise.
4906         * math/s_clogf.c (__clogf): Likewise.
4907         * math/s_clogl.c (__clogl): Likewise.
4908         * math/libm-test.inc (clog_test): Add more tests.
4909         (clog10_test): Likewise.
4910         * sysdeps/i386/fpu/libm-test-ulps: Update.
4911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4912
4913         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4914         (pltexit): Likewise.
4915         (La_regs): Likewise.
4916         (La_retval): Likewise.
4917         (int_retval): Likewise.
4918         Update #error for removed macros to refer only to definitions in
4919         tst-audit.h.
4920         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4921         macro.
4922         (pltexit): Likewise.
4923         (La_regs): Likewise.
4924         (La_retval): Likewise.
4925         (int_retval): Likewise.
4926         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4927         macro.
4928         (pltexit): Likewise.
4929         (La_regs): Likewise.
4930         (La_retval): Likewise.
4931         (int_retval): Likewise.
4932         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4933         macro.
4934         (pltexit): Likewise.
4935         (La_regs): Likewise.
4936         (La_retval): Likewise.
4937         (int_retval): Likewise.
4938         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4939         macro.
4940         (pltexit): Likewise.
4941         (La_regs): Likewise.
4942         (La_retval): Likewise.
4943         (int_retval): Likewise.
4944         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4945         macro.
4946         (pltexit): Likewise.
4947         (La_regs): Likewise.
4948         (La_retval): Likewise.
4949         (int_retval): Likewise.
4950         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4951         macro.
4952         (pltexit): Likewise.
4953         (La_regs): Likewise.
4954         (La_retval): Likewise.
4955         (int_retval): Likewise.
4956         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4957         macro definitions in tst-audit.h.
4958         * sysdeps/i386/tst-audit.h: New file.
4959         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4960         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4961         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4962         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4963         * sysdeps/sh/tst-audit.h: Likewise.
4964         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4965         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4966         * sysdeps/x86_64/tst-audit.h: Likewise.
4967
4968 2012-07-26  Andreas Jaeger  <aj@suse.de>
4969
4970         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4971         ptrace.
4972
4973         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4974         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4975         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4976         PTRACE_O_MASK.
4977         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4978         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4979         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4980
4981         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4982         value.
4983
4984         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4985         _sigsys.
4986         (si_call_addr, si_syscall, si_arch): Define new macro.
4987         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4988         _sigsys.
4989         (si_call_addr, si_syscall, si_arch): Define new marcro.
4990         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4991         _sigsys.
4992         (si_call_addr, si_syscall, si_arch): Define new macro.
4993         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4994         _sigsys.
4995         (si_call_addr, si_syscall, si_arch): Define new macro.
4996
4997 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4998
4999         [BZ #13717]
5000         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5001         Change to 2.4.21 where previously 2.4.1.
5002         * sysdeps/unix/sysv/linux/configure: Regenerated.
5003         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5004         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5005         Linux kernel version.
5006         (__ASSUME_STD_AUXV): Remove.
5007         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5008         kernel version.
5009         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5010         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5011         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5012         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5013         (__ASSUME_NETLINK_SUPPORT): Likewise.
5014         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5015         (__no_netlink_support): Remove conditional definition.
5016         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5017         Remove.
5018         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5019         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5020         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5021         (if_nameindex_ioctl): Remove.
5022         (if_nameindex_netlink): Do not handle __no_netlink_support.
5023         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5024         code.
5025         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5026         Remove conditional code.
5027         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5028         code.
5029         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5030         unconditional.
5031         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5032         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5033         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5034         Remove.
5035         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5036         [!__ASSUME_STD_AUXV]: Remove conditional code.
5037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5038         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5039         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5041         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5042         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5043         code.
5044         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5046         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5047         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5048         conditional code.
5049         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5051         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5052         code.
5053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5054         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5055         conditional code.
5056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5057         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5058         code unconditional.
5059         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5060         conditional code.
5061         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5062         unconditional.
5063         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5064         conditional code.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5066         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5067         unconditional.
5068         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5069         conditional code.
5070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5071         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5072         code unconditional.
5073         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5074         conditional code.
5075         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5076         unconditional.
5077         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5078         conditional code.
5079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5080         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5081         code unconditional.
5082         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5083         conditional code.
5084         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5085         unconditional.
5086         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5087         conditional code.
5088
5089 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5090
5091         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5092         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5093         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5094         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5095         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5096         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5097         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5098         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5099         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5100         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5101         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5102         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5103         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5104         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5105         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5106         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5107         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5108         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5109         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5110         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5111         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5112         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5113         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5114
5115 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5116
5117         * Versions.def: Add GLIBC_2.17.
5118         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5119         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5120         Introduce __libc_secure_getenv.
5121         * stdlib/Versions (2.17): Add secure_getenv
5122         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5123         * stdlib/secure-getenv.c: Rename __secure_getenv to
5124         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5125         symbol __secure_getenv for GLIBC_2.0.
5126         * stdlib/tst-secure-getenv.c: New.
5127         * stdlib/Makefile (tests): Add testcase.
5128         * manual/startup.texi (Environment Access): Document
5129         secure_getenv.
5130         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5131         __libc_secure_getenv.
5132         * inet/ruserpass.c (ruserpass): Likewise.
5133         * malloc/mtrace.c (mtrace): Likewise.
5134         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5135         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5136         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5137         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5138         HAVE_SECURE_GETENV.
5139         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5140         __secure_getenv to __libc_secure_getenv.
5141         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5143         Likewise.
5144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5145         Likewise.
5146         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5148         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5151         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5153
5154 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5157         (struct La_i86_retval): Likewise.
5158         (struct La_x86_64_regs): Likewise.
5159         (struct La_x86_64_retval): Likewise.
5160         (struct La_x32_regs): Likewise.
5161         (struct La_x32_retval): Likewise.
5162         (struct La_ppc32_regs): Likewise.
5163         (struct La_ppc32_retval): Likewise.
5164         (struct La_ppc64_regs): Likewise.
5165         (struct La_ppc64_retval): Likewise.
5166         (struct La_sh_regs): Likewise.
5167         (struct La_sh_retval): Likewise.
5168         (struct La_s390_32_regs): Likewise.
5169         (struct La_s390_32_retval): Likewise.
5170         (struct La_s390_64_regs): Likewise.
5171         (struct La_s390_64_retval): Likewise.
5172         (struct La_sparc32_regs): Likewise.
5173         (struct La_sparc32_retval): Likewise.
5174         (struct La_sparc64_regs): Likewise.
5175         (struct La_sparc64_retval): Likewise.
5176         (struct audit_ifaces): Remove architecture-specific pltenter and
5177         pltexit members.
5178         * sysdeps/i386/ldsodefs.h: New file.
5179         * sysdeps/powerpc/ldsodefs.h: Likewise.
5180         * sysdeps/s390/ldsodefs.h: Likewise.
5181         * sysdeps/sh/ldsodefs.h: Likewise.
5182         * sysdeps/sparc/ldsodefs.h: Likewise.
5183         * sysdeps/x86_64/ldsodefs.h: Likewise.
5184
5185 2012-07-25  Marek Polacek  <polacek@redhat.com>
5186
5187         [BZ #6808]
5188         * math/libm-test.inc (yn_test): Add another test.
5189         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5190         to ERANGE when the result is +-Inf.
5191         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5192         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5193         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5194         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5195
5196 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5199         equal to 0.
5200         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5201         clock_t.
5202         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5203
5204 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5205
5206         * configure.in <sysdeps resolving>: Correct printing
5207         Implies_before.
5208         * configure: Regenerate.
5209
5210 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5211
5212         * math/w_ilogb.c: Include <limits.h>.
5213         * math/w_ilogbl.c: Likewise.
5214
5215 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5216
5217         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5218         va_copy.  Document allowing for unavailable va_copy only as
5219         pre-C99 compatibility.
5220         * manual/string.texi (Copying and Concatenation): Use va_copy
5221         instead of __va_copy in concat example.
5222
5223 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5224
5225         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5226         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5227         it if not null.
5228
5229         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5230         with O_NOLINK passed to __file_name_lookup.
5231
5232         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5233         with O_NOLINK passed to __file_name_lookup.
5234
5235         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5236         negative N or less than NGIDS.
5237
5238         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5239         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5240         enough.  Use memcpy instead of strncpy.
5241
5242 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5243
5244         * elf/Makefile (check-data): Remove.
5245         (localplt.data): New vpath directive.
5246         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5247         instead of $(check-data).
5248         * scripts/data/localplt-generic.data: Move to ...
5249         * sysdeps/generic/localplt.data: ... here.
5250         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5251         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5252         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5254         ... here.
5255         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5257         ... here.
5258         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5260         ... here.
5261         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5262         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5263         ... here.
5264         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5266         ... here.
5267         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5268         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5269         ... here.
5270
5271 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5272
5273         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5274         PPC32 and PPC64 files.
5275         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5276         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5277
5278 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5279
5280         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5281         __makecontext_ret to ...
5282         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5283         ... here and call exit if uc_link is NULL.  New file.
5284         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5285         __makecontext_ret.S.
5286         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5287         __makecontext_ret to ...
5288         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5289         ... here and call exit if uc_link is NULL.  New file.
5290         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5291         __makecontext_ret.S.
5292
5293 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5294
5295         * elf/elf.h (R_390_IRELATIVE): New definition.
5296         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5297         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5298         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5299         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5300         (elf_machine_lazy_rel): Likewise.
5301         * sysdeps/s390/dl-irel.h: New file.
5302         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5303         * sysdeps/s390/s390-64/memset.S: New asm code.
5304         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5305         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5306         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5307         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5308         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5309         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5310         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5311         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5312         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5313         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5314         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5315         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5316         * sysdeps/s390/s390-32/memset.S: New asm code.
5317         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5318
5319 2012-07-17  Marek Polacek  <polacek@redhat.com>
5320
5321         [BZ #14349]
5322         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5323         * sysdeps/s390/s390-64/configure.in: Likewise.
5324         * sysdeps/sparc/configure.in: Likewise.
5325         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5326         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5327         * sysdeps/i386/configure.in: Likewise.
5328         * sysdeps/x86_64/configure.in: Likewise.
5329         * sysdeps/sh/configure.in: Likewise.
5330         * sysdeps/s390/s390-32/configure: Regenerated.
5331         * sysdeps/s390/s390-64/configure: Likewise.
5332         * sysdeps/x86_64/configure: Likewise.
5333         * sysdeps/sh/configure: Likewise.
5334         * sysdeps/powerpc/powerpc64/configure: Likewise.
5335         * sysdeps/powerpc/powerpc32/configure: Likewise.
5336         * sysdeps/sparc/configure: Likwise.
5337         * sysdeps/i386/configure: Likewise.
5338
5339         * elf/dl-open.c: Comment fixes.
5340
5341 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5342
5343         * Makefile [CXX] (check-data): Remove.
5344         [CXX] (c++-types.data): New vpath directive.
5345         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5346         vpath.  Do not allow for C++ type data being missing.
5347         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5348         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5349         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5350         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5351         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5352         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5353         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5355         ... here.
5356         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5358         ... here.
5359         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5361         ... here.
5362         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5364         ... here.
5365         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5366         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5367         ... here.
5368         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5370         ... here.
5371         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5373         ... here.
5374         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5376
5377         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5378         definitions to architecture-specific files.
5379         (TLS_IE): Likewise.
5380         (TLS_LD): Likewise.
5381         (TLS_GD): Likewise.
5382         * sysdeps/i386/tls-macros.h: New file.
5383         * sysdeps/powerpc/tls-macros.h: Likewise.
5384         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5385         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5386         * sysdeps/sh/tls-macros.h: Likewise.
5387         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5388         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5389         * sysdeps/x86_64/tls-macros.h: Likewise.
5390
5391 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5392
5393         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5394         zero value for regular exit case.
5395
5396         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5397         (__start_context): Preserve zero value for regular exit case.
5398
5399 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5400             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5401
5402         * manual/setjmp.texi (setcontext): Clarify normal process
5403         termination when uc_link is the null pointer.
5404         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5405         exit call.
5406
5407 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5408
5409         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5410         preprocessor.  Test for each exception mask separately.
5411
5412 2012-07-16  Andreas Jaeger  <aj@suse.de>
5413
5414         * po/ru.po: Update from translation team.
5415
5416 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5417
5418         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5419         equal to 0.
5420         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5421         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5422         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5423         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5424         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5425
5426 2012-07-13  Andreas Jaeger  <aj@suse.de>
5427
5428         * po/fr.po: Update from translation team.
5429
5430 2012-07-12  Marek Polacek  <polacek@redhat.com>
5431
5432         [BZ #14173]
5433         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5434         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5435         loop condition.
5436
5437 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5438
5439         [BZ #13717]
5440         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5441         Change to 2.4.1 where previously 2.4.0.
5442         * sysdeps/unix/sysv/linux/configure: Regenerated.
5443         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5444         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5445         version.
5446         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5447         (__ASSUME_AT_CLKTCK): Remove.
5448         (__ASSUME_AT_PAGESIZE): Likewise.
5449         (__ASSUME_AT_XID): Likewise.
5450         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5451         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5452         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5453         unconditionally.
5454         (HAVE_AUX_PAGESIZE): Likewise.
5455         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5456         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5457         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5458
5459 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5460
5461         [BZ #14307]
5462         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5463         the temporary buffer used to invoke __gethostbyname2_r,
5464         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5465         host_data / struct gaih_addrtuple.
5466         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5467         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5468         header file nss/nsswitch.h.
5469         * nss/nsswitch.h (global scope): Add definition of implementation
5470         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5471         resolv/nss_dns/dns-host.c).
5472
5473 2012-07-11  Andreas Jaeger  <aj@suse.de>
5474
5475         * po/fr.po: Update from translation team.
5476
5477         * po/sv.po: Update from translation team
5478         * po/fr.po: Another update from translation team.
5479
5480 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5481
5482         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5483         for subnormals or multiply small sinh result by itself.
5484         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5485         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5486
5487 2012-07-11  David S. Miller  <davem@davemloft.net>
5488
5489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5490
5491 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5492
5493         [BZ #14347]
5494         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5495         (INTERNAL_MARK): Shift it here.
5496
5497 2012-07-10  Marek Polacek  <polacek@redhat.com>
5498
5499         [BZ #14151]
5500         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5501         libc_cv_asm_global_directive with .globl.
5502         * configure: Regenerated.
5503         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5504         with .globl.
5505         * sysdeps/i386/configure: Regenerated.
5506         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5507         with .globl.
5508         * sysdeps/x86_64/configure: Regenerated.
5509         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5510         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5511         * elf/tst-unique2mod2.c: Likewise.
5512         * elf/tst-unique2mod1.c: Likewise.
5513         * elf/tst-unique1mod2.c: Likewise.
5514         * elf/tst-unique1mod1.c: Likewise.
5515         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5516         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5517         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5518         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5519         * sysdeps/mach/sysdep.h: Likewise.
5520         * sysdeps/i386/sysdep.h: Likewise.
5521         * sysdeps/i386/i386-mcount.S: Likewise.
5522         * sysdeps/x86_64/_mcount.S: Likewise.
5523         * sysdeps/x86_64/sysdep.h: Likewise.
5524         * sysdeps/sh/_mcount.S: Likewise.
5525         * sysdeps/sh/sysdep.h: Likewise.
5526         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5527         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5528         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5529         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5530         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5531         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5532         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5533         * locale/localeinfo.h: Likewise.
5534         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5535         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5536
5537 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5538
5539         [BZ #14336]
5540         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5541         system".
5542         * manual/message.texi (The Uniforum approach): Likewise.
5543         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5544         (glibc iconv Implementation): Likewise.
5545
5546 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5547
5548         [BZ #14337]
5549         * math/s_clog.c (__clog): Avoid scaling a value down where that
5550         could result in underflow.
5551         * math/s_clog10.c (__clog10): Likewise.
5552         * math/s_clog10f.c (__clog10f): Likewise.
5553         * math/s_clog10l.c (__clog10l): Likewise.
5554         * math/s_clogf.c (__clogf): Likewise.
5555         * math/s_clogl.c (__clogl): Likewise.
5556         * math/libm-test.inc (clog_test): Add more tests.
5557         (clog10_test): Likewise.
5558         * sysdeps/i386/fpu/libm-test-ulps: Update.
5559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5560
5561 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5562
5563         [BZ #14283]
5564         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5565         by 7 not 8 to examine high bit of fractional part.
5566
5567         [BZ #14042]
5568         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5569         for call to __mcount_internal.
5570         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5571         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5572         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5573
5574 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5575
5576         [BZ #14154]
5577         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5578         approximation for values within 0x1p-13f of an odd multiple of
5579         pi/4.
5580         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5581         exception.  Add more tests.
5582         * sysdeps/i386/fpu/libm-test-ulps: Update.
5583
5584         [BZ #6778]
5585         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5586         inputs and return -1 for them.  Do not check for +Inf in case not
5587         reachable for +Inf.
5588         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5589         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5590         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5591         and return -1 for them.  Do not check for +Inf in case not
5592         reachable for +Inf.
5593         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5594         define.
5595         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5596         and return -1 for them.  Do not check for +Inf in case not
5597         reachable for +Inf.
5598         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5599         spurious underflow.
5600         * sysdeps/i386/fpu/libm-test-ulps: Update.
5601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5602
5603 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5604
5605         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5606
5607 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5608
5609         [BZ #14157]
5610         [BZ #14331]
5611         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5612         could result in spurious underflow.  Scale down values above
5613         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5614         * math/s_csqrtf.c (__csqrtf): Likewise.
5615         * math/s_csqrtl.c (__csqrtl): Likewise.
5616         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5617         spurious underflow.
5618         * sysdeps/i386/fpu/libm-test-ulps: Update.
5619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5620
5621 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5622
5623         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5624         xopen-msg.sed.
5625         * catgets/xopen-msg.awk: New file.
5626         * catgets/xopen-msg.sed: Removed.
5627
5628         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5629         po2text.sed.
5630         * intl/po2test.awk: New file.
5631         * intl/po2test.sed: Removed.
5632
5633 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5634
5635         [BZ #14328]
5636         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5637         or multiply small sinh result by itself.
5638         * math/s_ctanf.c (__ctanf): Likewise.
5639         * math/s_ctanh.c (__ctanh): Likewise.
5640         * math/s_ctanhf.c (__ctanhf): Likewise.
5641         * math/s_ctanhl.c (__ctanhl): Likewise.
5642         * math/s_ctanl.c (__ctanl): Likewise.
5643         * math/libm-test.inc (ctan_test_tonearest): New function.
5644         (ctan_test_towardzero): Likewise.
5645         (ctan_test_downward): Likewise.
5646         (ctan_test_upward): Likewise.
5647         (ctanh_test_tonearest): Likewise.
5648         (ctanh_test_towardzero): Likewise.
5649         (ctanh_test_downward): Likewise.
5650         (ctanh_test_upward): Likewise.
5651         (main): Call these new functions.
5652         * sysdeps/i386/fpu/libm-test-ulps: Update.
5653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5654
5655 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5656
5657         * .gitignore: Delete /ports entry.
5658
5659 2012-07-03  Andreas Jaeger  <aj@suse.de>
5660
5661         * po/bg.po: Update from translation team.
5662         * po/cs.po: Likewise.
5663         * po/de.po: Likewise.
5664         * po/hr.po: Likewise.
5665         * po/nl.pl: Likewise.
5666         * po/pl.po: Likewise.
5667         * po/vi.po: Likewise.
5668
5669 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5670
5671         * Makeconfig [!+link] (+link-before-libc): New variable.
5672         [!+link] (+link-after-libc): Likewise.
5673         [!+link] (+link-tests): Likewise.
5674         [!+link] (+link): Define in terms of $(+link-before-libc) and
5675         $(+link-after-libc).
5676         [!+link-static] (+link-static-before-libc): New variable.
5677         [!+link-static] (+link-static-after-libc): Likewise.
5678         [!+link-static] (+link-static-tests): Likewise.
5679         [!+link-static] (+link-static): Define in terms of
5680         $(+link-static-before-libc) and $(+link-static-after-libc).
5681         [build-shared] (link-libc-before-gnulib): New variable.
5682         [build-shared] (link-libc-tests): Likewise.
5683         [build-shared] (link-libc): Define in terms of
5684         $(link-libc-before-gnulib).
5685         [!build-shared] (link-libc-tests): New variable.
5686         (link-libc-static-tests): New variable.
5687         [!gnulib] (gnulib-arch): New variable.
5688         [!gnulib] (gnulib-tests): Likewise.
5689         [!gnulib] (static-gnulib-arch): Likewise.
5690         [!gnulib] (static-gnulib-tests): Likewise.
5691         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5692         Define with "=" instead of ":=".
5693         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5694         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5695         * Rules (binaries-all-notests): New variable.
5696         (binaries-all-tests): Likewise.
5697         (binaries-static-notests): Likewise.
5698         (binaries-static-tests): Likewise.
5699         (binaries-all): Define using $(binaries-all-notests) and
5700         $(binaries-all-tests).
5701         (binaries-static): Define using $(binaries-static-notests) and
5702         $(binaries-static-tests).
5703         (binaries-shared-tests): New variable.
5704         (binaries-shared-notests): Likewise.
5705         (binaries-shared): Remove variable.
5706         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5707         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5708         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5709         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5710         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5711         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5712         * elf/Makefile (sln-modules): New variable.
5713         (extra-objs): Add $(sln-modules:=.o).
5714         (ldconfig-modules): Add static-stubs.
5715         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5716         * elf/static-stubs.c: New file.
5717
5718         [BZ #14283]
5719         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5720         by 7 not 8 to examine high bit of fractional part.  Use volatile
5721         variables when splitting into final array of floats if
5722         __FLT_EVAL_METHOD__ != 0.
5723         * math/libm-test.inc (cos_test): Add another test.
5724         (sin_test): Likewise.
5725         * sysdeps/i386/fpu/libm-test-ulps: Update.
5726
5727         [BZ #14273]
5728         * math/libm-test.inc (cosh_test): Add more tests.
5729
5730         * version.h (RELEASE): Set to "development".
5731         (VERSION): Set to "2.16.90".
5732
5733 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5734
5735         * NEWS: Update copyright. Remove last-updated date.
5736         Mention math library bug fixes and timezone data changes.
5737         * README: Mention GNU/Hurd, x32, and HPPA support status.
5738
5739 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5740
5741         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5742
5743 2012-06-27  Andreas Jaeger  <aj@suse.de>
5744
5745         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5746
5747 2012-06-25  Andreas Jaeger  <aj@suse.de>
5748
5749         * sysdeps/s390/fpu/libm-test-ulps: Update.
5750
5751 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5752             Thomas Schwinge  <thomas@codesourcery.com>
5753
5754         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5755         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5756         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5757         fanotify_mark.
5758
5759 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5760
5761         * sysdeps/mach/start.c: Remove file.
5762         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5763         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5764         * sysdeps/sh/init-first.c: Likewise.
5765
5766         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5767         registers for frame unwinding purposes, add CFI directives.
5768         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5769         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5770         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5771         Likewise.
5772
5773         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5774         __fortify_fail returning.
5775         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5776
5777         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5778         sysdeps/sh/____longjmp_chk.S.
5779         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5780         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5781         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5782         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5783
5784         * sysdeps/sh/abort-instr.h: New file.
5785         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5786         process in case exit returns.
5787
5788         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5789         initialize the GOT register before use.
5790
5791         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5792         calculation of ARGC > 4.
5793
5794         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5795         meaningful names to some local labels.
5796
5797 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5798             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5799
5800         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5801         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5802         (__arch_compare_and_exchange_val_16_acq): Likewise.
5803         (__arch_compare_and_exchange_val_32_acq): Likewise.
5804         (atomic_exchange_and_add): Fix gUSA sequence.
5805         (atomic_add): Likewise.
5806         (atomic_add_negative): Likewise.
5807         (atomic_add_zero): Likewise.
5808         (atomic_bit_test_set): Likewise.
5809
5810 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5811
5812         [BZ #13579]
5813         * include/link.h (struct link_map): Add l_free_initfini.
5814         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5815         l_initfini.
5816         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5817         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5818         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5819         set.
5820
5821 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5822
5823         * configure.in: Use AC_LANG_SOURCE.
5824         * configure: Regenerate.
5825
5826 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5827
5828         * configure.in (libc_cv_localstatedir): New substituted variable.
5829         * configure: Regenerated.
5830         * config.make.in (localstatedir): New variable, substituted from
5831         libc_cv_localstatedir.
5832         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5833         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5834         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5835         * sysdeps/gnu/configure: Regenerated.
5836
5837 2012-06-21  Jeff Law  <law@redhat.com>
5838
5839         [BZ #14277]
5840         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5841         free.  Simplify list management for _LIBC case.
5842
5843 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5844
5845         [BZ #14273]
5846         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5847         Clear sign bit of 64-bit integer value before comparing against
5848         overflow value.
5849
5850         * sysdeps/mach/configure: Regenerated.
5851
5852 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5853
5854         [BZ #14278]
5855         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5856
5857 2012-06-21  Jeff Law  <law@redhat.com>
5858
5859         [BZ #13882]
5860         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5861         uint16_t for elements in the "seen" array to avoid char overflows.
5862         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5863         * elf/dl-open.c (dl_open_worker): Likewise.
5864
5865 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5866
5867         * scripts/list-sources.sh: Scan PORTS for translations.
5868         * po/libc.pot: Regenerated.
5869
5870 2012-06-21  Andreas Jaeger  <aj@suse.de>
5871
5872         [BZ #12194]
5873         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5874         warning.
5875         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5876         * bits/byteswap-16.h (__bswap_16): Likewise.
5877         * bits/byteswap.h (__bswap_constant_16): Likewise.
5878
5879 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5880
5881         [BZ #14117]
5882         * sysdeps/i386/fpu_control.h: Removed.
5883         * sysdeps/x86_64/fpu_control.h: Moved to ...
5884         * sysdeps/x86/fpu_control.h: Here.
5885
5886         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5887         (_FPU_SETCW): Likewise.
5888
5889 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         [BZ #14117]
5892         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5893         * sysdeps/x86/fpu/bits/mathinline.h: This.
5894         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5895
5896         [BZ #14050]
5897         [BZ #14117]
5898         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5899         functions if __x86_64__ is defined.
5900
5901 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5902
5903         * string/endian.h: Add !__ASSEMBLER__ condition for including
5904         conversion interfaces.
5905
5906 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5907
5908         [BZ #14241]
5909         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5910         of ABS(x) in calculating zero to negative powers other than odd
5911         integers.
5912         * math/libm-test.inc (pow_test): Add more tests.
5913
5914 2012-06-15  Andreas Jaeger  <aj@suse.de>
5915
5916         * manual/contrib.texi (Contributors): Update entry of Liubov
5917         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5918         Machado Filho.
5919
5920 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5921
5922         * string/string.h: Add __wur to GNU version of strerror_r.
5923
5924 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5925
5926         [BZ #14229]
5927         * string/Makefile (tests): Add tst-strtok_r.
5928         * string/tst-strtok_r.c: New file.
5929         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5930         RAX_LP/RDX_LP on SAVE_PTR.
5931
5932 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5933
5934         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5935
5936 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5937
5938         * libm_test.inc (csqrt_test): Allow more spurious underflow
5939         exceptions.
5940         (j0_test): Likewise.
5941         (j1_test): Likewise.
5942         (y0_test): Likewise.
5943         (y1_test): Likewise.
5944
5945 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5946
5947         * po/Makefile (libc.pot): Use UTF-8 charset.
5948
5949 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5950
5951         [BZ #14210]
5952         Suppress sign-conversion warning from FD_SET.
5953         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5954         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5955         not unsigned long int.
5956         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5957
5958 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5959
5960         [BZ #14050]
5961         [BZ #14117]
5962         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5963         __extern_always_inline instead of __extern_inline.
5964         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5965         (__signbit): Likewise.
5966         (__signbitl): Support C++ namespace.
5967         (lrintf): New inline function.
5968         (lrint): Likewise.
5969         (llrintf): Likewise.
5970         (llrint): Likewise.
5971         (fmaxf): Likewise.
5972         (fmax): Likewise.
5973         (fminf): Likewise.
5974         (fmin): Likewise.
5975         (rint): Likewise.
5976         (rintf): Likewise.
5977         (ceil): Likewise.
5978         (ceilf): Likewise.
5979         (floor): Likewise.
5980         (floorf): Likewise.
5981         (nearbyint): Likewise.
5982         (nearbyintf): Likewise.
5983
5984 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5985
5986         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5987         non-default versions.
5988
5989 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5990
5991         [BZ #14218]
5992         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5993
5994 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5995
5996         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5997         (FE_UPWARD, FE_DOWNWARD): Don't define.
5998         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5999         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6000
6001         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6002         reading it.
6003         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6004         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6005
6006 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6007
6008         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6009         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6010         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6011         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6012
6013 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         [BZ #14117]
6016         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6017         * sysdeps/i386/fpu/Implies: New file.
6018         * sysdeps/x86_64/fpu/Implies: Likewise.
6019         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6020         * sysdeps/x86/fpu/bits/fenv.h: This.
6021
6022         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6023         __SSE_MATH__.
6024
6025 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6026
6027         [BZ #14134]
6028         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6029         character 0xffff that matches the last element of the
6030         conversion table.
6031
6032 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6033
6034         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6035         fmodl commit.
6036
6037 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6038
6039         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6040         values higher than 25.6283.
6041
6042 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6043
6044         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6045         subnormal exponent extraction and add some __builtin_expect.
6046         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6047         Fix for subnormal mantissa calculation.
6048
6049 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6050
6051         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6052         cpu2 is -1 and errno is not ENOSYS.
6053
6054 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6055
6056         [BZ #14117]
6057         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6058         * sysdeps/x86/bits/string.h: This.
6059         * sysdeps/x86_64/bits/string.h: Removed.
6060
6061         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6062         if not compiling for x86-64, but compiling for >= i486.
6063
6064         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6065         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6066
6067         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6068         New macro from Linux kernel 3.4.0.
6069         (FP_XSTATE_MAGIC2): Likewise.
6070         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6071         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6072         (struct _fpx_sw_bytes): New struct.
6073         (struct _xsave_hdr): Likewise.
6074         (struct _ymmh_state): Likewise.
6075         (struct _xstate): Likewise.
6076
6077         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6078         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6079         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6080         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6081         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6082         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6083
6084         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6085         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6086         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6087         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6088         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6089         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6090
6091 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6092
6093         [BZ #13743]
6094         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6095         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6096         (sysdep_headers): Include sys/platform/ppc.h.
6097         * sysdeps/powerpc/test-gettimebase.c: Test for
6098         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6099         * manual/Makefile (appendices): Include platform.texi.
6100         * manual/contrib.texi (Contributors): Update @node pointers.
6101         * manual/maint.texi (Maintenance): Likewise.
6102         (Platform): New node.
6103         * manual/platform.texi: New file.  Document the new features.
6104
6105 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6106             Jakub Jelinek  <jakub@redhat.com>
6107
6108         [BZ #14188]
6109         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6110         where __builtin_expect is unavailable.
6111
6112 2012-06-03  David S. Miller  <davem@davemloft.net>
6113
6114         * stdlib/longlong.h: Updated from GCC.
6115
6116 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6117
6118         [BZ #14042]
6119         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6120         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6121         __mcount_internal.
6122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6123         (GLIBC_2.16): Likewise.
6124
6125 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6126
6127         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6128
6129 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6130
6131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6132         (default-abi): New variable.
6133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6134         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6135         variable.
6136         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6137         Likewise.
6138         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6139         Likewise.
6140         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6141         Likewise.
6142
6143         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6144         definition.  Document in comment.
6145
6146 2012-06-01  David S. Miller  <davem@davemloft.net>
6147
6148         * stdlib/longlong.h: Updated from GCC.
6149
6150 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6151
6152         [BZ #14117]
6153         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6154         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6155         sys/debugreg.h sys/io.h here.
6156         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6157         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6158         sys/io.h.
6159         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6160         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6161         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6162         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6163         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6164         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6165
6166         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6167         Define only if __x86_64__ is defined.
6168
6169 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6170
6171         [BZ #14048]
6172         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6173         Use int64_t for variable i.
6174         * math/libm-test.inc (fmod_test): Add more tests.
6175
6176         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6177         z computation is not scheduled after fetestexcept.
6178         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6179         Use math_force_eval instead of asm to ensure calculation scheduled
6180         before exception test.
6181         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6182         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6183
6184 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6185
6186         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6187         computation is not scheduled after fetestexcept.
6188
6189 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6190
6191         [BZ #14117]
6192         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6193         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6194
6195 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6196
6197         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6198         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6199
6200 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6201
6202         [BZ #14117]
6203         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6204         <bits/wordsize.h>.
6205         (__WCHAR_MIN): Support __WORDSIZE == 64.
6206         (__WCHAR_MAX): Likewise.
6207
6208         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6209         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6210
6211         [BZ #14183]
6212         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6213         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6214
6215         [BZ #14117]
6216         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6217         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6218
6219         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6220         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6221
6222         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6223         Defined to 1 if __x86_64__ isn't defined.
6224         (_STAT_VER_LINUX_OLD): New.
6225         (st_atime): Remove duplicate.
6226         (st_mtime): Likewise.
6227         (st_ctime): Likewise.
6228
6229 2012-05-31  David S. Miller  <davem@davemloft.net>
6230
6231         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6232         entries.
6233
6234 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6235
6236         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6237         gen-libm-test.pl.
6238
6239         [BZ #14132]
6240         * elf/dl-reloc.c: Include <_itoa.h>.
6241         (_dl_reloc_bad_type): Remove use of INTUSE.
6242         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6243         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6244         * stdio-common/psiginfo.c (psiginfo): Likewise.
6245         * stdio-common/psignal.c (psignal): Likewise.
6246         * string/strsignal.c (strsignal): Likewise.
6247         * include/signal.h (_sys_siglist): Declare hidden proto.
6248         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6249         INTVARDEF with libc_hidden_data_def.
6250         * stdio-common/itoa-udigits.c: Likewise.
6251         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6252         (_itoa_lower_digits_internal): Remove declaration.
6253         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6254         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6255         (_sys_sigabbrev_internal): Remove aliases.
6256         (_sys_siglist): Define hidden alias.
6257
6258 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6259
6260         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6261         bits/sysctl.h.
6262
6263 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6264
6265         [BZ #14117]
6266         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6267         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6268
6269         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6270         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6271         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6272         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6273         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6274         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6275
6276         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6277         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6278         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6279
6280         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6281         with __addr.
6282         (insw): Likewise.
6283         (insl): Likewise.
6284         (outsb): Likewise.
6285         (outsw): Likewise.
6286         (outsl): Likewise.
6287
6288         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6289         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6290         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6291
6292         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6293         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6294         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6295         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6296         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6297         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6298
6299         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6300         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6301
6302         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6303         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6304
6305         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6306         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6307         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6308
6309         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6310         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6311         to ...
6312         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6313
6314         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6315         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6316         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6317
6318         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6319         for x86-64.
6320         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6321
6322 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6323
6324         * math/math.h (M_El): Use two more decimal places.
6325         (M_LOG2El): Likewise.
6326         (M_LOG10El): Likewise.
6327         (M_LN2l): Likewise.
6328         (M_LN10l): Likewise.
6329         (M_PIl): Likewise.
6330         (M_PI_2l): Likewise.
6331         (M_PI_4l): Likewise.
6332         (M_1_PIl): Likewise.
6333         (M_2_PIl): Likewise.
6334         (M_2_SQRTPIl): Likewise.
6335         (M_SQRT2l): Likewise.
6336         (M_SQRT1_2l): Likewise.
6337
6338 2012-05-31  David S. Miller  <davem@davemloft.net>
6339
6340         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6341         values between float registers.
6342         * sysdeps/sparc/sparc64/memset.S: Likewise.
6343         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6344
6345 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6346
6347         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6348         -D_FORTIFY_SOURCE=1.
6349         (CPPFLAGS-tst-longjmp_chk.c): Define.
6350         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6351         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6352         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6353         CFLAGS-tst-wchar-h.c.
6354
6355 2012-05-31  Marek Polacek  <polacek@redhat.com>
6356
6357         [BZ #14132]
6358         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6359         __endmntent_internal): Remove declaration.
6360         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6361         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6362         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6363
6364 2012-05-30  David S. Miller  <davem@davemloft.net>
6365
6366         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6367         (___Q_simulate_exceptions): Use real FP ops rather than writing
6368         into the %fsr.
6369         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6370         Likewise.
6371
6372 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6373
6374         [BZ #14117]
6375         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6376         * sysdeps/x86/bits/xtitypes.h: This.
6377
6378         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6379         * sysdeps/x86/bits/wordsize.h: This.
6380
6381         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6382         * sysdeps/x86/bits/huge_vall.h: This.
6383
6384         * sysdeps/i386/bits/select.h: Removed.
6385         * sysdeps/x86_64/bits/select.h: Renamed to ...
6386         * sysdeps/x86/bits/select.h: This.
6387
6388         * sysdeps/i386/bits/setjmp.h: Removed.
6389         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6390         * sysdeps/x86/bits/setjmp.h: This.
6391
6392         * sysdeps/i386/bits/mathdef.h: Removed.
6393         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6394         * sysdeps/x86/bits/mathdef.h: This.
6395
6396 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6397
6398         [BZ #14132]
6399         * include/sys/socket.h (__connect_internal)
6400         (__libc_sa_len_internal): Remove declaration.
6401         (__connect, __libc_sa_len): Declare hidden_proto.
6402         (SA_LEN): Remove use of INTUSE.
6403         * socket/connect.c: Add libc_hidden_def.
6404         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6405         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6406         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6407         alias.
6408         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6409         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6410         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6411         of adding _internal alias.
6412
6413 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6414
6415         [BZ #14117]
6416         * sysdeps/i386/bits/link.h: Removed.
6417         * sysdeps/i386/bits/linkmap.h: Likewise.
6418         * sysdeps/x86_64/bits/link.h: Renamed to ...
6419         * sysdeps/x86/bits/link.h: This.
6420         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6421         * sysdeps/x86/bits/linkmap.h: This.
6422
6423         * sysdeps/i386/bits/endian.h: Removed.
6424         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6425         * sysdeps/x86/bits/endian.h: This.
6426
6427         * sysdeps/i386/bits/byteswap.h: Removed.
6428         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6429         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6430         * sysdeps/x86/bits/byteswap.h: This.
6431         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6432         * sysdeps/x86/bits/byteswap-16.h: This.
6433         * sysdeps/i386/Implies: Add x86.
6434         * sysdeps/x86_64/Implies: Likewise.
6435
6436 2012-05-30  David S. Miller  <davem@davemloft.net>
6437
6438         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6439         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6440         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6441         (FP_TRAPPING_EXCEPTIONS): Define.
6442         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6443         (FP_TRAPPING_EXCEPTIONS): Define.
6444         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6445         subnormals only when inexact has been signalled or underflow
6446         exceptions are enabled.
6447         (_FP_PACK_CANONICAL): Likewise.
6448
6449 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6450
6451         [BZ #14183]
6452         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6453         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6454
6455 2012-05-30  Richard Henderson  <rth@twiddle.net>
6456
6457         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6458         with #ifndef NOT_IN_libc.
6459
6460         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6461         marked to avoid plt entry.
6462
6463 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6464
6465         [BZ #14112]
6466         * Makeconfig (default-abi): New macro.
6467         (abi-includes): Likewise.
6468         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6469         $(abi-$(default-abi)-lib-soname) for soname if defined.
6470         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6471         abi-variants.
6472         * Makefile (installed-stubs): Likewise.
6473         * include/stubs-biarch.h: Removed.
6474         * scripts/lib-names.awk: Only handle one library at a time.
6475         * scripts/soversions.awk: Remove WORDSIZE support.
6476         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6477         entries.
6478         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6479         Removed.
6480         (syscall-list-default-condition): Likewise.
6481         (syscall-list-default-condition): Likewise.
6482         (syscall-list-includes): Likewise.
6483         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6484         syscall-list-* with abi-*.  Handle undefined abi-variants.
6485         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6486         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6487         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6488         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6489         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6490         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6491         Removed.
6492         (syscall-list-32-options): Likewise.
6493         (syscall-list-32-condition): Likewise.
6494         (syscall-list-64-options): Likewise.
6495         (syscall-list-64-condition): Likewise.
6496         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6497         macro.
6498         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6499         Renamed to ...
6500         (abi-*): This.
6501         (abi-64-ld-soname): New macro.
6502         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6503         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6504         Renamed to ...
6505         (abi-*): This.
6506         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6507         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6508
6509 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6510
6511         * sysdeps/unix/sysv/linux/kernel-features.h
6512         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6513         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6514         include <kernel-features.h>.
6515         [!__NR_ftruncate64]: Remove conditional code.
6516         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6517         [__NR_ftruncate64]: Make code unconditional.
6518         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6519         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6520         include <kernel-features.h>.
6521         [!__NR_ftruncate64]: Remove conditional code.
6522         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6523         [__NR_ftruncate64]: Make code unconditional.
6524         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6526         include <kernel-features.h>.
6527         [!__NR_ftruncate64]: Remove conditional code.
6528         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6529         [__NR_ftruncate64]: Make code unconditional.
6530         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6532         include <kernel-features.h>.
6533         [!__NR_ftruncate64]: Remove conditional code.
6534         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6535         [__NR_ftruncate64]: Make code unconditional.
6536         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6537
6538         * configure.in (libc_cv_fpie): Weaken to a compile test using
6539         LIBC_TRY_CC_OPTION.
6540         * configure: Regenerated.
6541
6542 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6543
6544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6548         Refreshed.
6549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6551         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6553         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6554         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6555         Refreshed.
6556
6557 2012-05-27  David S. Miller  <davem@davemloft.net>
6558
6559         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6560         (___Q_zero): New.
6561         (__Q_simulate_exceptions): Return void.  Change to simulate
6562         exceptions by writing into the %fsr.
6563         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6564         (__Qp_handle_exceptions): Likewise.
6565         (numbers): Delete.
6566         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6567         __Qp_handle_exceptions.
6568         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6569         __Qp_handle_exceptions.
6570         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6571         as unused and give dummy FP_RND_NEAREST initializer.
6572         (FP_INHIBIT_RESULTS): Define.
6573         (___Q_simulate_exceptions): Update declaration.
6574         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6575         formatting.
6576         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6577         as unused and give dummy FP_RND_NEAREST initializer.
6578         (__Qp_handle_exceptions): Update declaration.
6579         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6580         formatting.
6581
6582 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6583
6584         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6585         the temporary FPU control word.
6586         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6587         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6588         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6589         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6590         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6591         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6592         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6593         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6594         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6595         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6596         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6597
6598 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6599
6600         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6601         fields.
6602
6603 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6604
6605         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6606         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6607         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6608         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6609         Likewise.
6610         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6611         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6612         Likewise.
6613
6614 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6615
6616         * po/h.po: Update from translation team.
6617
6618 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6619
6620         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6621
6622         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6623         handling of denormals.
6624         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6625         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6626         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6627         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6628         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6629         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6630         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6631         Likewise.
6632
6633 2012-05-26  Marek Polacek  <polacek@redhat.com>
6634
6635         [BZ #14152]
6636         * math/libm-test.inc (fma_test): Don't always expect underflow
6637         exception.
6638
6639 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6640
6641         [BZ #12416]
6642         * elf/tst-execstack.c: Include stackinfo.h.
6643         (do_test): Adjust test case to ensure that pthread_getattr_np
6644         behaviour remains the same after marking stack executable.
6645
6646 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6647
6648         * sysdeps/unix/sysv/linux/kernel-features.h
6649         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6650         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6651         kernel-features.h.
6652         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6653         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6654         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6655         kernel-features.h.
6656         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6657         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6658
6659 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6660
6661         * configure.in: Define the default includes to being none.
6662         * configure: Regenerated.
6663
6664 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6665
6666         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6667         * sysdeps/x86_64/setjmp.S: Likewise.
6668         * sysdeps/i386/bsd-setjmp.S: Likewise.
6669         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6670         * sysdeps/i386/setjmp.S: Likewise.
6671         * sysdeps/i386/__longjmp.S: Likewise.
6672         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6673         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6674
6675         * include/stap-probe.h: New file.
6676         * configure.in: Handle --enable-systemtap.
6677         * configure: Regenerated.
6678         * config.h.in (USE_STAP_PROBE): New #undef.
6679         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6680         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6681         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6682
6683 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6684
6685         [BZ #13717]
6686         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6687         to 2.4.0 where earlier.
6688         * sysdeps/unix/sysv/linux/configure: Regenerated.
6689         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6690         <kernel-features.h>.
6691         [__ASSUME_32BITUIDS]: Make code unconditional.
6692         [!__ASSUME_32BITUIDS]: Remove conditional code.
6693         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6694         <kernel-features.h>.
6695         [__ASSUME_32BITUIDS]: Make code unconditional.
6696         [!__ASSUME_32BITUIDS]: Remove conditional code.
6697         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6698         [__ASSUME_32BITUIDS]: Make code unconditional.
6699         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6700         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6701         <kernel-features.h>.
6702         [__ASSUME_32BITUIDS]: Make code unconditional.
6703         [!__ASSUME_32BITUIDS]: Remove conditional code.
6704         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6705         <kernel-features.h>.
6706         [__ASSUME_32BITUIDS]: Make code unconditional.
6707         [!__ASSUME_32BITUIDS]: Remove conditional code.
6708         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6709         <kernel-features.h>.
6710         [__ASSUME_32BITUIDS]: Make code unconditional.
6711         [!__ASSUME_32BITUIDS]: Remove conditional code.
6712         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6713         <kernel-features.h>.
6714         [__ASSUME_32BITUIDS]: Make code unconditional.
6715         [!__ASSUME_32BITUIDS]: Remove conditional code.
6716         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6717         <kernel-features.h>.
6718         [__ASSUME_32BITUIDS]: Make code unconditional.
6719         [!__ASSUME_32BITUIDS]: Remove conditional code.
6720         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6721         <kernel-features.h>.
6722         [__ASSUME_32BITUIDS]: Make code unconditional.
6723         [!__ASSUME_32BITUIDS]: Remove conditional code.
6724         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6725         <kernel-features.h>.
6726         [__ASSUME_32BITUIDS]: Make code unconditional.
6727         [!__ASSUME_32BITUIDS]: Remove conditional code.
6728         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6729         <kernel-features.h>.
6730         [__ASSUME_32BITUIDS]: Make code unconditional.
6731         [!__ASSUME_32BITUIDS]: Remove conditional code.
6732         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6733         <kernel-features.h>.
6734         [__ASSUME_32BITUIDS]: Make code unconditional.
6735         [!__ASSUME_32BITUIDS]: Remove conditional code.
6736         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6737         <kernel-features.h>.
6738         [__ASSUME_32BITUIDS]: Make code unconditional.
6739         [!__ASSUME_32BITUIDS]: Remove conditional code.
6740         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6741         <kernel-features.h>.
6742         [__NR_setresgid] (__setresgid): Do not declare.
6743         [__ASSUME_32BITUIDS]: Make code unconditional.
6744         [!__ASSUME_32BITUIDS]: Remove conditional code.
6745         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6746         <kernel-features.h>.
6747         [__NR_setresuid] (__setresuid): Do not declare.
6748         [__ASSUME_32BITUIDS]: Make code unconditional.
6749         [!__ASSUME_32BITUIDS]: Remove conditional code.
6750         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6751         <kernel-features.h>.
6752         [__ASSUME_32BITUIDS]: Make code unconditional.
6753         [!__ASSUME_32BITUIDS]: Remove conditional code.
6754         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6755         <kernel-features.h>.
6756         [__ASSUME_32BITUIDS]: Make code unconditional.
6757         [!__ASSUME_32BITUIDS]: Remove conditional code.
6758         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6759         <kernel-features.h>.
6760         [__ASSUME_32BITUIDS]: Make code unconditional.
6761         [!__ASSUME_32BITUIDS]: Remove conditional code.
6762         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6763         <kernel-features.h>.
6764         [__ASSUME_32BITUIDS]: Make code unconditional.
6765         [!__ASSUME_32BITUIDS]: Remove conditional code.
6766         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6767         <kernel-features.h>.
6768         [__ASSUME_32BITUIDS]: Make code unconditional.
6769         [!__ASSUME_32BITUIDS]: Remove conditional code.
6770         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6771         <kernel-features.h>.
6772         [__ASSUME_32BITUIDS]: Make code unconditional.
6773         [!__ASSUME_32BITUIDS]: Remove conditional code.
6774         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6775         <kernel-features.h>.
6776         [__ASSUME_32BITUIDS]: Make code unconditional.
6777         [!__ASSUME_32BITUIDS]: Remove conditional code.
6778         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6779         <kernel-features.h>.
6780         [__ASSUME_32BITUIDS]: Make code unconditional.
6781         [!__ASSUME_32BITUIDS]: Remove conditional code.
6782         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6783         <kernel-features.h>.
6784         [__ASSUME_32BITUIDS]: Make code unconditional.
6785         [!__ASSUME_32BITUIDS]: Remove conditional code.
6786         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6787         <kernel-features.h>.
6788         [__ASSUME_32BITUIDS]: Make code unconditional.
6789         [!__ASSUME_32BITUIDS]: Remove conditional code.
6790         * sysdeps/unix/sysv/linux/kernel-features.h
6791         (__ASSUME_SETRESUID_SYSCALL): Remove.
6792         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6793         (__ASSUME_32BITUIDS): Likewise.
6794         (__ASSUME_LDT_WORKS): Likewise.
6795         (__ASSUME_O_DIRECTORY): Likewise.
6796         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6797         architecture but not kernel version.
6798         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6799         (__ASSUME_MMAP2_SYSCALL): Likewise.
6800         (__ASSUME_STAT64_SYSCALL): Likewise.
6801         (__ASSUME_IPC64): Likewise.
6802         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6803         <kernel-features.h>.
6804         [__ASSUME_32BITUIDS]: Make code unconditional.
6805         [!__ASSUME_32BITUIDS]: Remove conditional code.
6806         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6807         <kernel-features.h>.
6808         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6809         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6810         132096]: Remove conditional code.
6811         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6812         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6813         <kernel-features.h>.
6814         [__ASSUME_32BITUIDS]: Make code unconditional.
6815         [!__ASSUME_32BITUIDS]: Remove conditional code.
6816         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6817         <kernel-features.h>.
6818         [__ASSUME_32BITUIDS]: Make code unconditional.
6819         [!__ASSUME_32BITUIDS]: Remove conditional code.
6820         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6821         <kernel-features.h>.
6822         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6823         unconditional.
6824         (__setresgid): Do not declare.
6825         [__ASSUME_32BITUIDS]: Make code unconditional.
6826         [!__ASSUME_32BITUIDS]: Remove conditional code.
6827         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6828         <kernel-features.h>.
6829         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6830         unconditional.
6831         (__setresuid): Do not declare.
6832         [__ASSUME_32BITUIDS]: Make code unconditional.
6833         [!__ASSUME_32BITUIDS]: Remove conditional code.
6834         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6835         <kernel-features.h>.
6836         [__ASSUME_32BITUIDS]: Make code unconditional.
6837         [!__ASSUME_32BITUIDS]: Remove conditional code.
6838         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6839         <kernel-features.h>.
6840         [__ASSUME_32BITUIDS]: Make code unconditional.
6841         [!__ASSUME_32BITUIDS]: Remove conditional code.
6842
6843 2012-05-25  Richard Henderson  <rth@twiddle.net>
6844
6845         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6846         dl_hwcap to ifunc resolver.
6847         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6848         elf_ifunc_invoke.
6849         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6850         dl_hwcap to ifunc resolver.
6851         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6852
6853 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6854
6855         [BZ #14153]
6856         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6857         for |x| <= 2**-26, not 2**-57.
6858         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6859         exception.
6860
6861 2012-05-24  Jeff Law  <law@redhat.com>
6862
6863         * stdio-common/Makefile (tests): Add bug25.
6864         * stdio-common/bug25.c: New test.
6865
6866 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6867
6868         [BZ #13576]
6869         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6870         multiple of MALLOC_ALIGNMENT in size.
6871         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6872
6873 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6876         Require >= 256.
6877         (FILENAME_MAX): Use macro-int-constant.
6878         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6879         (_IOFBF): Use macro-int-constant.
6880         (_IOLBF): Likewise.
6881         (_IONBF): Likewise.
6882         (SEEK_CUR): Likewise.
6883         (SEEK_END): Likewise.
6884         (SEEK_SET): Likewise.
6885         (TMP_MAX): Likewise.
6886         (EOF): Use macro-int-constant.  Require < 0.
6887         (NULL): Use macro-constant.  Require == 0.
6888         (stdin): Require type to be FILE *.
6889         (stdout): Likewise.
6890         (stderr): Likewise.
6891         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6892         macro-int-constant.
6893         (EXIT_SUCCESS): Likewise.
6894         (NULL): Use macro-constant.  Require == 0.
6895         (RAND_MAX): Use macro-int-constant.
6896         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6897         [C99-based standards] (strtof): Require function.
6898         [C99-based standards] (strtold): Likewise.
6899         [C99-based standards] (strtoll): Likewise.
6900         [C99-based standards] (strtoull): Likewise.
6901         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6902         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6903         [ISO || ISO99 || ISO11] (math.h): Likewise.
6904         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6905         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6906         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6907
6908 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6909
6910         [BZ #14132]
6911         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6912         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6913         * intl/dgettext.c (DCGETTEXT): Likewise.
6914         * intl/gettext.c (DCGETTEXT): Likewise.
6915         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6916         * posix/regex_internal.h (gettext): Likewise.
6917         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6918         Remove declaration.
6919         * include/argz.h (__argz_count_internal)
6920         (__argz_stringify_internal): Remove declaration.
6921         (__argz_count, __argz_stringify): Declare hidden proto.
6922         * intl/dcgettext.c: Remove use of INTDEF.
6923         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6924         * string/argz-stringify.c: Likewise.
6925         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6926         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6927         Declare hidden proto.
6928         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6929         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6930         Declare hidden proto.
6931         * include/stdio.h (__asprintf_internal): Don't declare.
6932         (__asprintf): Don't define as macro.  Declare hidden proto.
6933         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6934         (__fsetlocking): Declare hidden proto.
6935         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6936         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6937         hidden proto.
6938         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6939         (_IO_setlinebuf): Remove use of INTUSE.
6940         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6941         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6942         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6943         Remove declaration.
6944         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6945         (_IO_do_flush): Remove use of INTUSE.
6946         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6947         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6948         (_IO_adjust_column, _IO_least_wmarker)
6949         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6950         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6951         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6952         (_IO_default_doallocate, _IO_wdefault_doallocate)
6953         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6954         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6955         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6956         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6957         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6958         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6959         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6960         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6961         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6962         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6963         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6964         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6965         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6966         proto.
6967         (_IO_flush_all_internal, _IO_adjust_column_internal)
6968         (_IO_default_uflow_internal, _IO_default_finish_internal)
6969         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6970         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6971         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6972         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6973         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6974         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6975         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6976         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6977         (_IO_file_close_internal, _IO_file_close_it_internal)
6978         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6979         (_IO_file_init_internal, _IO_file_attach_internal)
6980         (_IO_file_fopen_internal, _IO_file_read_internal)
6981         (_IO_file_sync_internal, _IO_file_seek_internal)
6982         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6983         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6984         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6985         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6986         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6987         (_IO_list_all_internal, _IO_link_in_internal)
6988         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6989         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6990         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6991         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6992         (_IO_do_write_internal, _IO_padn_internal)
6993         (_IO_getline_info_internal, _IO_getline_internal)
6994         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6995         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6996         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6997         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6998         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6999         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7000         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7001         with libc_hidden_ver, remove use of INTUSE.
7002         * libio/genops.c: Likewise.
7003         * libio/freopen.c: Likewise.
7004         * libio/freopen64.c: Likewise.
7005         * libio/iofclose.c: Likewise.
7006         * libio/iofdopen.c: Likewise.
7007         * libio/iofflush.c: Likewise.
7008         * libio/iofflush_u.c: Likewise.
7009         * libio/iofgets.c: Likewise.
7010         * libio/iofgets_u.c: Likewise.
7011         * libio/iofopen.c: Likewise.
7012         * libio/iofopncook.c: Likewise.
7013         * libio/iofread.c: Likewise.
7014         * libio/iofread_u.c: Likewise.
7015         * libio/ioftell.c: Likewise.
7016         * libio/iofwrite.c: Likewise.
7017         * libio/iogetline.c: Likewise.
7018         * libio/iogets.c: Likewise.
7019         * libio/iogetwline.c: Likewise.
7020         * libio/iopadn.c: Likewise.
7021         * libio/iopopen.c: Likewise.
7022         * libio/ioseekoff.c: Likewise.
7023         * libio/ioseekpos.c: Likewise.
7024         * libio/iosetbuffer.c: Likewise.
7025         * libio/iosetvbuf.c: Likewise.
7026         * libio/ioungetc.c: Likewise.
7027         * libio/ioungetwc.c: Likewise.
7028         * libio/iovdprintf.c: Likewise.
7029         * libio/iovsprintf.c: Likewise.
7030         * libio/iovsscanf.c: Likewise.
7031         * libio/memstream.c: Likewise.
7032         * libio/obprintf.c: Likewise.
7033         * libio/oldfileops.c: Likewise.
7034         * libio/oldiofclose.c: Likewise.
7035         * libio/oldiofdopen.c: Likewise.
7036         * libio/oldiofopen.c: Likewise.
7037         * libio/oldiopopen.c: Likewise.
7038         * libio/oldstdfiles.c: Likewise.
7039         * libio/putc.c: Likewise.
7040         * libio/setbuf.c: Likewise.
7041         * libio/setlinebuf.c: Likewise.
7042         * libio/stdfiles.c: Likewise.
7043         * libio/strops.c: Likewise.
7044         * libio/vasprintf.c: Likewise.
7045         * libio/vscanf.c: Likewise.
7046         * libio/vsnprintf.c: Likewise.
7047         * libio/vswprintf.c: Likewise.
7048         * libio/wfiledoalloc.c: Likewise.
7049         * libio/wfileops.c: Likewise.
7050         * libio/wgenops.c: Likewise.
7051         * libio/wmemstream.c: Likewise.
7052         * libio/wstrops.c: Likewise.
7053         * libio/__fpurge.c: Likewise.
7054         * libio/__fsetlocking.c: Likewise.
7055         * assert/assert.c: Likewise.
7056         * debug/fgets_chk.c: Likewise.
7057         * debug/fgets_u_chk.c: Likewise.
7058         * debug/fread_chk.c: Likewise.
7059         * debug/fread_u_chk.c: Likewise.
7060         * debug/gets_chk.c: Likewise.
7061         * debug/obprintf_chk.c: Likewise.
7062         * debug/vasprintf_chk.c: Likewise.
7063         * debug/vdprintf_chk.c: Likewise.
7064         * debug/vsnprintf_chk.c: Likewise.
7065         * debug/vsprintf_chk.c: Likewise.
7066         * malloc/mtrace.c: Likewise.
7067         * misc/error.c: Likewise.
7068         * misc/syslog.c: Likewise.
7069         * stdio-common/asprintf.c: Likewise.
7070         * stdio-common/fxprintf.c: Likewise.
7071         * stdio-common/getw.c: Likewise.
7072         * stdio-common/isoc99_fscanf.c: Likewise.
7073         * stdio-common/isoc99_scanf.c: Likewise.
7074         * stdio-common/isoc99_vfscanf.c: Likewise.
7075         * stdio-common/isoc99_vscanf.c: Likewise.
7076         * stdio-common/isoc99_vsscanf.c: Likewise.
7077         * stdio-common/printf-prs.c: Likewise.
7078         * stdio-common/printf_fp.c: Likewise.
7079         * stdio-common/printf_fphex.c: Likewise.
7080         * stdio-common/printf_size.c: Likewise.
7081         * stdio-common/putw.c: Likewise.
7082         * stdio-common/scanf.c: Likewise.
7083         * stdio-common/sprintf.c: Likewise.
7084         * stdio-common/tmpfile.c: Likewise.
7085         * stdio-common/vfprintf.c: Likewise.
7086         * stdio-common/vfscanf.c: Likewise.
7087         * stdlib/strfmon_l.c: Likewise.
7088         * sunrpc/openchild.c: Likewise.
7089         * sunrpc/xdr_stdio.c: Likewise.
7090         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7091         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7092
7093 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7094
7095         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7096
7097         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7098         in the third column, to generate for the shared library an IFUNC
7099         that uses _dl_vdso_vsym.
7100         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7101         * Makeconfig (object-suffixes-noshared): New variable.
7102
7103         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7104         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7105         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7106         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7107
7108         [BZ #14132]
7109         * include/sys/time.h (__gettimeofday): Remove macro.
7110         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7111         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7112         Remove INTDEF.
7113         (__gettimeofday): Add libc_hidden_def.
7114         (gettimeofday): Add libc_hidden_weak.
7115         * sysdeps/mach/gettimeofday.c: Likewise.
7116         * sysdeps/posix/gettimeofday.c: Likewise.
7117         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7118         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7119         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7120         (__gettimeofday_internal): Remove strong_alias.
7121         (__gettimeofday): Add libc_hidden_def.
7122         (gettimeofday): Add libc_hidden_weak.
7123         * sysdeps/unix/syscalls.list (gettimeofday):
7124         Remove __gettimeofday_internal alias.
7125
7126 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7127             H.J. Lu  <hongjiu.lu@intel.com>
7128
7129         [BZ #12495]
7130         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7131         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7132         (largebin_index_32_big): New.
7133         (largebin_index): Use it for 16-byte alignment.
7134         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7135         correction with front_misalign.
7136
7137 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7138
7139         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7141         Likewise.
7142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7143         Likewise.
7144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7145         Likewise.
7146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7147         Likewise.
7148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7149         Likewise.
7150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7151         Likewise.
7152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7153         Likewise.
7154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7155         Likewise.
7156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7157         Likewise.
7158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7159         Likewise.
7160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7161         Likewise.
7162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7163         Likewise.
7164
7165         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7166         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7167
7168 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7169
7170         [BZ #10846]
7171         [BZ #14036]
7172         * math/libm-test.inc (exp_test): Add test from bug 14036.
7173         (pow_test): Add test from bug 10846.
7174
7175         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7176         and other flags.
7177         (special_function): Do not include flags in test name.
7178         (parse_args): Likewise.
7179         * sysdeps/i386/fpu/libm-test-ulps: Update.
7180         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7181         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7182         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7184
7185         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7186         exceptions.
7187         * math/libm-test.inc ("Philosophy"): Update comment about
7188         exception testing.
7189         (UNDERFLOW_EXCEPTION): New macro.
7190         (UNDERFLOW_EXCEPTION_OK): Likewise.
7191         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7192         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7193         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7194         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7195         (INVALID_EXCEPTION_OK): Update value.
7196         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7197         (OVERFLOW_EXCEPTION_OK): Likewise.
7198         (IGNORE_ZERO_INF_SIGN): Likewise.
7199         (test_exceptions): Handle underflow exceptions.
7200         (acos_test): Update for underflow exception expectations.
7201         (cexp_test): Likewise.
7202         (clog_test): Likewise.
7203         (clog10_test): Likewise.
7204         (csqrt_test): Likewise.
7205         (ctan_test): Likewise.
7206         (ctanh_test): Likewise.
7207         (exp_test): Likewise.
7208         (exp10_test): Likewise.
7209         (exp2_test): Likewise.
7210         (expm1_test): Likewise.
7211         (fma_test): Likewise.
7212         (j0_test): Likewise.
7213         (jn_test): Likewise.
7214         (nexttoward_test): Likewise.
7215         (pow_test): Likewise.
7216         (scalbn_test): Likewise.
7217         (scalbln_test): Likewise.
7218         (tan_test): Likewise.
7219         (y1_test): Likewise.
7220         * sysdeps/i386/fpu/libm-test-ulps: Update.
7221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7222
7223 2012-05-23  David S. Miller  <davem@davemloft.net>
7224
7225         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7226         (__libc_sigaction): Remove unused local variables.
7227
7228 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7229
7230         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7231
7232 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         mktime: avoid signed integer overflow
7235         * time/mktime.c (__mktime_internal): Do not mishandle the case
7236         where diff == INT_MIN.
7237
7238         mktime: simplify computation of average
7239         * time/mktime.c (ranged_convert): Use new time_t_avg function
7240         instead of rolling our own (probably-slower) code.
7241
7242         mktime: do not assume signed right shift propagates sign bit
7243         * time/mktime.c (isdst_differ): New static function.
7244         (__mktime_internal): No need to normalize tm_isdst now.
7245         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7246         tm_isdst values.
7247
7248         mktime: merge another wrapv change from gnulib
7249         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7250         from some compilers.
7251
7252         mktime: remove incorrect attempt at unusual arithmetics
7253         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7254         The code didn't really work on such machines anyway.
7255         (TYPE_MINIMUM): Assume two's complement.
7256         (twos_complement_arithmetic): Verify that long_int and time_t
7257         are two's complement (or unsigned, in the latter case).
7258
7259         mktime: check signed shifts on long_int and time_t, too
7260         * time/mktime.c (SHR): Check that shifts work as desired
7261         on the types long_int and time_t too, as SHR is used on
7262         such types.
7263
7264         mktime: do not assume 'long' is wide enough
7265         * time/mktime.c (verify): Move decl up.
7266         (long_int): New type.
7267         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7268         to remove assumption in the code that 'long' is wide enough to
7269         store year values.  This assumption is not true on x32 and on
7270         some non-glibc platforms.
7271
7272         mktime: merge wrapv change from gnulib
7273         * time/mktime.c (WRAPV): New macro.
7274         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7275         (guess_time_tm, __mktime_internal): Do not assume that signed
7276         integer overflow wraps around; modern compilers generate code
7277         where this assumption is no longer valid.
7278
7279 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7280
7281         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7282         Replace "jmp L(pseudo_end)" with "ret".
7283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7284         Likewise.
7285
7286 2012-05-23  Andreas Jaeger  <aj@suse.de>
7287
7288         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7289         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7290
7291 2012-05-23  Andreas Jaeger  <aj@suse.de>
7292             Maximilian Attems  <max@stro.at>
7293
7294         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7295         New macros.
7296
7297 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7298
7299         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7300         code so that pseudo_end is just ret and the stack pointer is
7301         correct also for static library in error case.
7302
7303 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7304
7305         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7306         move to syscalls.list.
7307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7311
7312         * manual/install.texi (Running make install): Do not mention Linux
7313         kernel version for which pt_chown is not needed.
7314         (Linux): Do not mention problems with nscd with 2.0 kernels.
7315         * INSTALL: Regenerated.
7316
7317 2012-05-23  Andreas Jaeger  <aj@suse.de>
7318
7319         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7320         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7321         macro.
7322         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7323         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7324         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7325         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7326         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7327         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7328         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7329         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7330         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7331         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7332         * sysdeps/unix/sysv/linux/bits/in.h
7333         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7334
7335 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7336
7337         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7338         (PREPARE_VERSION): Just use assert instead, it will be elided
7339         under [NDEBUG] anyway.
7340
7341 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7342
7343         * sysdeps/unix/sysv/linux/Makefile: Include
7344         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7345         (sysdep_routines): Remove sysctl.
7346         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7347         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7348         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7349         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7350         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7351
7352 2012-05-22  Andreas Jaeger  <aj@suse.de>
7353
7354         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7355         that pseudo_end is just ret and the stack pointer is correct also
7356         for static library in error case.
7357
7358 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7359
7360         [BZ #14122]
7361         * nss/nsswitch.c (defconfig_entries): New variable.
7362         (__nss_database_lookup): Don't leak defconfig entries.
7363         (nss_parse_service_list): Don't leak on error paths.
7364         (free_database_entries): New function.
7365         (free_defconfig): New function.
7366         (free_mem): Move common code to free_database_entries.
7367
7368 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7369
7370         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7371         Add arch_prctl.
7372         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7373
7374         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7375         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7376         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7377         New macro.
7378         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7379         (INTERNAL_SYSCALL_TYPES): Likewise.
7380         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7381         (LOAD_REGS_TYPES_[1-6]): Likewise.
7382         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7383         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7384
7385 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7386
7387         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7388         copysignl for GLIBC_2_0.
7389         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7390         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7391         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7392         logbl for GLIBC_2_0.
7393         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7394         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7395
7396 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7397
7398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7399         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7400
7401         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7402         Use "neg %eax".
7403
7404         * time/mktime.c: Update copyright years.
7405
7406 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         mktime: merge comment-quoting-style change from gnulib
7409         * time/mktime.c: Quote 'like this' in comments.
7410         The GNU coding standards suggest that we no longer quote `like this',
7411         as "`" and "'" are typically rendered asymmetrically nowadays.
7412         The typical gnulib style is to quote 'like this' when quoting
7413         code, and "like this" when quoting English.
7414
7415         * time/mktime.c (compile-command): Add "-I.".
7416
7417         mktime: merge mktime-internal.h change from gnulib
7418         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7419
7420         mktime: merge time_r change from gnulib
7421         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7422
7423         mktime: merge DEBUG change from gnulib
7424         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7425         case system <time.h> has a #define.
7426
7427         mktime: merge <sys/types.h> change from gnulib
7428         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7429         since <time.t> is now guaranteed to define time_t.
7430
7431         mktime: merge HAVE_CONFIG_H change from gnulib
7432         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7433
7434 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7435
7436         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7437         Use "neg %eax".
7438
7439         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7440         __rlim_t cast.
7441         (struct rusage): Use anonymous union to pad each field to
7442         __syscall_slong_t.
7443
7444 2012-05-21  David S. Miller  <davem@davemloft.net>
7445
7446         * Makefules (o-iterator): Remove .s cases.
7447         (compile-command.s): Delete.
7448         (COMPILE.s): Delete.
7449         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7450
7451 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * configure.in (libc_cv_predef_stack_protector): Only consider
7454         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7455         * configure: Regenerated.
7456
7457 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7458
7459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7460         New macro.  Use R*LP on int and pointer.
7461         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7462         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7463         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7464         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7465
7466         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7467         [__WORDSIZE_TIME64_COMPAT32] instead of
7468         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7469         (struct utmp): Likewise.
7470         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7471         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7472         Renamed to ...
7473         (__WORDSIZE_TIME64_COMPAT32): This.
7474         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7475         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7476         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7477         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7478         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7479         (__WORDSIZE_TIME64_COMPAT32): New macro.
7480
7481 2012-05-21  Andreas Jaeger  <aj@suse.de>
7482
7483         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7484         only if [SHARED]. Add prototype for __wcschr_ia32.
7485
7486 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7487
7488         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7489         of %rbp unmolested in the jmp_buf while mangling the low bits.
7490         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7491         unmolested high bits of %rbp while demangling the low bits.
7492         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7493
7494 2012-05-21  Andreas Jaeger  <aj@suse.de>
7495
7496         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7497         * sunrpc/svc_simple.c: Use it for registerrpc.
7498         * sunrpc/xcrypt.c: Use it for passwd2des.
7499
7500         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7501
7502 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7503
7504         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7505         Don't define if [__SYSCALL_WORDSIZE != 32].
7506         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7507         New macro.
7508
7509 2012-05-21  Bruno Haible  <bruno@clisp.org>
7510             Andreas Jaeger  <aj@suse.de>
7511
7512         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7513         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7514         inptr and inend for must_buffer_ch.
7515         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7516         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7517         * stdio-common/Makefile (tests): Remove bug15.
7518         (bug15-ENV): Remove macro.
7519         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7520         anymore.
7521
7522 2012-05-19  Andreas Jaeger  <aj@suse.de>
7523             Roland McGrath  <roland@hack.frob.com>
7524
7525         * manual/contrib.texi: Completely rewritten. It contains now an
7526         alphabetical list of contributors and their contributions.
7527
7528 2012-05-21  Richard Henderson  <rth@twiddle.net>
7529
7530         * misc/getauxval.c (__getauxval): Use unsigned long int.
7531         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7532         (getauxval): Use unsigned long int.
7533
7534 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7537
7538 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7539
7540         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7541         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7542         __alignof__ (long double).
7543
7544 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7545
7546         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7547
7548 2012-05-20  Richard Henderson  <rth@twiddle.net>
7549
7550         * misc/getauxval.c: New file.
7551         * misc/sys/auxv.h: New file.
7552         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7553         (routines): Add getauxval.
7554         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7555         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7556         * elf/dl-sysdep.c (_dl_auxv): Remove.
7557         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7558         * elf/dl-support.c (_dl_auxv): New variable.
7559         (_dl_aux_init): Initialize it.
7560         * manual/startup.texi (Auxiliary Vector): New node.
7561         * sysdeps/generic/bits/hwcap.h: New file.
7562         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7563         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7564         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7565         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7566         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7567         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7569         Update.
7570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7571         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7573         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7576         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7577         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7578
7579 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7580
7581         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7582
7583 2012-05-19  David S. Miller  <davem@davemloft.net>
7584
7585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7586
7587 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7588
7589         [BZ #14123]
7590         * math/s_ccosh.c: Include <float.h>
7591         (__ccosh): Avoid internal overflow calculating sinh and cosh
7592         values before multiplying by sin and cos values.
7593         * math/s_ccoshf.c: Likewise.
7594         * math/s_ccoshl.c: Likewise.
7595         * math/s_csin.c: Likewise.
7596         * math/s_csinf.c: Likewise.
7597         * math/s_csinl.c: Likewise.
7598         * math/s_csinh.c: Likewise.
7599         * math/s_csinhf.c: Likewise.
7600         * math/s_csinhl.c: Likewise.
7601         * math/libm-test.inc (ccos_test): Add more tests.
7602         (ccosh_test): Likewise.
7603         (csin_test): Likewise.
7604         (csinh_test): Likewise.
7605         * sysdeps/i386/fpu/libm-test-ulps: Update.
7606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7607
7608 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7609
7610         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7611         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7612
7613         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7614
7615 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7616
7617         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7618         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7619         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7620         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7621         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7622         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7623         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7624         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7625         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7626         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7627         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7628         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7629         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7630         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7631         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7632         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7633         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7634         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7635         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7636         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7637         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7638         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7639         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7640         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7641         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7642         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7643         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7644         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7645         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7646         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7647         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7648
7649 2012-05-18  Andreas Jaeger  <aj@suse.de>
7650
7651         * csu/.gitignore: Delete.
7652
7653 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7654
7655         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7656         (timex): Use __syscall_slong_t.
7657
7658 2012-05-18  Andreas Jaeger  <aj@suse.de>
7659             Carlos O'Donell  <carlos_odonell@mentor.com>
7660
7661         * manual/install.texi (Configuring and compiling): Update
7662         description about files modified in the source directory.
7663         * INSTALL: Regenerated.
7664
7665 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7666
7667         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7668         value.  Use "or" to set return value to -1.
7669         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7670         negate return value.
7671
7672 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7673
7674         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7675         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7676         failure if the compiler has Graphite support disabled.
7677         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7678         Likewise.
7679         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7680         CFLAGS-memmove.c): Likewise.
7681         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7682         Likewise.
7683
7684 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7685
7686         * sysdeps/x86_64/x32/_itoa.h: New file.
7687
7688         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7689         getdents system call only if kernel and user dirents have the
7690         same d_ino and d_off.
7691
7692         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7693         LLONG_MAX != LONG_MAX.
7694         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7695         (_fitoa_word): Likewise.
7696
7697         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7698         years.
7699         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7700         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7701         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7702
7703         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7704         include <bits/wordsize.h>.  Check __x86_64__ instead of
7705         __WORDSIZE.
7706         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7707         if __x86_64__ is defined.  Use anonymous union on fpstate.
7708
7709         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7710         anonymous union.
7711
7712 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7713
7714         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7715         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7716         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7717         Refer to _rtld_local_ro instead of _rtld_global_ro.
7718         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7719         Likewise.
7720         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7721         Likewise.
7722         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7723         Likewise.
7724         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7725         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7726         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7727
7728         * sysdeps/powerpc/powerpc32/dl-machine.c
7729         (__elf_machine_runtime_setup) [PROF]: Don't reference
7730         _dl_prof_resolve.
7731
7732 2012-05-18  Andreas Jaeger  <aj@suse.de>
7733
7734         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7735         function only available for GCCs before 3.4 since GCC 3.4
7736         introduced a builtin.
7737         (lrint): Likewise.
7738         (llrintf): Likewise.
7739         (llrint): Likewise.
7740         (fmaxf): Likewise.
7741         (fmax): Likewise.
7742         (fminf): Likewise.
7743         (fmin): Likewise.
7744         (rint): Likewise.
7745         (rintf): Likewise.
7746         (nearbyint): Likewise.
7747         (nearbyintf): Likewise.
7748         (ceil): Likewise.
7749         (ceilf): Likewise.
7750         (floor): Likewise.
7751         (floorf): Likewise.
7752
7753 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7754
7755         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7756         on both fields and cast pointer to __syscall_ulong_t.
7757
7758         * bits/types.h (__fsword_t): New type.
7759         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7760         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7761         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7762         (__FSWORD_T_TYPE): Likewise.
7763         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7764         (__FSWORD_T_TYPE): Likewise.
7765         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7766         (__FSWORD_T_TYPE): Likewise.
7767         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7768         (__FSWORD_T_TYPE): Likewise.
7769         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7770         __SWORD_TYPE with __fsword_t.
7771         (statfs64): Likewise.
7772
7773 2012-05-17  David S. Miller  <davem@davemloft.net>
7774
7775         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7776
7777 2012-05-17  Andreas Jaeger  <aj@suse.de>
7778
7779         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7780         warning.
7781
7782 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7783
7784         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7785
7786 2012-05-17  Andreas Jaeger  <aj@suse.de>
7787
7788         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7789         when it is used.
7790
7791 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7792
7793         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7794
7795 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7796
7797         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7798         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7799
7800 2012-05-17  Andreas Jaeger  <aj@suse.de>
7801             Carlos O'Donell  <carlos_odonell@mentor.com>
7802
7803         [BZ #14059]
7804         * sysdeps/x86_64/multiarch/init-arch.h
7805         (bit_YMM_Usable): Rename to...
7806         (bit_AVX_Usable): ... this.
7807         (bit_FMA4_Usable): New macro.
7808         (bit_XMM_state): New macro.
7809         (bit_YMM_state): New macro.
7810         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7811         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7812         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7813         (CPUID_OSXSAVE): New macro.
7814         (CPUID_AVX): New macro.
7815         (CPUID_FMA4): New macro.
7816         (index_YMM_Usable): Rename to...
7817         (index_AVX_Usable): ... this.
7818         (HAS_AVX): Use HAS_ARCH_FEATURE.
7819         (HAS_FMA4): Likewise.
7820         (HAS_YMM_USABLE): Remove.
7821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7822         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7823         are present.
7824         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7825         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7826         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7827         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7828         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7829
7830 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7831
7832         * math/libm-test.c: Support platforms without multiple rounding modes.
7833         * math/bug-nextafter.c: Support platforms without FP exceptions.
7834         * math/bug-nexttoward.c: Likewise.
7835         * math/test-fenv.c: Likewise.
7836         * math/test-misc.c: Likewise.
7837         * stdlib/bug-getcontext.c: Likewise.
7838
7839 2012-05-17  Andreas Jaeger  <aj@suse.de>
7840
7841         * manual/examples/search.c (critter_cmp): Change signature to
7842         avoid warnings.
7843         * manual/string.texi (Collation Functions): Likewise.
7844
7845 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7846
7847         * bits/types.h: Fold copyright years.
7848         * bits/typesizes.h: Likewise.
7849         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7850         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7851         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7852         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7853         * time/time.h: Likewise.
7854
7855 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7856
7857         [BZ #208]
7858         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7859         in instead of returning them.  Return void.
7860         (__libc_mallinfo): Accumulate over all arenas.
7861         (__malloc_stats): Adjust for change in int_mallinfo interface.
7862
7863 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7864
7865         [BZ #10375]
7866         * configure.in (NM): Add AC_CHECK_TOOL for it.
7867         (libc_extra_cflags): New substituted variable.
7868         Check for -fstack-protector being used implicitly.
7869         * configure: Regenerated.
7870         * config.make.in (config-extra-cflags): New variable,
7871         gets @libc_extra_cflags@.
7872         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7873
7874         [BZ #10375]
7875         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7876         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7877         * configure: Regenerated.
7878         * config.make.in (CPPUNDEFS): New substituted variable.
7879         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7880         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7881         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7882
7883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7884
7885         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7886         (mq_attr): Use __syscall_slong_t.
7887
7888 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7889
7890         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7891         Check __x86_64__ instead of __WORDSIZE.
7892         (_STAT_VER_LINUX): Likewise.
7893         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7894         __syscall_ulong_t and __syscall_slong_t.
7895         (stat64): Likewise.
7896
7897 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7898
7899         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7900
7901 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7902
7903         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7904
7905 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7906
7907         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7908         __syscall_ulong_t.
7909
7910         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7911         include <bits/wordsize.h>.  Check __x86_64__ instead of
7912         __WORDSIZE.
7913         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7914         defined.
7915         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7916
7917         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7918         include <bits/wordsize.h>.  Check __x86_64__ instead of
7919         __WORDSIZE.
7920         (user_regs_struct): Use "__extension__ unsigned long long"
7921         instead of "unsigned long" if __x86_64__ is defined.
7922         (user): Likewise.  Pad after pointer field if __ILP32__ is
7923         defined.
7924
7925 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7926
7927         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7928         versions 5 to 9.
7929         * configure: Regenerated.
7930         * manual/install.texi (texinfo): Increase version requirement to
7931         4.5 or later.
7932         * INSTALL: Regenerated.
7933
7934         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7935
7936 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7937
7938         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7939
7940         * sysdeps/x86_64/x32/ffs.c: New file.
7941
7942         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7943         __syscall_ulong_t.
7944         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7945         defined.  Use __syscall_ulong_t.
7946         (shminfo): Use __syscall_ulong_t.
7947         (shm_info): Likewise.
7948
7949         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7950         __syscall_ulong_t.
7951
7952         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7953         <bits/wordsize.h>.
7954         (msgqnum_t): Use __syscall_ulong_t.
7955         (msglen_t): Likewise.
7956         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7957         __syscall_ulong_t.
7958
7959         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7960         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7961
7962         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7963
7964         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7965         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7966
7967         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7968         __syscall_slong_t.
7969
7970         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7971         include <bits/wordsize.h>.  Check __x86_64__ instead of
7972         __WORDSIZE.
7973
7974         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7975         "unsigned long long int" if __x86_64__ is defined.
7976         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7977
7978         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7979         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7980         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7981
7982         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7983         <stdint.h>.
7984         (GET_PC): Cast to uintptr_t first.
7985         (GET_FRAME): Likewise.
7986         (GET_STACK): Likewise.
7987
7988         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7989         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7990         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7991         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7992         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7993         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7994         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7995         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7996         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7997         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7998         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7999         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8000         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8001         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8002         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8003         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8004         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8005         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8006         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8007         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8008         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8009         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8010         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8011         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8012         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8013         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8014         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8015         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8016         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8017
8018 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8019
8020         * Makerules (+depfiles): Also collect depfiles from .oS in
8021         $(extra-objs).
8022         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8023         .oS, $(libnldbl-routines)).
8024
8025         * Makerules (native-compile-mkdep-flags): Define.
8026         * sunrpc/Makefile (extra-objs): Add $(addprefix
8027         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8028         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8029         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8030         calling $(make-target-directory).
8031
8032 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8033
8034         * bits/types.h (__snseconds_t): Removed.
8035         * time/time.h (struct timespec): Replace __snseconds_t with
8036         __syscall_slong_t.
8037         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8038         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8039         Likewise.
8040         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8041         (__SNSECONDS_T_TYPE): Likewise.
8042         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8043         (__SNSECONDS_T_TYPE): Likewise.
8044         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8045         (__SNSECONDS_T_TYPE): Likewise.
8046
8047 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8048
8049         * sysdeps/mach/hurd/bits/typesizes.h
8050         (__SYSCALL_SLONG_TYPE): New macro.
8051         (__SYSCALL_ULONG_TYPE): Likewise.
8052
8053 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8054
8055         * bits/types.h (__syscall_slong_t): New type.
8056         (__syscall_ulong_t): Likewise.
8057
8058         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8059         (__SYSCALL_ULONG_TYPE): Likewise.
8060         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8061         (__SYSCALL_SLONG_TYPE): Likewise.
8062         (__SYSCALL_ULONG_TYPE): Likewise.
8063         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8064         (__SYSCALL_SLONG_TYPE): Likewise.
8065         (__SYSCALL_ULONG_TYPE): Likewise.
8066         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8067         (__SYSCALL_SLONG_TYPE): Likewise.
8068         (__SYSCALL_ULONG_TYPE): Likewise.
8069
8070 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8071
8072         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8073         Add sigaltstack-offsets.sym.
8074         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8075         <sigaltstack-offsets.h>.
8076         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8077         longjmp_msg pointer.
8078         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8079         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8080         signal stack.
8081         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8082
8083 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8084
8085         * elf/stackguard-macros.h: Remove file.
8086         * sysdeps/generic/stackguard-macros.h: New file.
8087         * sysdeps/i386/stackguard-macros.h: Likewise.
8088         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8089         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8090         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8091         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8092         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8093         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8094         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8095         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8096         <elf/stackguard-macros.h>.
8097
8098         [BZ #14109]
8099         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8100         __aligned__ in attribute.
8101         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8102         (gregset_t): Likewise.
8103
8104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8105
8106         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8107         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8108         * sysdeps/x86_64/x32/Implies-after: New file.
8109
8110 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8111
8112         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8113         and access return value for _dl_profile_fixup.  Use R10_LP to
8114         load frame size.
8115
8116 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8117
8118         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8119
8120 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8121
8122         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8123         * sysdeps/x86_64/x32/sysdep.h: New file.
8124
8125 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8126
8127         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8128         * sysdeps/x86_64/setjmp.S: Likewise.
8129
8130 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8131
8132         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8133         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8134         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8135         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8136         remove unused global constant.
8137
8138 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8139
8140         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8141         include of <not-cancel.h>.
8142
8143 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8144
8145         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8146
8147 2012-05-15  Jeff Law  <law@redhat.com>
8148             Andreas Jaeger  <aj@suse.de>
8149
8150         [BZ #13594]
8151         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8152         out from...
8153         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8154         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8155         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8156         code changing __hst_map_handle.map.
8157
8158 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8159
8160         * configure.in (sysnames): Look for Implies-before and Implies-after
8161         files.
8162         * configure: Regenerated.
8163
8164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8165
8166         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8167         8-byte data alignment with LP_SIZE alignment.
8168
8169 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8170
8171         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8172         into R10_LP.
8173
8174 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8175
8176         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8177
8178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8179
8180         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8181         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8182         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8183         Likewise.
8184         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8185
8186 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8187
8188         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8189         (stackinfo_sub_sp): Likewise.
8190
8191 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8192
8193         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8194         RAX_LP.
8195
8196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8199         into R*_LP.
8200
8201 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8202
8203         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8204         sizes into R*_LP.
8205
8206 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8207
8208         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8209
8210 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8211
8212         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8213         into R11_LP and load __x86_64_shared_cache_size_half into
8214         R8_LP.
8215
8216 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8217
8218         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8219         R8_LP.
8220
8221 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8222
8223         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8224         logb for POWER7.
8225         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8226         logbf for POWER7.
8227         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8228         logbl for POWER7.
8229         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8230         powerpc32/power7/fpu/s_logb.c via #include.
8231         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8232         powerpc32/power7/fpu/s_logbf.c via #include.
8233         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8234         powerpc32/power7/fpu/s_logbl.c via #include.
8235
8236 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8237
8238         * README.libm: Remove file.
8239
8240 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8241
8242         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8243         count for x32.  Use R*_LP and omit operand-size suffix.
8244
8245 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8246
8247         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8248         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8249         * sysdeps/x86_64/x32/shlib-versions: New file.
8250
8251 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8252
8253         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8254         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8255         Use _dl_fatal_printf instead.
8256
8257 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8260         set if not set by the user.  Do not allow for being unset.
8261         * sysdeps/unix/sysv/linux/configure: Regenerated.
8262
8263 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8264
8265         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8266         the `q' suffix from lea and replace .quad with ASM_ADDR.
8267
8268 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8269
8270         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8271         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8272         instead of $17.
8273         (PTR_DEMANGLE): Likewise.
8274
8275 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8276
8277         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8278         (LP_OP): Likewise.
8279         (ASM_ADDR): Likewise.
8280         (RAX_LP): Likewise.
8281         (RBP_LP): Likewise.
8282         (RBX_LP): Likewise.
8283         (RCX_LP): Likewise.
8284         (RDI_LP): Likewise.
8285         (RSI_LP): Likewise.
8286         (RSP_LP): Likewise.
8287         (R8_LP): Likewise.
8288         (R9_LP): Likewise.
8289         (R10_LP): Likewise.
8290         (R10_LP): Likewise.
8291         (R11_LP): Likewise.
8292         (R12_LP): Likewise.
8293         (R13_LP): Likewise.
8294         (R14_LP): Likewise.
8295         (R15_LP): Likewise.
8296
8297 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8298
8299         * sysdeps/x86_64/x32/dl-machine.h: New file.
8300
8301 2012-05-14  Andreas Jaeger  <aj@suse.de>
8302
8303         * manual/Makefile (subdir): Remove export of subdir.
8304         (all): Remove target.
8305         (.PHONY): Remove all from list.
8306         (mkinstalldirs): Remove.
8307         (.PHONY): Remove installdirs from list.
8308         ($(inst_infodir)/libc.info): Use make-target-directory.
8309         (installdirs): Remove.
8310         (subdir_%): Remove.
8311         (glibc-targets): Remove.
8312         (lib): Remove.
8313         (stubs): Remove.
8314         ($(objpfx)stubs ../po/manual.pot): Remove.
8315         ($(objpfx)stamp%): Remove.
8316         (make-target-directory): Remove.
8317         (subdir_install): Remove.
8318         (routines): Remove.
8319         (aux): Remove.
8320         (sources): Remove.
8321         (objects): Remove.
8322         (headers): Remove.
8323
8324         [BZ #13750]
8325         * manual/.gitignore: Remove, it's not needed anymore.
8326         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8327         all files in it.
8328         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8329         directory.
8330         (texis): Renamed to $(objpfx)texis.
8331         (texis-path): New, contains path to generated files.
8332         (chapters.%): Use texis-path for complete path, add extra argument
8333         libc-texinfo.sh.
8334         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8335         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8336         (summary,texi, stamp-summary): Use complete path of
8337         files. Generate files in build dir.
8338         (dir-add.texi): Build in build dir.
8339         (libm-err.texi,stamp-libm-err): Likewise.
8340         (version.texi, stamp-version): Likewise.
8341         (.%c.texi): Likewise.
8342         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8343         (mostlyclean): Remove target.
8344         (realclean): Remove target.
8345         (generated): Add new variable with contents from mostlyclean and
8346         realclean, remove entries duplicated in common-mostlyclean, add
8347         stamp-libm-err and stamp-version.
8348         (generated-dirs): Add libc directory.
8349         ($(inst_infodir)/libc.info): Install files from build dir.
8350
8351         * manual/install.texi (Configuring and compiling): Adjust since
8352         the info files are not part of the tar ball anymore.
8353
8354 2012-05-14  Andreas Jaeger  <aj@suse.de>
8355
8356         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8357         variable.
8358
8359 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8360
8361         [BZ #13717]
8362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8363         to 2.2.0 where earlier.
8364         * sysdeps/unix/sysv/linux/configure: Regenerated.
8365         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8366         Remove conditional code.
8367         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8368         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8369         Remove conditional code.
8370         [!__NR_lchown]: Likewise.
8371         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8372         [__NR_lchown]: Likewise.
8373         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8374         comment referencing __ASSUME_LCHOWN_SYSCALL.
8375         * sysdeps/unix/sysv/linux/i386/sigaction.c
8376         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8377         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8378         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8379         Remove conditional code.
8380         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8381         (__protocol_available): Remove #if 0 code.
8382         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8383         conditional code.
8384         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8385         * sysdeps/unix/sysv/linux/kernel-features.h
8386         (__ASSUME_GETCWD_SYSCALL): Don't define.
8387         (__ASSUME_REALTIME_SIGNALS): Likewise.
8388         (__ASSUME_PREAD_SYSCALL): Likewise.
8389         (__ASSUME_PWRITE_SYSCALL): Likewise.
8390         (__ASSUME_POLL_SYSCALL): Likewise.
8391         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8392         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8393         non-SPARC.
8394         (__ASSUME_SIOCGIFNAME): Don't define.
8395         (__ASSUME_MSG_NOSIGNAL): Likewise.
8396         (__ASSUME_SENDFILE): Define unconditionally.
8397         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8398         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8399         conditional code.
8400         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8401         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8402         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8403         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8404         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8405         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8406         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8408         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8409         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8411         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8412         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8414         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8415         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8417         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8418         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8420         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8421         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8423         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8424         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8426         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8427         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8429         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8430         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8431         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8432         Remove conditional code.
8433         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8434         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8435         Remove conditional code.
8436         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8437         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8438         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8439         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8440         Remove conditional code.
8441         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8442         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8443         Remove conditional code.
8444         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8445         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8446         Remove conditional code.
8447         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8448         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8449         Remove conditional code.
8450         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8451         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8452         Remove conditional code.
8453         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8454         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8455         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8456         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8457         * sysdeps/unix/sysv/linux/sigaction.c
8458         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8459         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8460         * sysdeps/unix/sysv/linux/sigpending.c
8461         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8462         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8463         * sysdeps/unix/sysv/linux/sigprocmask.c
8464         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8465         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8466         * sysdeps/unix/sysv/linux/sigsuspend.c
8467         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8468         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8469         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8470         (__libc_missing_rt_sigs): Remove.
8471         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8472         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8473         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8474         Remove conditional code.
8475         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8476         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8477         return 1.
8478         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8479         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8480         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8481         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8482
8483 2012-05-14  Andreas Jaeger  <aj@suse.de>
8484
8485         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8486         it's not used in glibc.
8487         (__coshm1): Likewise.
8488         (__acosh1p): Likewise.
8489         (__sgn): Likewise.
8490
8491         * manual/string.texi (Copying and Concatenation): Add missing
8492         variable in concat example.
8493         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8494
8495 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8496
8497         [BZ #14103]
8498         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8499         __builtin_clzl with __builtin_clzll.
8500
8501 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8502
8503         [BZ #14104]
8504         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8505         libc_freeres_ptr.
8506
8507 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8508
8509         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8510         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8511         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8512         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8513
8514 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8515
8516         * NEWS: Update ia64 info.
8517
8518 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8519
8520         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8521         used as bcopy.
8522
8523 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8524
8525         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8526         * sysdeps/unix/syscalls.list (dup3): Likewise.
8527         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8528         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8529
8530 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8531
8532         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8533         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8534
8535 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8536
8537         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8538         thread pointer.
8539         (TLS_IE): Use mov/add instead of movq/addq to load thread
8540         pointer.
8541         (TLS_GD_PREFIX): New.
8542         (TLS_GD): Use it.
8543
8544 2012-05-11  David S. Miller  <davem@davemloft.net>
8545
8546         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8547         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8548         (_FPU_SETCW): Likewise.
8549
8550 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8551
8552         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8553         is 32-byte aligned.
8554
8555 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8556
8557         [BZ #11837]
8558         * iconvdata/gb18030.c: Update tables.
8559         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8560         characters specially.
8561         (BODY for TO_LOOP): Add encoding of missing ranges.
8562
8563 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8564
8565         [BZ #13673]
8566         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8567         * sysdeps/mach/hurd/dup3.c: Likewise.
8568         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8569         * sysdeps/powerpc/memmove.c:: Likewise.
8570
8571 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8572
8573         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8574         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8575
8576 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8577
8578         * elf/elf.h (R_X86_64_RELATIVE64): New.
8579         (R_X86_64_NUM): Updated.
8580         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8581         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8582         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8583         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8584         tst-quad1pie tst-quad2pie
8585         (modules-names): Add tst-quadmod1 tst-quadmod2.
8586         ($(objpfx)tst-quad1): New dependency.
8587         ($(objpfx)tst-quad2): Likewise.
8588         ($(objpfx)tst-quad1pie): Likewise.
8589         ($(objpfx)tst-quad2pie): Likewise.
8590         * sysdeps/x86_64/tst-quad1.c: New file.
8591         * sysdeps/x86_64/tst-quad1pie.c: New file.
8592         * sysdeps/x86_64/tst-quad2.c: Likewise.
8593         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8594         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8595         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8596         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8597         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8598
8599 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8600
8601         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8602         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8603         * streams/stropts.h (t_scalar_t): Define type.
8604
8605         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8606         (_PATH_PRESERVE): Set to "/var/lib".
8607         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8608
8609         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8610         instead of int.
8611
8612         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8613         if __dir_mkfile succeeded.
8614
8615         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8616         checking for _hurd_dtablesize.  Unlock it right after having
8617         finished _hurd_dtable allocation.
8618
8619 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8620
8621         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8622         * sysdeps/mach/hurd/configure: Regenerated.
8623         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8624         special-casing to...
8625         * sysdeps/gnu/configure.in: ... this new file.
8626         * sysdeps/unix/sysv/linux/configure: Regenerated.
8627         * sysdeps/gnu/configure: New generated file.
8628
8629         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8630         for Linux: use nsec instead of usec, as well as:
8631         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8632         members of type struct timespec.
8633         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8634         New macros.
8635         (struct stat64): Likewise.
8636         (_STATBUF_ST_NSEC): New macro.
8637         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8638
8639         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8640         __strtoul_internal rather than strtoul.
8641
8642 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8643
8644         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8645         and reject them.
8646
8647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8648
8649         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8650         which preserves existing values.
8651         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8652
8653 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8654
8655         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8656         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8657         greater than FD_SETSIZE.
8658
8659 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8660
8661         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8662         allocated, call __vm_protect to finish enabling the existing space, and
8663         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8664         allocate the remainder.
8665
8666 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8667
8668         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8669         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8670
8671 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8672
8673         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8674         sysdeps/mach/hurd/readlink.c.
8675
8676         * posix/tst-sysconf.c (posix_options): Only use
8677         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8678         _POSIX_SYNCHRONIZED_IO when they are defined
8679         * sysdeps/mach/hurd/bits/posix_opt.h:
8680         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8681         (_XOPEN_REALTIME): Undefine macro.
8682         (_XOPEN_REALTIME_THREADS): Undefine macro.
8683         (_XOPEN_SHM): Undefine macro.
8684         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8685         macro to -1.
8686         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8687         macro to -1.
8688         (_POSIX_ASYNC_IO): Undefine macro.
8689         (_POSIX_PRIORITIZED_IO): Undefine macro.
8690         (_POSIX_SPIN_LOCKS): Define macro to -1.
8691
8692         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8693         SA_NODEFER, SA_RESETHAND.
8694         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8695         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8696         F_DUPFD_CLOEXEC.
8697
8698 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8699
8700         * elf/Makefile (pldd-modules): Define unconditionally.
8701
8702 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8703
8704         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8705
8706 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8707
8708         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8709         Return ENOENT when name is empty.
8710         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8711
8712 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8713
8714         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8715
8716         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8717
8718 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8719
8720         Fix mlock in all cases except non-readable pages.
8721         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8722         instead of VM_PROT_ALL as parameter to __vm_wire function.
8723
8724         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8725         (__mkdir): When path is `/', just fail with EEXIST.
8726         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8727
8728 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8729
8730         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8731         <sys/uio.h> (for writev).
8732         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8733         and <sys/param.h> (for MIN).
8734
8735 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8736
8737         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8738         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8739         if interrupted.
8740
8741 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8742
8743         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8744         Depend on against $(link-rpcuserlibs).
8745
8746 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8747
8748         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8749         (__libc_stack_end): Do not use attribute_relro.
8750         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8751         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8752         to libthread-provided value.
8753         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8754         attribute_relro.
8755
8756 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8757
8758         [BZ #3748]
8759         * bits/libc-lock.h (__libc_once_get): New macro.
8760         * sysdeps/mach/bits/libc-lock.h: Likewise.
8761         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8762         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8763         instead of using implementation details.
8764
8765         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8766         * libio/freopen.c: Likewise.
8767         * libio/freopen64.c: Likewise.
8768         * misc/syslog.c: Likewise.
8769         * nscd/connections.c: Likewise.
8770         * nscd/netgroupcache.c: Likewise.
8771         * sysdeps/posix/getcwd.c: Likewise.
8772
8773 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8774
8775         * math/w_ilogbf.c: Add #include <limits.h>.
8776
8777 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8778
8779         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8780         path instead of returning without unlocking.
8781
8782         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8783         immediate-write ioctls.
8784         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8785
8786 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8787
8788         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8789         __builtin_frame_address instead of making assumptions about the
8790         location of the return address relative to DATA.  Force early load of
8791         the return address.
8792         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8793         __builtin_frame_address.
8794
8795         dup3 for GNU Hurd.
8796         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8797         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8798         implement dup3 and do some further code clean-ups.
8799         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8800         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8801
8802 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8803
8804         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8805
8806         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8807         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8808         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8809         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8810         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8811         d->port.lock.
8812
8813         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8814         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8815         when handler == SIG_ERR, not when handler != SIG_ERR.
8816
8817 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8818
8819         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8820         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8821         definitions.
8822
8823         accept4 for GNU Hurd.
8824         * include/sys/socket.h (__libc_accept4): New prototype.
8825         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8826         to implement __libc_accept4.
8827         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8828         __libc_accept4.
8829         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8830
8831         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8832         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8833         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8834         signal-defines.sym.
8835
8836 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8837
8838         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8839
8840 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8841
8842         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8843         assertion on O_CLOEXEC flag.
8844         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8845         * hurd/intern-fd.c: Likewise.
8846         * hurd/port2fd.c: Likewise.
8847
8848 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8849
8850         [BZ #3906]
8851         * bits/in.h (IPV6_PKTINFO): Define new macro.
8852         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8853
8854 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8855
8856         [BZ #13954]
8857         [BZ #13955]
8858         [BZ #13956]
8859         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8860         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8861         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8862         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8863         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8864         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8865         * math/libm-test.inc (logb_test) : Additional logb tests.
8866
8867 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8868             Andreas Jaeger  <aj@suse.de>
8869
8870         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8871         * configure: Regenerated.
8872         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8873         * config.make.in (link-obsolete-rpc): New substituted variable.
8874         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8875         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8876         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8877         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8878         so that libc.a contains the symbols.
8879         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8880         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8881         * sunrpc/auth_none.c: Likewise.
8882         * sunrpc/auth_unix.c: Likewise.
8883         * sunrpc/authdes_prot.c: Likewise.
8884         * sunrpc/authuxprot.c: Likewise.
8885         * sunrpc/clnt_gen.c: Likewise.
8886         * sunrpc/clnt_perr.c: Likewise.
8887         * sunrpc/clnt_raw.c: Likewise.
8888         * sunrpc/clnt_simp.c: Likewise.
8889         * sunrpc/clnt_tcp.c: Likewise.
8890         * sunrpc/clnt_udp.c: Likewise.
8891         * sunrpc/clnt_unix.c: Likewise.
8892         * sunrpc/des_crypt.c: Likewise.
8893         * sunrpc/des_soft.c: Likewise.
8894         * sunrpc/get_myaddr.c: Likewise.
8895         * sunrpc/key_call.c: Likewise.
8896         * sunrpc/key_prot.c: Likewise.
8897         * sunrpc/netname.c: Likewise.
8898         * sunrpc/pm_getmaps.c: Likewise.
8899         * sunrpc/pm_getport.c: Likewise.
8900         * sunrpc/pmap_clnt.c: Likewise.
8901         * sunrpc/pmap_prot.c: Likewise.
8902         * sunrpc/pmap_prot2.c: Likewise.
8903         * sunrpc/pmap_rmt.c: Likewise.
8904         * sunrpc/publickey.c: Likewise.
8905         * sunrpc/rpc_cmsg.c: Likewise.
8906         * sunrpc/rpc_common.c: Likewise.
8907         * sunrpc/rpc_dtable.c: Likewise.
8908         * sunrpc/rpc_prot.c: Likewise.
8909         * sunrpc/rpc_thread.c: Likewise.
8910         * sunrpc/rtime.c: Likewise.
8911         * sunrpc/svc.c: Likewise.
8912         * sunrpc/svc_auth.c: Likewise.
8913         * sunrpc/svc_raw.c: Likewise.
8914         * sunrpc/svc_run.c: Likewise.
8915         * sunrpc/svc_tcp.c: Likewise.
8916         * sunrpc/svc_udp.c: Likewise.
8917         * sunrpc/svc_unix.c: Likewise.
8918         * sunrpc/svcauth_des.c: Likewise.
8919         * sunrpc/xcrypt.c: Likewise.
8920         * sunrpc/xdr.c: Likewise.
8921         * sunrpc/xdr_array.c: Likewise.
8922         * sunrpc/xdr_float.c: Likewise.
8923         * sunrpc/xdr_intXX_t.c: Likewise.
8924         * sunrpc/xdr_mem.c: Likewise.
8925         * sunrpc/xdr_rec.c: Likewise.
8926         * sunrpc/xdr_ref.c: Likewise.
8927         * sunrpc/xdr_sizeof.c: Likewise.
8928         * sunrpc/xdr_stdio.c: Likewise.
8929
8930 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8931
8932         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8933         change.  Update copyright years.
8934
8935 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8936
8937         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8938
8939 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8940             Joseph Myers  <joseph@codesourcery.com>
8941             Paul Pluzhnikov  <ppluzhnikov@google.com>
8942
8943         [BZ #14012]
8944         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8945         requiring rpcgen.
8946         [cross-compiling] (extra-libs): Likewise.
8947         [cross-compiling] (extra-libs-others): Likewise.
8948         [cross-compiling] (librpcsvc-routines): Likewise.
8949         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8950         [cross-compiling] (omit-deps): Likewise.
8951         (sunrpc-CPPFLAGS): New variable.
8952         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8953         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8954         (cross-rpcgen-objs): New variable.
8955         (extra-objs): Append $(cross-rpcgen-objs).
8956         ($(cross-rpcgen-objs)): New rule.
8957         ($(objpfx)cross-rpcgen): Likewise.
8958         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8959         comment.
8960         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8961         ($(objpfx)x%.stmp): Likewise.
8962         * sunrpc/proto.h [IS_IN_build] (_): Define.
8963         [IS_IN_build] (_libc_intl_domainname): Likewise.
8964
8965 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8966
8967         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8968         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8969         and R_X86_64_TPOFF64.
8970
8971 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8972
8973         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8974         sysdeps/unix/sysv/syscalls.list.
8975         (stime): Likewise.
8976         (utime): Likewise.
8977         * sysdeps/unix/sysv/syscalls.list: Remove file.
8978
8979 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8980
8981         [BZ #3440]
8982         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8983         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8984         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8985         (__LC_IDENTIFICATION): Make these macros useful in #if
8986         expressions, as required by C99.
8987
8988 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8989
8990         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8991         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8992         after this.
8993
8994 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8995
8996         * stdlib/longlong.h: Updated from GCC.
8997
8998 2012-05-09  Andreas Jaeger  <aj@suse.de>
8999
9000         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9001         default is first entry.
9002         (run_mode): Set type.
9003         (main): Remove informal message about syslog.
9004         (options): Fix typo.
9005
9006         [BZ #14053]
9007         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9008         to asm.
9009         (lrint): Likewise.
9010         (llrintf): Likewise.
9011         (llrint): Likewise.
9012         (rint): Likewise.
9013         (rintf): Likewise.
9014         (nearbyint): Likewise.
9015         (nearbyintf): Likewise.
9016
9017 2012-05-09  Andreas Jaeger  <aj@suse.de>
9018             Pedro Alves  <palves@redhat.com>
9019
9020         * nscd/nscd.c (run_mode): Use enum.
9021         (main): Cleanup coding style issue.
9022
9023 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9024             Andreas Jaeger  <aj@suse.de>
9025
9026         * nscd/nscd.c (go_background): Replaced with...
9027         (run_mode): ... this.
9028         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9029         (options): Add -F --foreground.
9030         (main): Implement it.
9031         (parse_opt): Parse it.
9032
9033 2012-05-09  Andreas Jaeger  <aj@suse.de>
9034
9035         [BZ #14083]
9036         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9037         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9038         -Wconversion warning.
9039         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9040         Likewise.
9041
9042 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9043
9044         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9045         == 0.
9046         (LC_ALL): Use macro-int-constant.
9047         (LC_COLLATE): Likewise.
9048         (LC_CTYPE): Likewise.
9049         (LC_MESSAGES): Likewise.
9050         (LC_MONETARY): Likewise.
9051         (LC_NUMERIC): Likewise.
9052         (LC_TIME): Likewise.
9053         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9054         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9055         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9056         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9057         Specify type.
9058         [C99-based standards] (float_t): Expect type.
9059         [C99-based standards] (double_t): Expect type.
9060         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9061         type.
9062         [C99-based standards] (HUGE_VALL): Likewise.
9063         [C99-based standards] (INFINITY): Likewise.
9064         [C99-based standards] (NAN): Likewise.
9065         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9066         [C99-based standards] (FP_NAN): Likewise.
9067         [C99-based standards] (FP_NORMAL): Likewise.
9068         [C99-based standards] (FP_SUBNORMAL): Likewise.
9069         [C99-based standards] (FP_ZERO): Likewise.
9070         [C99-based standards] (FP_FAST_FMA): Use
9071         optional-macro-int-constant.  Specify type.  Require == 1.
9072         [C99-based standards] (FP_FAST_FMAF): Likewise.
9073         [C99-based standards] (FP_FAST_FMAL): Likewise.
9074         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9075         [C99-based standards] (FP_ILOGBNAN): Likewise.
9076         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9077         Specify type.
9078         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9079         [C99-based standards] (math_errhandling): Specify type.
9080         [ISO99 || ISO11] (signgam): Do not allow.
9081         [non-C99-based standards] (copysignf): Do not allow.
9082         [non-C99-based standards] (exp2f): Likewise.
9083         [non-C99-based standards] (log2f): Likewise.
9084         [non-C99-based standards] (modff): Allow.
9085         [non-C99-based standards] (erff): Do not allow.
9086         [non-C99-based standards] (erfcf): Likewise.
9087         [non-C99-based standards] (gammaf): Likewise.
9088         [non-C99-based standards] (hypotf): Likewise.
9089         [non-C99-based standards] (j0f): Likewise.
9090         [non-C99-based standards] (j1f): Likewise.
9091         [non-C99-based standards] (jnf): Likewise.
9092         [non-C99-based standards] (lgammaf): Likewise.
9093         [non-C99-based standards] (tgammaf): Likewise.
9094         [non-C99-based standards] (y0f): Likewise.
9095         [non-C99-based standards] (y1f): Likewise.
9096         [non-C99-based standards] (ynf): Likewise.
9097         [non-C99-based standards] (isnanf): Likewise.
9098         [non-C99-based standards] (acoshf): Likewise.
9099         [non-C99-based standards] (asinhf): Likewise.
9100         [non-C99-based standards] (atanhf): Likewise.
9101         [non-C99-based standards] (cbrtf): Likewise.
9102         [non-C99-based standards] (expm1f): Likewise.
9103         [non-C99-based standards] (ilogbf): Likewise.
9104         [non-C99-based standards] (log1pf): Likewise.
9105         [non-C99-based standards] (logbf): Likewise.
9106         [non-C99-based standards] (nextafterf): Likewise.
9107         [non-C99-based standards] (remainderf): Likewise.
9108         [non-C99-based standards] (rintf): Likewise.
9109         [non-C99-based standards] (scalbf): Likewise.
9110         [non-C99-based standards] (copysignl): Likewise.
9111         [non-C99-based standards] (exp2l): Likewise.
9112         [non-C99-based standards] (log2l): Likewise.
9113         [non-C99-based standards] (modfl): Allow.
9114         [non-C99-based standards] (erfl): Do not allow.
9115         [non-C99-based standards] (erfcl): Likewise.
9116         [non-C99-based standards] (gammal): Likewise.
9117         [non-C99-based standards] (hypotl): Likewise.
9118         [non-C99-based standards] (j0l): Likewise.
9119         [non-C99-based standards] (j1l): Likewise.
9120         [non-C99-based standards] (jnl): Likewise.
9121         [non-C99-based standards] (lgammal): Likewise.
9122         [non-C99-based standards] (tgammal): Likewise.
9123         [non-C99-based standards] (y0l): Likewise.
9124         [non-C99-based standards] (y1l): Likewise.
9125         [non-C99-based standards] (ynl): Likewise.
9126         [non-C99-based standards] (isnanl): Likewise.
9127         [non-C99-based standards] (acoshl): Likewise.
9128         [non-C99-based standards] (asinhl): Likewise.
9129         [non-C99-based standards] (atanhl): Likewise.
9130         [non-C99-based standards] (cbrtl): Likewise.
9131         [non-C99-based standards] (expm1l): Likewise.
9132         [non-C99-based standards] (ilogbl): Likewise.
9133         [non-C99-based standards] (log1pl): Likewise.
9134         [non-C99-based standards] (logbl): Likewise.
9135         [non-C99-based standards] (nextafterl): Likewise.
9136         [non-C99-based standards] (remainderl): Likewise.
9137         [non-C99-based standards] (rintl): Likewise.
9138         [non-C99-based standards] (scalbl): Likewise.
9139         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9140         [non-C99-based standards] (FP_*): Do not allow.
9141         [C99-based standards] (FP_*): Change to
9142         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9143         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9144         allow.
9145         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9146         (SIG_ERR): Likewise.
9147         [X/Open-based standards] (SIG_HOLD): Likewise.
9148         (SIG_IGN): Likewise.
9149         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9150         positive value.
9151         (SIGFPE): Likewise.
9152         (SIGILL): Likewise.
9153         (SIGINT): Likewise.
9154         (SIGSEGV): Likewise.
9155         (SIGTER): Likewise.
9156         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9157         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9158         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9159         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9160         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9161         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9162         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9163         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9164         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9165         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9166         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9167         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9168         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9169         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9170         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9171         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9172         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9173         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9174         [X/Open-based standards] (SIGTRAP): Likewise.
9175         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9176         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9177         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9178         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9179         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9180         allow.
9181
9182 2012-05-08  Ian Wienand  <ianw@vmware.com>
9183
9184         [BZ #14080]
9185         * time/tzset.c (__tzset_parse_tz): Update default rules for
9186         daylight time changes in the Energy Policy Act of 2005.
9187
9188 2012-05-09  Andreas Jaeger  <aj@suse.de>
9189
9190         [BZ #13983]
9191         * elf/ldconfig.c (parse_conf): Change string to make clear that
9192         ldconfig only issued a warning if ld.so.conf does not exist.
9193
9194 2012-05-08  David S. Miller  <davem@davemloft.net>
9195
9196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9197         movxtod instead of popping the value on the stack.
9198
9199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9200
9201 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9202
9203         * config.h.in: Add HAVE_ARM_PCS_VFP.
9204
9205 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9206
9207         [BZ #13979]
9208         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9209         checking but the checks are disabled for any reason.
9210
9211 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9212
9213         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9214         and ELF64_R_TYPE with ELFW(R_TYPE).
9215
9216 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9217
9218         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9219         (ulimit): Likewise.
9220
9221         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9222         (settimeofday): Likewise.
9223
9224 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9225
9226         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9227         a struct th_u2 inside the union, and move tu_block/tu_code into
9228         a new th_u3 union of tu_block/tu_code inside of that.  Move
9229         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9230         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9231         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9232         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9233         (th_stuff): Change to th_u1.tu_stuff.
9234         (th_data): Define.
9235         (th_msg): Change to th_u1.th_u2.tu_data.
9236
9237 2012-05-07  David S. Miller  <davem@davemloft.net>
9238
9239         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9240
9241         [BZ #14074]
9242         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9243         (SETUP_PIC_REG): Use it.
9244         (SETUP_PIC_REG_LEAF): Use it.
9245
9246 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9247
9248         [BZ #13885]
9249         [BZ #13923]
9250         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9251         USE_AS_EXPM1L.
9252         (EXPL_FINITE): Likewise.
9253         (FLDLOG): Likewise.
9254         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9255         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9256         e_expl.S.
9257         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9258         USE_AS_EXPM1L.
9259         (EXPL_FINITE): Likewise.
9260         (FLDLOG): Likewise.
9261         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9262         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9263         e_expl.S.
9264         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9265         test of -max_value argument for long double.
9266         * sysdeps/i386/fpu/libm-test-ulps: Update.
9267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9268
9269 2012-05-06  David S. Miller  <davem@davemloft.net>
9270
9271         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9272         quad soft-float symbols whose references which are compiler
9273         generated.
9274         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9275
9276 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9277
9278         [BZ #13884]
9279         [BZ #13914]
9280         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9281         USE_AS_EXP10L.
9282         (EXPL_FINITE): Likewise.
9283         (FLDLOG): Likewise.
9284         (c0): Likewise.
9285         (c1): Likewise.
9286         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9287         Adjust comments for base varying.
9288         (__expl_finite): Change alias to EXPL_FINITE.
9289         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9290         e_expl.S.
9291         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9292         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9293         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9294         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9295         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9296         USE_AS_EXP10L.
9297         (EXPL_FINITE): Likewise.
9298         (FLDLOG): Likewise.
9299         (c0): Likewise.
9300         (c1): Likewise.
9301         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9302         Adjust comments for base varying.
9303         (__expl_finite): Change alias to EXPL_FINITE.
9304         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9305         tests for bugs.
9306         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9307
9308         [BZ #14064]
9309         * math/libm-test.inc (check_float_internal): Correct ulp
9310         calculation for subnormal expected results.
9311
9312 2012-05-06  Andreas Jaeger  <aj@suse.de>
9313
9314         * Makeconfig (+math-flags): New, set to -frounding-math.
9315         (+cflags): Add +math-flags so that all of glibc gets compiled with
9316         it.
9317
9318         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9319
9320 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9321
9322         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9323         Disable one test.
9324
9325         [BZ #13787]
9326         [BZ #13922]
9327         [BZ #14036]
9328         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9329         (__ieee754_expl): Allow for and saturate large arguments.
9330         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9331         (u_threshold): Likewise.
9332         (__exp): Call __ieee754_exp before checking for overflow and
9333         underflow.
9334         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9335         (u_threshold): Likewise.
9336         (__expf): Call __ieee754_expf before checking for overflow and
9337         underflow.
9338         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9339         (u_threshold): Likewise.
9340         (__expl): Call __ieee754_expl before checking for overflow and
9341         underflow.
9342         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9343         (__ieee754_expl): Allow for and saturate large arguments.
9344         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9345         missing overflow exception on overflow.
9346         (expm1_test): Do not allow missing overflow exception on overflow.
9347
9348         * sysdeps/i386/fpu/e_expl.c: Move to ...
9349         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9350         rather than using inline asm.
9351         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9352         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9353         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9354
9355         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9356         (nice): Likewise.
9357         (poll): Likewise.
9358         (signal): Likewise.
9359         (time): Likewise.
9360         (times): Likewise.
9361
9362 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9363
9364         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9365         sysdeps/unix/common/syscalls.list.
9366         (fchmod): Likewise.
9367         (fchown): Likewise.
9368         (ftruncate): Likewise.
9369         (getrusage): Likewise.
9370         (gettimeofday): Likewise.
9371         (setpgid): Likewise.
9372         (setregid): Likewise.
9373         (setreuid): Likewise.
9374         (sigaction): Likewise.
9375         (truncate): Likewise.
9376         (vhangup): Likewise.
9377         * sysdeps/unix/common/syscalls.list: Remove file.
9378         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9379         * sysdeps/unix/sysv/linux/Implies: Likewise.
9380
9381 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9382
9383         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9384         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9385         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9386         Moved to ...
9387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9388         Here.
9389         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9390         to ...
9391         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9392         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9393         to ...
9394         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9395         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9396         to ...
9397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9398         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9399         to ...
9400         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9401         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9402         to ...
9403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9404         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9405         to ...
9406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9407         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9408         to ...
9409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9410         Here.
9411         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9412         to ...
9413         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9414         Here.
9415         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9416         to ...
9417         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9418         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9419         Moved to ...
9420         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9421         Here.
9422         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9423         to ...
9424         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9425
9426 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9427
9428         * sysdeps/unix/common/bits/dirent.h: Remove file.
9429         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9430
9431         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9432         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9433         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9434         * sysdeps/unix/bsd/isatty.c: Likewise.
9435         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9436         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9437         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9438
9439 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9440
9441         [BZ #13563]
9442         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9443         long double comparison inaccuracies.
9444         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9446
9447 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9448
9449         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9450         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9451
9452 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9453
9454         [BZ #14049]
9455         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9456         nonzero digits before rounding a hex value.
9457         * stdlib/tst-strtod.c (tests): Add another test.
9458
9459 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9460
9461         * sysdeps/s390/fpu/libm-test-ulps: Update.
9462
9463 2012-05-03  Andreas Jaeger  <aj@suse.de>
9464
9465         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9466         does not get optimized out.
9467         (malloc_opt_barrier): New.
9468
9469 2012-05-03  Andreas Jaeger  <aj@suse.de>
9470             Roland McGrath  <roland@hack.frob.com>
9471
9472         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9473         intermediate file deletion.
9474         (generated): Add .symlist files.
9475
9476 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9477
9478         [BZ #13775]
9479         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9480         Redirect under this condition.
9481         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9482         [__USE_GNU] (__dprintf_chk): Not under this condition.
9483         [__USE_GNU] (__vdprintf_chk): Likewise.
9484         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9485         under this condition.
9486         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9487         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9488         [__USE_XOPEN2K8] (vdprintf): Likewise.
9489         [__USE_GNU] (__dprintf_chk): Not under this condition.
9490         [__USE_GNU] (__vdprintf_chk): Likewise.
9491         [__USE_GNU] (dprintf): Likewise.
9492         [__USE_GNU] (vdprintf): Likewise.
9493
9494 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9495
9496         * elf/Makefile (common-generated): Set this instead of generated for
9497         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9498         $(all-built-dso)-derived lists.
9499
9500 2012-05-03  Andreas Jaeger  <aj@suse.de>
9501
9502         * sysdeps/i386/fpu/libm-test-ulps: Update.
9503
9504         * FAQ: Removed.
9505         * FAQ.in: Likewise.
9506         * scripts/gen-FAQ.pl: Likewise.
9507         * manual/install.texi (Installation): Point to online location of
9508         FAQ.
9509         * Makefile (files-for-dist): Remove FAQ.
9510         (FAQ): Remove.
9511
9512 2012-05-02  Allan McRae  <allan@archlinux.org>
9513
9514         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9515         (LDFLAGS-reldepmod5.so): Likewise.
9516         (LDFLAGS-reldep6mod1.so): Likewise.
9517         (LDFLAGS-reldep6mod4.so): Likewise.
9518         (LDFLAGS-reldep8mod3.so): Likewise.
9519         (LDFLAGS-unload4mod1.so): Likewise.
9520         (LDFLAGS-unload4mod2.so): Likewise.
9521         (LDFLAGS-tst-initorder): Likewise.
9522         (LDFLAGS-tst-initordera2.so): Likewise.
9523         (LDFLAGS-tst-initordera3.so): Likewise.
9524         (LDFLAGS-tst-initordera4.so): Likewise.
9525         (LDFLAGS-tst-initorderb2.so): Likewise.
9526         (LDFLAGS-noload): Likewise.
9527         (LDFLAGS-next): Likewise.
9528         (LDFLAGS-order2mod1.so): Likewise.
9529         (LDFLAGS-order2mod2.so): Likewise.
9530         (LDFLAGS-tst-initorder2): Likewise.
9531         (LDFLAGS-tst-initorder2a.so): Likewise.
9532         (LDFLAGS-tst-initorder2b.so): Likewise.
9533         (LDFLAGS-tst-initorder2c.so): Likewise.
9534         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9535
9536 2012-05-02  David S. Miller  <davem@davemloft.net>
9537
9538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9539
9540 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9541
9542         [BZ #14055]
9543         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9544
9545 2012-05-02  Andreas Jaeger  <aj@suse.de>
9546
9547         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9548         since we manipulate rounding mode.
9549         (CPPFLAGS-test-idouble.c): Likewise.
9550         (CPPFLAGS-test-ifloat.c): Likewise.
9551         (CFLAGS-test-ldouble.c): Likewise.
9552         (CFLAGS-test-double.c): Likewise.
9553         (CFLAGS-test-float.c): Likewise.
9554         (CFLAGS-test-misc.c): Likewise.
9555         (CFLAGS-test-test-fenv.c): Likewise.
9556
9557 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9558
9559         [BZ #2550]
9560         [BZ #2570]
9561         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9562         comparisons to determine direction to adjust input.
9563
9564 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9565
9566         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9567         output to the target.
9568
9569         * scripts/localplt.awk: New file.
9570         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9571         (check-localplt-CFLAGS): Variable removed.
9572         ($(all-built-dso:=.jmprel)): New static pattern rule.
9573         (generated): Add those targets.
9574         (localplt-built-dso): New variable.
9575         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9576
9577         * elf/check-localplt.c: File removed.
9578
9579         * scripts/check-execstack.awk: New file.
9580         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9581         (check-execstack-CFLAGS): Variable removed.
9582         ($(objpfx)check-execstack.h): Target removed.
9583         ($(objpfx)execstack-default): New target.
9584         (generated): Add that instead of check-execstack.h.
9585         ($(all-built-dso:=.phdr)): New static pattern rule.
9586         (generated): Add those targets.
9587         * elf/check-execstack.c: File removed.
9588
9589         * scripts/check-textrel.awk: New file.
9590         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9591         (check-textrel-CFLAGS): Variable removed.
9592         (all-built-dso): Use := to define.o
9593         ($(all-built-dso:=.dyn)): New static pattern rule.
9594         (generated): Add those targets.
9595         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9596         * config.make.in (READELF): New substituted variable.
9597         * elf/check-textrel.c: File removed.
9598
9599 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9600
9601         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9602         allow.
9603         * conform/data/ctype.h-data [C99-based standards] (isblank):
9604         Expect function.
9605         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9606         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9607         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9608         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9609         Specify type.  Require positive value.
9610         (EILSEQ): Likewise.
9611         (ERANGE): Likewise.
9612         [ISO || POSIX] (EILSEQ): Do not expect.
9613         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9614         Specify type.  Require positive value.
9615         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9616         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9617         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9618         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9619         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9620         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9621         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9622         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9623         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9624         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9625         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9626         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9627         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9628         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9629         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9630         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9631         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9632         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9633         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9634         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9635         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9636         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9637         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9638         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9639         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9640         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9641         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9642         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9643         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9644         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9645         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9646         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9647         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9648         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9649         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9650         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9651         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9652         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9653         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9654         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9655         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9656         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9657         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9658         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9659         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9660         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9661         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9662         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9663         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9664         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9665         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9666         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9667         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9668         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9669         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9670         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9671         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9672         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9673         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9674         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9675         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9676         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9677         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9678         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9679         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9680         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9681         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9682         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9683         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9684         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9685         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9686         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9687         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9688         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9689         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9690         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9691         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9692         Require >= 2.
9693         (FLT_ROUNDS): Expect as macro, not constant.
9694         (FLT_MANT_DIG): Use macro-int-constant.
9695         (DBL_MANT_DIG): Likewise.
9696         (LDBL_MANT_DIG): Likewise.
9697         (FLT_DIG): Likewise.
9698         (DBL_DIG): Likewise.
9699         (LDBL_DIG): Likewise.
9700         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9701         (DBL_MIN_EXP): Likewise.
9702         (LDBL_MIN_EXP): Likewise.
9703         (FLT_MAX_EXP): Use macro-int-constant.
9704         (DBL_MAX_EXP): Likewise.
9705         (LDBL_MAX_EXP): Likewise.
9706         (FLT_MAX_10_EXP): Likewise.
9707         (DBL_MAX_10_EXP): Likewise.
9708         (LDBL_MAX_10_EXP): Likewise.
9709         (FLT_MAX): Use macro-constant.
9710         (DBL_MAX): Likewise.
9711         (LDBL_MAX): Likewise.
9712         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9713         (DBL_EPSILON): Likewise.
9714         (LDBL_EPSILON): Likewise.
9715         (FLT_MIN): Likewise.
9716         (DBL_MIN): Likewise.
9717         (LDBL_MIN): Likewise.
9718         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9719         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9720         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9721         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9722         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9723         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9724         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9725         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9726         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9727         [ISO11] (FLT_TRUE_MIN): Likewise.
9728         [ISO11] (LDBL_TRUE_MIN): Likewise.
9729         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9730         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9731         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9732         (SCHAR_MAX): Likewise.
9733         (UCHAR_MAX): Likewise.
9734         (CHAR_MIN): Likewise.
9735         (CHAR_MAX): Likewise.
9736         (MB_LEN_MAX): Use macro-int-constant.
9737         (SHRT_MIN): Use macro-int-constant.  Specify type.
9738         (SHRT_MAX): Likewise.
9739         (USHRT_MAX): Likewise.
9740         (INT_MAX): Likewise.
9741         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9742         bound negative.
9743         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9744         bound with "U".
9745         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9746         bound with "L".
9747         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9748         bound negative.  Suffix upper bound with "L".
9749         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9750         bound with "UL".
9751         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9752         Specify type.
9753         [C99-based standards] (LLONG_MAX): Likewise.
9754         [C99-based standards] (ULLONG_MAX): Likewise.
9755         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9756         == 0.
9757         [ISO11] (max_align_t): Require type.
9758         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9759
9760         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9761         from $CFLAGS, without defining away __attribute__ calls.
9762         (checknamespace): Use $CFLAGS_namespace.
9763
9764         * conform/conformtest.pl (@keywords): Only include C99 keywords
9765         for standards based on C99 or C11.
9766
9767         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9768         Disable tests.
9769         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9770         UNIX98]: Likewise.
9771
9772         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9773         usability of symbols in #if.
9774
9775         * conform/conformtest.pl: If macro or constant types start
9776         "promoted:", expect the symbol to be of the following type
9777         promoted by the integer promotions.
9778
9779         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9780         in one place.  Also handle "macro-constant".
9781
9782         * conform/conformtest.pl: Only accept expected macro values with
9783         "==".  Parse all "macro" lines in one place.
9784         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9785
9786         * conform/conformtest.pl: Handle braced types on "constant" lines
9787         instead of handling "typed-constant".
9788         * conform/data/signal.h-data: Use "constant" instead of
9789         "typed-constant".
9790
9791         * conform/conformtest.pl: Handle "optional-" at start of lines in
9792         one place rather than duplicating several cases.  Handle each
9793         format of "macro" line with initial "optional-".
9794
9795         * conform/conformtest.pl: Only accept expected constant or
9796         optional-constant values with "==".  Parse all "constant" lines in
9797         one place.  Parse all "optional-constant" lines in one place.
9798         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9799         * conform/data/fmtmsg.h-data: Likewise.
9800         * conform/data/netinet/in.h-data: Likewise.
9801         * conform/data/tar.h-data: Likewise.
9802         * conform/data/limits.h-data: Use "==" form on "constant" and
9803         "optional-constant" lines.
9804
9805         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9806         Use -std=c99 for XOPEN2K.
9807         (@knownproblems): Remove.
9808         (newtoken): Don't check %isknown.
9809
9810         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9811         Do not expect macro.
9812         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9816         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9817         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9818         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9819         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9820         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9824         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9825         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9826         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9827         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9828         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9829         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9830         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9831         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9832         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9833         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9834         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9837         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9838         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9839         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9840         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9842         [XPG3] (acosh): Likewise.
9843         [XPG3] (asinh): Likewise.
9844         [XPG3] (atanh): Likewise.
9845         [XPG3] (cbrt): Likewise.
9846         [XPG3] (expm1): Likewise.
9847         [XPG3] (ilogb): Likewise.
9848         [XPG3] (log1p): Likewise.
9849         [XPG3] (logb): Likewise.
9850         [XPG3] (nextafter): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9853         [XPG3] (remainder): Likewise.
9854         [XPG3] (rint): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9857         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9862         [UNIX98 || XOPEN2K] (scalb): Expect.
9863         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9864         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9874         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9875         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9876         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9877         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9878         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9881         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9882         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9995         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9996         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9997         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9998         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9999         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10000
10001         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10002         _XOPEN_SOURCE_EXTENDED for XPG4.
10003
10004         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10005
10006         * Makeconfig (localtime): Remove variable.
10007         (inst_localtime-file): Likewise.
10008
10009 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10010
10011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10012         Update.
10013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10014         Update.
10015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10016         Update.
10017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10018         Update.
10019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10020         Update.
10021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10022         Update.
10023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10024         Update.
10025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10026         Update.
10027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10028         Update.
10029
10030 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10031
10032         [BZ #2550]
10033         [BZ #2570]
10034         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10035         comparisons to determine direction to adjust input.
10036         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10037         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10038         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10039         Likewise.
10040         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10041         Likewise.
10042         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10043         Likewise.
10044         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10045         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10046         Likewise.
10047         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10048         Likewise.
10049         * math/libm-test.inc (nexttoward_test): Add more tests.
10050
10051 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10052
10053         [BZ #14040]
10054         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10055         in version GLIBC_2.1, not GLIBC_2.0.
10056         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10057         Likewise.
10058
10059 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10060
10061         [BZ #13942]
10062         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10063         (1 - x) * (1 + x).
10064         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10065         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10066         * math/libm-test.inc (acos_test): Add more tests.
10067         (asin_test): Likewise.
10068         * sysdeps/i386/fpu/libm-test-ulps: Update.
10069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10070
10071         [BZ #14034]
10072         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10073         of square root.
10074         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10075         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10076         * math/libm-test.inc (acos_test_tonearest): New function.
10077         (acos_test_towardzero): Likewise.
10078         (acos_test_downward): Likewise.
10079         (acos_test_upward): Likewise.
10080         (asin_test_tonearest): Likewise.
10081         (asin_test_towardzero): Likewise.
10082         (asin_test_downward): Likewise.
10083         (asin_test_upward): Likewise.
10084         (main): Call the new functions.
10085         * sysdeps/i386/fpu/libm-test-ulps: Update.
10086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10087
10088         [BZ #13884]
10089         [BZ #13924]
10090         * math/e_exp10.c: Include <float.h>.
10091         (__ieee754_exp10): Handle underflow here rather than multiplying
10092         large negative argument by M_LN10.
10093         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10094         of __ieee754_expf.
10095         * math/e_exp10l.c: Include <float.h>.
10096         (__ieee754_exp10l): Handle underflow here rather than multiplying
10097         large negative argument by M_LN10l.
10098         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10099         spurious overflow exception on underflow.
10100
10101 2012-04-29  Marek Polacek  <polacek@redhat.com>
10102
10103         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10104         (__fortify_function): New macro.
10105         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10106         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10107         __extern_always_inline.
10108         * libio/bits/stdio2.h: Likewise.
10109         * libio/bits/stdio.h: Likewise.
10110         * string/string.h: Likewise.
10111         * string/bits/string3.h: Likewise.
10112         * include/stdio.h: Likewise.
10113         * stdlib/bits/stdlib.h: Likewise.
10114         * stdlib/stdlib.h: Likewise.
10115         * rt/bits/mqueue2.h: Likewise.
10116         * rt/mqueue.h: Likewise.
10117         * posix/bits/unistd.h: Likewise.
10118         * posix/unistd.h: Likewise.
10119         * io/bits/poll2.h: Likewise.
10120         * io/bits/fcntl2.h: Likewise.
10121         * io/fcntl.h: Likewise.
10122         * io/sys/poll.h: Likewise.
10123         * misc/bits/syslog.h: Likewise.
10124         * misc/bits/syslog-ldbl.h: Likewise.
10125         * misc/sys/syslog.h: Likewise.
10126         * socket/bits/socket2.h: Likewise.
10127         * socket/sys/socket.h: Likewise.
10128         * debug/tst-chk1.c: Likewise.
10129         * wcsmbs/bits/wchar2.h: Likewise.
10130         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10131         * wcsmbs/wchar.h: Likewise.
10132
10133 2012-04-29  Andreas Jaeger  <aj@suse.de>
10134
10135         * Makerules (tests): Remove enable-check-abi protection.
10136         (check-abi-warn): Remove.
10137         (check-abi-%): Remove check-abi-warn usage.
10138
10139         * configure.in: Remove check-abi configure option.
10140         * configure: Regenerated.
10141         * config.make.in (enable-check-abi): Remove.
10142
10143 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10144
10145         [BZ #14033]
10146         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10147         double functions to double *_finite functions.
10148
10149         [BZ #13941]
10150         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10151         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10152         LDBL_MIN_EXP.
10153         * stdio-common/Makefile (tests): Add tst-sprintf3.
10154         * stdio-common/tst-sprintf3.c: New file.
10155
10156         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10157         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10158
10159 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10160
10161         * conform/conformtest.pl: Remove duplicate typed-constant
10162         handling.
10163
10164 2012-04-28  David S. Miller  <davem@davemloft.net>
10165
10166         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10167         (check-abi-%): Remove AWK script prerequisite and explicit
10168         abilist directory.
10169         (check-abi): Rewrite to just diff the symlist with the abilist.
10170         (config-tls, config-abi-config): Delete, no longer used.
10171         (update-abi-%): Remove AWK script and explicit abilist directory.
10172         (update-abi): Rewrite to simply compare and conditionally copy the
10173         symlist and the sysdep abilist file.  Remove update-abi-config
10174         checks.
10175         * abilist/ld.abilist: Remove.
10176         * abilist/libBrokenLocale.abilist: Remove.
10177         * abilist/libanl.abilist: Remove.
10178         * abilist/libcrypt.abilist: Remove.
10179         * abilist/libdl.abilist: Remove.
10180         * abilist/librt.abilist: Remove.
10181         * abilist/libthread_db.abilist: Remove.
10182         * abilist/libutil.abilist: Remove.
10183         * scripts/extract-abilist.awk: Remove.
10184         * scripts/merge-abilist.awk: Remove.
10185         * sysdeps/generic/libcidn.abilist: New file.
10186         * sysdeps/generic/libnss_compat.abilist: New file.
10187         * sysdeps/generic/libnss_db.abilist: New file.
10188         * sysdeps/generic/libnss_dns.abilist: New file.
10189         * sysdeps/generic/libnss_files.abilist: New file.
10190         * sysdeps/generic/libnss_hesiod.abilist: New file.
10191         * sysdeps/generic/libnss_nis.abilist: New file.
10192         * sysdeps/generic/libnss_nisplus.abilist: New file.
10193         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10194         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10195         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10196         file.
10197         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10198         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10199         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10200         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10201         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10202         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10203         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10204         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10205         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10206         file.
10207         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10208         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10209         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10210         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10211         file.
10212         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10213         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10214         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10215         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10216         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10217         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10218         file.
10219         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10220         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10221         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10222         file.
10223         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10225         New file.
10226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10227         New file.
10228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10229         New file.
10230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10231         New file.
10232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10233         New file.
10234         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10235         New file.
10236         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10237         New file.
10238         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10239         New file.
10240         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10241         New file.
10242         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10243         New file.
10244         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10245         New file.
10246         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10247         New file.
10248         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10249         New file.
10250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10251         file.
10252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10253         New file.
10254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10255         New file.
10256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10257         file.
10258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10259         New file.
10260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10261         New file.
10262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10263         file.
10264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10265         New file.
10266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10267         New file.
10268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10269         New file.
10270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10271         New file.
10272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10273         New file.
10274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10275         New file.
10276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10278         file.
10279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10280         New file.
10281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10282         file.
10283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10284         file.
10285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10286         file.
10287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10288         file.
10289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10290         file.
10291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10292         New file.
10293         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10294         file.
10295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10296         file.
10297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10298         New file.
10299         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10300         file.
10301         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10303         file.
10304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10305         New file.
10306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10307         file.
10308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10309         file.
10310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10311         file.
10312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10313         file.
10314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10315         file.
10316         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10317         New file.
10318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10319         file.
10320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10321         file.
10322         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10323         New file.
10324         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10325         file.
10326         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10327         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10328         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10329         file.
10330         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10331         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10332         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10333         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10334         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10335         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10336         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10337         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10338         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10339         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10342         file.
10343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10344         New file.
10345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10346         file.
10347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10348         file.
10349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10350         file.
10351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10352         file.
10353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10354         file.
10355         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10356         New file.
10357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10358         New file.
10359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10360         file.
10361         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10362         New file.
10363         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10364         file.
10365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10367         file.
10368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10369         New file.
10370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10371         file.
10372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10373         file.
10374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10375         file.
10376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10377         file.
10378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10379         file.
10380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10381         New file.
10382         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10383         New file.
10384         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10385         file.
10386         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10387         New file.
10388         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10389         file.
10390
10391 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10392
10393         * conform/conformtest.pl: Fix typo in handling typed-constant from
10394         allow-header.
10395
10396 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10397
10398         * README: Cut down references to pre-2.6 Linux kernels and
10399         Linuxthreads.  Update lists of configurations in libc and ports
10400         and sort alphabetically.  Say "or newer" with Linux kernel version
10401         requirements.
10402
10403         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10404
10405 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10406
10407         [BZ #887]
10408         * math/libm-test.inc (logb_test_downward): New test to expose
10409         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10410         rounding mode.
10411
10412 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10413
10414         [BZ #14027]
10415         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10416         to be done.
10417         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10418         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10419
10420 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10421
10422         * sysdeps/unix/i386/brk.S: Remove file.
10423         * sysdeps/unix/i386/dl-brk.S: Likewise.
10424         * sysdeps/unix/i386/pipe.S: Likewise.
10425         * sysdeps/unix/i386/sigreturn.S: Likewise.
10426         * sysdeps/unix/i386/syscall.S: Likewise.
10427         * sysdeps/unix/i386/vfork.S: Likewise.
10428         * sysdeps/unix/i386/wait.S: Likewise.
10429
10430         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10431         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10432
10433         * configure.in (arm*-none*): Do not allow without
10434         --enable-hacker-mode.
10435         (netbsd*): Remove case setting base_os.
10436         (386bsd*): Likewise.
10437         (freebsd*): Likewise.
10438         (bsdi*): Likewise.
10439         (osf*): Likewise.
10440         (sunos*): Likewise.
10441         (ultrix*): Likewise.
10442         (newsos*): Likewise.
10443         (dynix*): Likewise.
10444         (*bsd*): Likewise.
10445         (sysv*): Likewise.
10446         (isc*): Likewise.
10447         (esix*): Likewise.
10448         (sco*): Likewise.
10449         (minix*): Likewise.
10450         (irix4*): Likewise.
10451         (irix6*): Likewise.
10452         (solaris[2-9]*): Likewise.
10453         (none): Likewise.
10454         * configure: Regenerated.
10455
10456 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10457
10458         [BZ #11521]
10459         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10460         overflow or cancellation in calculating denominator.
10461         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10462         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10463         down expression to avoid unexpected rounding in newer GCCs.
10464         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10465
10466 2012-04-26  David S. Miller  <davem@davemloft.net>
10467
10468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10469         long-double compat symbols.
10470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10483
10484 2012-04-25  David S. Miller  <davem@davemloft.net>
10485
10486         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10487         HWCAP_* values only after the memory barriers have been defined.
10488         (atomic_full_barrier): Define.
10489         (atomic_read_barrier): Define.
10490         (atomic_write_barrier): Define.
10491
10492 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10493
10494         * shlib-versions: Add libgcc_s version information.
10495         * sysdeps/generic/libgcc_s.h: Remove.
10496         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10497         libgcc_s.h.
10498         * sysdeps/gnu/unwind-resume.c: Likewise.
10499         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10500
10501 2012-04-25  David S. Miller  <davem@davemloft.net>
10502
10503         * sysdeps/unix/sparc/brk.S: Delete.
10504         * sysdeps/unix/sparc/dl-brk.S: Delete.
10505         * sysdeps/unix/sparc/pipe.S: Delete.
10506         * sysdeps/unix/sparc/sysdep.S: Delete.
10507         * sysdeps/unix/sparc/sysdep.h: Delete.
10508         * sysdeps/unix/sparc/vfork.S: Delete.
10509         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10510         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10511         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10512         ret_ERRVAL, r0, r1, MOVE): Define.
10513         (JUMPTARGET): Remove.
10514         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10515         sysdeps/unix/sparc/sysdep.h
10516         (ENTRY, END): Remove.
10517         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10518
10519 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10520
10521         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10522         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10523         -DIS_IN_build.
10524
10525         * timezone/README: Update upstream location and email address for
10526         tzcode and tzdata.
10527         * timezone/zdump.c: Update from tzcode 2012b.
10528         * timezone/zic.c: Likewise.
10529
10530         * configure.in (libc_cv_as_needed): Remove test.
10531         * configure: Regenerated.
10532         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10533         conditional definition.
10534         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10535         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10536         * config.make.in (have-as-needed): Remove variable.
10537
10538 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10539             Paul Pluzhnikov  <ppluzhnikov@google.com>
10540
10541         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10542         strings correctly.
10543
10544 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10545
10546         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10547         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10548         * sysdeps/sh/strlen.S: Likewise.
10549
10550 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10551
10552         * sysdeps/unix/fork.S: Remove file.
10553         * sysdeps/unix/i386/fork.S: Likewise.
10554         * sysdeps/unix/sparc/fork.S: Likewise.
10555
10556         * sysdeps/unix/system.c: Remove file.
10557         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10558
10559         * sysdeps/unix/getegid.S: Remove file.
10560         * sysdeps/unix/geteuid.S: Likewise.
10561
10562 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10563
10564         * scripts/check-localplt.awk: New file.
10565         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10566         of diff.
10567         * scripts/data/localplt-generic.data: Add a comment.
10568
10569         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10570         NODE when __dir_mkfile failed.
10571         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10572         Reported by Ludovic Courtès <ludo@gnu.org>.
10573
10574 2012-04-24  Andreas Jaeger  <aj@suse.de>
10575
10576         * Makerules (common-clean): Also remove gen-as-const-headers
10577         files.
10578
10579 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10580
10581         * Makerules (native-compile): Do not change working directory for
10582         build.  Use $(OUTPUT_OPTION) in command.
10583         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10584
10585 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10586
10587         [BZ #13886]
10588         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10589         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10590         * math/libm-test.inc (floor_test): Add more tests.
10591         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10592
10593 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10594
10595         * sysdeps/unix/getdents.c: Remove file.
10596         * sysdeps/unix/sysv/getdents.c: Likewise.
10597         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10598
10599         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10600         sysdeps/unix/mman/syscalls.list.
10601         (mmap): Likewise.
10602         (mprotect): Likewise.
10603         (msync): Likewise.
10604         (munmap): Likewise.
10605         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10606         * sysdeps/unix/mman/syscalls.list: Remove.
10607         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10608
10609         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10610         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10611         * configure: Regenerated.
10612         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10613         $(libgcc_s_suffix).
10614         * config.make.in (libgcc_s_suffix): Remove variable.
10615
10616 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * sysdeps/unix/sysv/gethostname.c: Move to ...
10619         * sysdeps/posix/gethostname.c: ... here.
10620
10621         * sysdeps/unix/execve.S: Remove file.
10622
10623         * sysdeps/unix/_exit.S: Remove file.
10624
10625 2012-04-23  Andreas Jaeger  <aj@suse.de>
10626
10627         [BZ #13739]
10628         * manual/Makefile: Remove make dist support, there's no
10629         need for a stand-alone documentation tar ball.
10630         (TEXI2DVI): Define always, it's not in Makeconfig.
10631         (dist): Removed.
10632         (tar-it): Removed.
10633         (edition): Removed.
10634         (glibc-doc-$(edition).tar): Removed
10635         (%.Z): Removed.
10636         (%.gz): Removed.
10637         (%.uu): Removed.
10638         (ETAGS): Remove, it's in Makeconfig.
10639         (move-if-change): Remove, it's in Makeconfig.
10640
10641 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         [BZ #13970]
10644         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10645         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10646         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10647         (strtod_l, strtof_l, strtold_l): Remove __wur.
10648         It is not necessarily an error to ignore strtol's return value.
10649         One can reliably look at the stored endptr to decide whether
10650         the number had valid syntax.
10651
10652 2012-04-21  Andreas Jaeger  <aj@suse.de>
10653
10654         [BZ #13739]
10655         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10656
10657 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10658
10659         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10660         * sysdeps/unix/sysv/Versions: Remove file.
10661
10662 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10663
10664         [BZ #13927]
10665         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10666
10667 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10668
10669         [BZ #7064]
10670         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10671         version from __vm86.
10672
10673 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10674
10675         * sysdeps/unix/common/lxstat.c: Remove file.
10676         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10677
10678         * sysdeps/unix/sysv/Makefile: Remove file.
10679
10680         * sysdeps/unix/sysv/direct.h: Remove file.
10681
10682         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10683         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10684         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10685         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10686         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10687         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10688         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10689
10690         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10691
10692         * sysdeps/unix/xmknod.c: Remove file.
10693         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10694
10695         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10696
10697         * sysdeps/unix/sysv/i386/time.S: Remove file.
10698
10699         * sysdeps/unix/fxstat.c: Remove file.
10700         * sysdeps/unix/xstat.c: Likewise.
10701         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10702
10703         * sysdeps/unix/sysv/sigaction.c: Remove file.
10704
10705         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10706         (sysdep_headers): Remove variable.
10707         [termio.h not in sysdep_headers] (generated): Likewise.
10708         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10709         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10710         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10711         * sysdeps/unix/sysv/tcflow.c: Likewise.
10712         * sysdeps/unix/sysv/tcflush.c: Likewise.
10713         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10714         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10715         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10716         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10717         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10718
10719         * sysdeps/unix/siglist.c: Remove file.
10720
10721         * sysdeps/unix/getppid.S: Remove file.
10722
10723         * sysdeps/unix/mkdir.c: Remove file.
10724         * sysdeps/unix/rmdir.c: Likewise.
10725
10726 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10727
10728         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10729         ERR_MAX value.
10730         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10731         errlist-compat value.
10732
10733 2012-04-18  David S. Miller  <davem@davemloft.net>
10734
10735         * sysdeps/generic/memcopy.h (reg_char): Delete.
10736         * debug/strcat_chk.c: Use char, not reg_char.
10737         * debug/strcpy_chk.c: Likewise.
10738         * debug/strncat_chk.c: Likewise.
10739         * debug/strncpy_chk.c: Likewise.
10740         * string/memchr.c: Likewise.
10741         * string/memrchr.c: Likewise.
10742         * string/rawmemchr.c: Likewise.
10743         * string/strcat.c: Likewise.
10744         * string/strchr.c: Likewise.
10745         * string/strchrnul.c: Likewise.
10746         * string/strcmp.c: Likewise.
10747         * string/strcpy.c: Likewise.
10748         * string/strncat.c: Likewise.
10749         * string/strncmp.c: Likewise.
10750         * string/strncpy.c: Likewise.
10751
10752 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10753
10754         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10755         __builtin_memcopy is called when src and dest ranges are known to not
10756         overlap.
10757
10758 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10759
10760         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10761         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10762         fwd_align_merge macro call.
10763         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10764         bwd_align_merge macro call.
10765         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10766
10767 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10768
10769         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10770         bwd_align_merge macros.
10771         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10772         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10773         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10774
10775 2012-04-18  David S. Miller  <davem@davemloft.net>
10776
10777         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10778
10779 2012-04-18  Andreas Jaeger  <aj@suse.de>
10780
10781         [BZ# 6794]
10782         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10783         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10784         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10785
10786         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10787         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10788         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10789
10790         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10791         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10792         Adjust for changed ldbl-128 files.
10793
10794         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10795         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10796         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10797
10798 2012-04-17  David S. Miller  <davem@davemloft.net>
10799
10800         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10801
10802 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10803
10804         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10805         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10806         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10807         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10808         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10809         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10810
10811 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10812
10813         [BZ #6794]
10814         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10815         * math/libm-test.inc: Add ilogb errno and exception tests.
10816         * math/w_ilogb.c: New file: ilogb wrapper.
10817         * math/w_ilogbf.c: New file: ilogbf wrapper.
10818         * math/w_ilogbl.c: New file: ilogbl wrapper.
10819         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10820         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10821         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10822         exception being thrown with 0.0 as argument.
10823         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10824         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10825         exception being thrown with 0.0 as argument.
10826         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10827         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10828         exception being thrown with 0.0 as argument.
10829         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10830         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10831         exception being thrown with 0.0 as argument.
10832         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10833         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10834         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10835         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10836         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10837         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10838         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10839         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10840         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10841
10842 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10843
10844         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10845         with altivec.
10846
10847 2012-04-16  Marek Polacek  <polacek@redhat.com>
10848
10849         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10850
10851 2012-04-16  Marek Polacek  <polacek@redhat.com>
10852
10853         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10854         operands of fdivp instruction.
10855
10856 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10857
10858         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10859         * elf/tst-auditmod3b.c: Likewise.
10860         * elf/tst-auditmod4b.c: Likewise.
10861         * elf/tst-auditmod5b.c: Likewise.
10862         * elf/tst-auditmod6b.c: Likewise.
10863         * elf/tst-auditmod6c.c: Likewise.
10864         * elf/tst-auditmod7b.c: Likewise.
10865         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10866         * sysdeps/x86_64/preconfigure.in: Likewise.
10867         * sysdeps/x86_64/preconfigure: Regenerated.
10868
10869 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10870
10871         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10872         __ILP32__.
10873
10874 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10875
10876         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10877         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10878
10879 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10880
10881         [BZ #13973]
10882         * locale/iso-639.def: Fix gl language name. Spotted by
10883         Yaron Shahrabani.
10884
10885 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10886
10887         [BZ #2074]
10888         * libio/libio.h (__io_write_fn): Update comment.
10889
10890 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10891
10892         [BZ #2074]
10893         * stdio.texi (Hook Functions): The user provided writer function
10894         is not allowed to return -1.
10895
10896 2012-04-11  David S. Miller  <davem@davemloft.net>
10897
10898         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10899
10900 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10901
10902         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10903         Add a leading slash to rtkaio.
10904
10905 2012-04-11  Jim Meyering  <meyering@redhat.com>
10906
10907         [BZ #11959]
10908         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10909         It is not necessarily an error to ignore fwrite's return
10910         value.  One can reliably use ferror to test for errors after
10911         the fact.
10912
10913 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10914
10915         * bits/types.h (__snseconds_t): New type.
10916         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10917
10918         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10919         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10920         (__SNSECONDS_T_TYPE): Likewise.
10921         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10922         (__SNSECONDS_T_TYPE): Likewise.
10923         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10924         (__SNSECONDS_T_TYPE): Likewise.
10925
10926 2012-04-10  Andreas Jaeger  <aj@suse.de>
10927
10928         [BZ #2636]
10929         * manual/time.texi (Processor Time): Return type of times is
10930         elapsed real time since an arbitrary point in the past.
10931         (CPU Time): Move CLK_TCK from here...
10932         (Processor Time): ...to here.  Correct description.
10933         * manual/conf.texi (Constants for Sysconf): Correct description of
10934         _SC_CLK_TCK.
10935
10936 2012-04-10  David S. Miller  <davem@davemloft.net>
10937
10938         [BZ #13967]
10939         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10940         where the is a gap between DT_REL(A) and DT_JMPREL.
10941
10942 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10943
10944         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10945         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10946         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10947
10948 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10949
10950         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10951         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10952         (dl_main): Handle --inhibit-cache.
10953         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10954         _dl_inhibit_cache.
10955         * elf/dl-load.c (_dl_map_object): Use it.
10956         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10957
10958 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10959
10960         [BZ #13872]
10961         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10962         (__ieee754_powl): Saturate large exponents rather than testing for
10963         overflow of y*log2(x).
10964         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10965         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10966         exceptions.
10967
10968         [BZ #11521]
10969         * math/s_ctan.c: Include <float.h>.
10970         (__ctan): Avoid internal overflow or cancellation in calculating
10971         denominator.
10972         * math/s_ctanf.c: Likewise.
10973         * math/s_ctanl.c: Likewise.
10974         * math/s_ctanh.c: Likewise.
10975         * math/s_ctanhf.c: Likewise.
10976         * math/s_ctanhl.c: Likewise.
10977         * math/libm-test.inc (ctan_test): Add more tests.
10978         (ctanh_test): Likewise.
10979         * sysdeps/i386/fpu/libm-test-ulps: Update.
10980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10981
10982 2012-04-09  Andreas Jaeger  <aj@suse.de>
10983
10984         [BZ #6894]
10985         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10986         is an optional BSD extension.
10987
10988         [BZ #10254]
10989         * manual/stdio.texi (Opening Streams): Document additional fopen
10990         parameters.
10991
10992 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10993
10994         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10995         %eax without telling the compiler.
10996
10997 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10998
10999         [BZ # 13963]
11000         * manual/install.texi: Use sourceware.org.
11001
11002 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11003
11004         [BZ #13873]
11005         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11006         (__ieee754_pow): Generate overflow and underflow using huge*huge
11007         and tiny*tiny rather than just returning constant infinity or zero
11008         for large exponents.
11009         * math/libm-test.inc (pow_test): Require overflow exceptions for
11010         applicable cases of large exponents.
11011
11012         [BZ #706]
11013         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11014         (__ieee754_pow): Use iterative multiplication algorithm only for
11015         integer exponents with absolute value below 1024.  Check for odd
11016         integer exponents when using algorithm for real exponents.
11017         * math/libm-test.inc (pow_test): Add more tests.
11018         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11019
11020 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11021
11022         [BZ #13705]
11023         * math/libm-test.inc (exp_test): Do not allow overflow exception
11024         on underflow test.
11025
11026 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11027
11028         [BZ #13705]
11029         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11030         instead of __kernel_standard_f.
11031
11032 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11033
11034         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11035         * sysdeps/x86_64/memset_chk.S: Likewise.
11036
11037 2012-04-08  Andreas Jaeger  <aj@suse.de>
11038
11039         [BZ #10153]
11040         * manual/startup.texi (Environment Access): Describe return value
11041         for putenv and setenv.
11042
11043         [BZ #6895]
11044         * manual/filesys.texi (Directory Entries): Add description for
11045         DT_LNK.
11046
11047         [BZ #6890]
11048         * manual/filesys.texi (Directory Entries): Clarify that it's file
11049         system not operating system in the description of DT_UNKNOWN.
11050
11051         [BZ #6578]
11052         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11053
11054 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11055
11056         [BZ #6649]
11057         * manual/llio.texi (Opening and Closing Files): Add cross
11058         reference to explain mode argument.
11059
11060 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11061
11062         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11063         * sysdeps/x86_64/memset_chk.S: Likewise.
11064
11065 2012-04-07  David S. Miller  <davem@davemloft.net>
11066
11067         * elf/elf.h (R_SPARC_WDISP10): Define.
11068         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11069         R_SPARC_SIZE32.
11070         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11071         R_SPARC_SIZE64 and R_SPARC_H34.
11072
11073 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11074
11075         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11076         conditions and remove no longer applicable assertion.
11077
11078 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11079
11080         * bits/byteswap.h: Include <features.h>.
11081         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11082         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11083
11084 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11085
11086         * bits/byteswap.h (__bswap_16): Removed.
11087         Include <bits/byteswap-16.h> to get __bswap_16.
11088         * sysdeps/i386/bits/byteswap.h: Likewise.
11089         * sysdeps/s390/bits/byteswap.h: Likewise.
11090         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11091         * bits/byteswap-16.h: New file.
11092         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11093         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11094         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11095         * string/Makefile (headers): Add bits/byteswap-16.h.
11096
11097 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11098
11099         [BZ #13895]
11100         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11101         extra indirection.
11102         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11103         * nss/tst-nss-static.c: New.
11104
11105 2012-04-06  Robert Millan  <rmh@gnu.org>
11106
11107         [BZ #6486]
11108         * manual/llio.texi (File Position Primitive): lseek
11109         refers to WHENCE when it really means OFFSET.
11110
11111 2012-04-06  Andreas Jaeger  <aj@suse.de>
11112
11113         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11114         strncmp declarations.
11115
11116         * abilist/libc.abilist: Add __poll and __ppoll.
11117
11118 2012-04-05  David S. Miller  <davem@davemloft.net>
11119
11120         * scripts/check-local-headers.sh: Accept a host triplet in the
11121         path matched by the exclude regexp.
11122
11123         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11124         definition.
11125         * sysdeps/powerpc/powerpc32/dl-machine.h
11126         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11127         * sysdeps/s390/s390-32/dl-machine.h
11128         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11129         * sysdeps/sparc/sparc32/dl-machine.h
11130         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11131         * sysdeps/sparc/sparc64/dl-machine.h
11132         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11133
11134         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11135         lazy binding.
11136         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11137         undefined symbol errors.
11138
11139         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11140         DT_NEEDED entries.
11141
11142 2012-04-05  Michael Matz  <matz@suse.de>
11143
11144         [BZ #13592]
11145         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11146
11147 2012-04-05  Andreas Jaeger  <aj@suse.de>
11148
11149         [BZ #13908]
11150         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11151         comment.
11152
11153 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11154
11155         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11156         which ROUND is no valid rounding mode.
11157
11158 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11159
11160         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11161         read again.
11162         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11163
11164 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11165
11166         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11167         an exception using FPU order intentionally.
11168
11169 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11170
11171         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11172         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11173         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11174         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11175
11176 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11177
11178         [BZ #12340]
11179         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11180         EINVAL when BUFLEN is too smal.
11181
11182 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11183
11184         [BZ #13553]
11185         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11186         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11187
11188 2012-04-03  Andreas Jaeger  <aj@suse.de>
11189
11190         [BZ #13938]
11191         * manual/setjmp.texi (System V contexts): Fix sentence.
11192
11193         [BZ #13926]
11194         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11195         New macro for this case.
11196         [!__GNUC__] (__bswap_64): New inline function for this case.
11197         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11198         * bits/byteswap.h: Likewise.
11199         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11200         ull, guard with __GLIBC_HAVE_LONG_LONG.
11201
11202         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11203         __GLIBC_HAVE_LONG_LONG.
11204
11205         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11206         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11207
11208 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11209
11210         [BZ #13691]
11211         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11212         inptr and inend, rather than using last_ch.
11213
11214 2012-04-02  David S. Miller  <davem@davemloft.net>
11215
11216         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11217         * stdio-common/printf-parse.h (read_int): Change return type to
11218         'int', return -1 on INT_MAX overflow.
11219         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11220         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11221         overflows INT_MAX.  Check for overflow of in-format-string precision
11222         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11223         SIZE_MAX not INT_MAX for integer overflow test.
11224         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11225         skip the construct in the format string but do not record anything.
11226         * stdio-common/bug22.c: Adjust to test both width/prevision
11227         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11228         explicitly for proper errno values.
11229
11230 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11231
11232         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11233         CHAR_MAX.
11234         * string/test-strcmp.c [! WIDE]: Likewise.
11235         * time/tst-mktime2.c: Likewise for INT_MAX.
11236         * string/test-string.h: #include <sys/param.h> for MIN.
11237
11238         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11239         * sysdeps/i386/init-first.c (init): Likewise.
11240         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11241         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11242         * sysdeps/sh/init-first.c (init): Likewise.
11243
11244 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11245
11246         * po/ru.po: Update from translation team.
11247         * po/vi.po: Likewise.
11248
11249 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11250
11251         * resolv/nss_dns/dns-host.c: Merge copyright years.
11252
11253 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11254
11255         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11256         Optimize memcpy with prefetch if
11257         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11258         src, dst pointers have unequal 16 byte alignments.
11259
11260 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11261
11262         [BZ #13928]
11263         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11264         from a CNAME entry and return the minimum ttl for the query.
11265         (gaih_getanswer_slice): Likewise.
11266
11267 2012-03-30  Jeff Law  <law@redhat.com>
11268
11269         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11270         due to long keys.
11271         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11272         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11273
11274         * resolv/nss_dns/dns-host.c: Update copyright year.
11275
11276 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11277
11278         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11279         requests to save a system call.  Fix check that all bytes are sent.
11280
11281         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11282         comments for sendmmsg.
11283
11284 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11285
11286         [BZ #13691]
11287         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11288         with only 1 character between 0x0041 and 0x01b0.
11289         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11290         * wcsmbs/tst-mbsnrtowcs.c: New file.
11291
11292 2012-03-29  David S. Miller  <davem@davemloft.net>
11293
11294         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11295         small copies by hand.
11296
11297 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11298
11299         [BZ #13761]
11300         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11301         _nss_compat_initgroups_dyn): Fall back to malloc/free
11302         for large group memberships.
11303
11304 2012-03-28  David S. Miller  <davem@davemloft.net>
11305
11306         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11307         that branches into memcpy.
11308         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11309         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11310         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11311         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11312         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11313         bits.
11314         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11315         implementation too.
11316         * sysdeps/sparc/mempcpy.S: New file.
11317
11318         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11319         the IFUNC routine in the libc case.
11320         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11321
11322         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11323         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11324         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11325         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11326         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11327         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11328         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11329         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11330
11331         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11332         loop to 256 bytes instead of 64 bytes and fix test signedness.
11333
11334         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11335         * sysdeps/sparc/sparc32/Makefile: rather than here...
11336         * sysdeps/sparc/sparc64/Makefile: and here.
11337
11338 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11339
11340         * malloc/mallocbug.c: Avoid warnings about unused variables.
11341
11342 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11343
11344         [BZ #13760]
11345         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11346         in the right place. Discard and retry query if response is
11347         larger than input buffer size.
11348
11349 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11350
11351         [BZ #369]
11352         [BZ #2678]
11353         [BZ #3866]
11354         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11355         x for large integer exponent.
11356         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11357         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11358         sign of result as needed afterwards.
11359         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11360         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11361         result for underflowing pow the same as for overflow.
11362         (__kernel_standard_l): Handle powl overflow and underflow here
11363         rather than calling __kernel_standard.
11364         * math/libm-test.inc (pow_test): Add more tests.
11365
11366         [BZ #3868]
11367         [BZ #13879]
11368         [BZ #13910]
11369         [BZ #13911]
11370         [BZ #13912]
11371         [BZ #13913]
11372         [BZ #13915]
11373         [BZ #13916]
11374         [BZ #13917]
11375         [BZ #13918]
11376         [BZ #13919]
11377         [BZ #13920]
11378         [BZ #13921]
11379         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11380         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11381         (__kernel_standard_l): New function.
11382         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11383         __kernel_standard.
11384         * math/w_acosl.c (__acosl): Likewise.
11385         * math/w_asinl.c (__asinl): Likewise.
11386         * math/w_atan2l.c (__atan2l): Likewise.
11387         * math/w_atanhl.c (__atanhl): Likewise.
11388         * math/w_coshl.c (__coshl): Likewise.
11389         * math/w_exp10l.c (__exp10l): Likewise.
11390         * math/w_exp2l.c (__exp2l): Likewise.
11391         * math/w_fmodl.c (__fmodl): Likewise.
11392         * math/w_hypotl.c (__hypotl): Likewise.
11393         * math/w_j0l.c (__j0l, __y0l): Likewise.
11394         * math/w_j1l.c (__j1l, __y1l): Likewise.
11395         * math/w_jnl.c (__jnl, __ynl): Likewise.
11396         * math/w_lgammal.c (__lgammal): Likewise.
11397         * math/w_log10l.c (__log10l): Likewise.
11398         * math/w_log2l.c (__log2l): Likewise.
11399         * math/w_logl.c (__logl): Likewise.
11400         * math/w_powl.c (__powl): Likewise.
11401         * math/w_remainderl.c (__remainderl): Likewise.
11402         * math/w_scalbl.c (sysv_scalbl): Likewise.
11403         * math/w_sinhl.c (__sinhl): Likewise.
11404         * math/w_sqrtl.c (__sqrtl): Likewise.
11405         * math/w_tgammal.c (__tgammal): Likewise.
11406         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11407         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11408         * math/libm-test.inc (acos_test): Add more tests.
11409         (acosh_test): Likewise.
11410         (asin_test): Likewise.
11411         (atanh_test): Likewise.
11412         (exp_test): Likewise.
11413         (exp10_test): Likewise.
11414         (exp2_test): Likewise.
11415         (expm1_test): Likewise.
11416         (lgamma_test): Likewise.
11417         (log_test): Likewise.
11418         (log10_test): Likewise.
11419         (log1p_test): Likewise.
11420         (log2_test): Likewise.
11421         (pow_test): Do not allow some spurious overflow exceptions.
11422         (sqrt_test): Add more tests.
11423         (tgamma_test): Likewise.
11424         (y0_test): Likewise.
11425         (y1_test): Likewise.
11426         (yn_test): Likewise.
11427
11428 2012-03-27  Anton Blanchard  <anton@samba.org>
11429
11430         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11431         MAP_HUGETLB.
11432         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11433         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11434         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11435
11436 2012-03-27  David S. Miller  <davem@davemloft.net>
11437
11438         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11439
11440         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11441         have-as-vis3 check.
11442
11443 2012-03-27  Andreas Jaeger  <aj@suse.de>
11444
11445         * sysdeps/x86_64/elf/configure.in: Moved to ...
11446         * sysdeps/x86_64/configure.in: ... here.
11447         * sysdeps/x86_64/elf/start.S: Moved to ...
11448         * sysdeps/x86_64/start.S: ... here.
11449         * sysdeps/x86_64/elf/configure: Delete.
11450
11451         * sysdeps/x86_64/configure.in: Merge contents from
11452         sysdeps/i386/configure.in (without i686 check).
11453
11454         * sysdeps/i386/elf/Versions: Merge into ...
11455         * sysdeps/i386/Versions: ... this.
11456         * sysdeps/i386/elf/Versions: Delete file.
11457         * sysdeps/i386/elf/start.S: Moved to ...
11458         * sysdeps/i386/start.S: ...here.
11459         * sysdeps/i386/elf/configure.in: Merge into...
11460         * sysdeps/i386/configure.in: ...here.
11461         * sysdeps/i386/elf/configure.in: Delete file.
11462         * sysdeps/i386/elf/configure: Delete file.
11463
11464         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11465         * debug/backtracesyms.c: ... here.
11466         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11467         * debug/backtracesymsfd.c: ... here.
11468         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11469         * sysdeps/generic/ifunc-sel.h: ... here.
11470
11471         * sysdeps/unix/i386/start.c: Delete file.
11472         * sysdeps/unix/sparc/start.c: Delete file.
11473         * sysdeps/unix/start.c: Delete file.
11474
11475         * sysdeps/sh/elf/configure.in: Moved to ...
11476         * sysdeps/sh/configure.in: ... here.
11477         * sysdeps/sh/elf/start.S: Moved to ...
11478         * sysdeps/sh/start.S: ... here.
11479         * sysdeps/sh/elf/configure: Delete file.
11480
11481         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11482         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11483         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11484         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11485         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11486         * sysdeps/powerpc/powerpc64/start.S: here.
11487         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11488         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11489         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11490         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11491         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11492
11493         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11494         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11495         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11496         * sysdeps/powerpc/powerpc32/start.S: ... here.
11497         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11498         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11499         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11500
11501         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11502         * sysdeps/powerpc/ifunc-sel.h: ... here.
11503         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11504         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11505
11506         * sysdeps/sparc/elf/configure.in: Moved to ...
11507         * sysdeps/sparc/configure.in: ... here.
11508         * sysdeps/sparc/elf/configure: Delete file.
11509         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11510         * sysdeps/sparc/sparc32/start.S: ... here.
11511         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11512         * sysdeps/sparc/sparc64/start.S: ... here.
11513         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11514         * sysdeps/sparc/sparc32/Makefile: ... this.
11515         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11516         * sysdeps/sparc/sparc64/Makefile: ... this.
11517
11518         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11519         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11520         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11521         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11522         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11523         * sysdeps/s390/s390-32/setjmp.S: ... here.
11524         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11525         * sysdeps/s390/s390-32/configure.in: ... here.
11526         * sysdeps/s390/s390-32/elf/configure: Delete file.
11527         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11528         * sysdeps/s390/s390-32/start.S: ... here.
11529
11530         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11531         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11532         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11533         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11534         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11535         * sysdeps/s390/s390-64/setjmp.S: ... here.
11536         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11537         * sysdeps/s390/s390-64/configure.in: ... here
11538         * sysdeps/s390/s390-64/elf/configure: Delete file.
11539         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11540         * sysdeps/s390/s390-64/start.S: ... here.
11541         * sysdeps/s390/s390-64/elf/configure: Delete.
11542
11543         * configure.in: Remove support for elf directories in sysdeps.
11544
11545         * configure: Regenerated.
11546         * sysdeps/i386/configure: Regenerated.
11547         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11548         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11549         * sysdeps/s390/s390-32/configure: Regenerated.
11550         * sysdeps/s390/s390-64/configure: Regenerated.
11551         * sysdeps/sh/configure: Regenerated.
11552         * sysdeps/sparc/configure: Regenerated.
11553         * sysdeps/x86_64/configure: Regenerated.
11554
11555 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11556
11557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11558
11559         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11560         denormal result into account.
11561
11562 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11563
11564         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11565         Reported by Allan McRae <allan@archlinux.org>.
11566
11567 2012-03-23  Jeff Law  <law@redhat.com>
11568
11569         * nss/getnssent.c (__nss_getent): Fix typo.
11570
11571 2012-03-23  David S. Miller  <davem@davemloft.net>
11572
11573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11574
11575 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11576
11577         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11578         to pad to uint64_t for each field.
11579         (dl_tls_index): Replace unsigned long with uint64_t.
11580
11581 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11582         Paul Pluzhnikov  <ppluzhnikov@google.com>
11583
11584         [BZ #6528]
11585         * grp/Makefile (otherlibs): Don't set it.
11586         * inet/Makefile (otherlibs): Likewise.
11587         * login/Makefile (otherlibs): Likewise.
11588         * nscd/Makefile (otherlibs): Likewise.
11589         * posix/Makefile (otherlibs): Likewise.
11590         * pwd/Makefile (otherlibs): Likewise.
11591         * rt/Makefile (otherlibs): Likewise.
11592         * sunrpc/Makefile (otherlibs): Likewise.
11593         * nss/Makefile (otherlibs): Likewise.
11594         Add libnss_files to routines and static-only-routines.
11595         ($(objpfx)getent): Remove rule.
11596         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11597         static-only-routines.
11598
11599 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11600
11601         [BZ #13892]
11602         * math/s_cexp.c: Include <float.h>.
11603         (__cexp): Handle exp result overflowing not necessarily
11604         overflowing both real and imaginary parts of result.
11605         * math/s_cexpf.c: Likewise.
11606         * math/s_cexpl.c: Likewise.
11607         * math/libm-test.inc (cexp_test): Add more tests.
11608         * sysdeps/i386/fpu/libm-test-ulps: Update.
11609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11610
11611 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11612
11613         * include/link.h (ELFW): New macro.
11614         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11615         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11616
11617 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11618
11619         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11620         with uint64_t.
11621
11622 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11623
11624         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11625         declaration.
11626         (struct La_x32_retval): Likewise.
11627
11628 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11629
11630         * sysdeps/x86_64/preconfigure.in: New file.
11631         * sysdeps/x86_64/preconfigure: New generated file.
11632
11633 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11634
11635         [BZ #13824]
11636         * math/e_exp2l.c: Include <float.h>.
11637         (__ieee754_exp2l): Handle overflow and underflow cases
11638         separately.  Only pass fractional part of argument to
11639         __ieee754_expl.
11640         * math/libm-test.inc (exp2_test): Add more tests.
11641
11642         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11643         negating x to take absolute value.
11644         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11645         Likewise.
11646         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11647         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11648         Likewise.
11649         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11650         computing low part if x was negated.
11651         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11652
11653 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11654
11655         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11656         la_x32_gnu_pltexit.
11657         (pltexit): Cast int_retval to ptrdiff_t.
11658         * elf/tst-auditmod3b.c: Likewise.
11659         * elf/tst-auditmod4b.c: Likewise.
11660         * elf/tst-auditmod5b.c: Likewise.
11661         * elf/tst-auditmod6b.c: Likewise.
11662         * elf/tst-auditmod6c.c: Likewise.
11663         * elf/tst-auditmod7b.c: Likewise.
11664
11665         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11666         and x32_gnu_pltexit.
11667
11668         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11669         __ELF_NATIVE_CLASS.
11670         (La_x32_regs): New macro.
11671         (La_x32_retval): Likewise.
11672         (la_x32_gnu_pltenter): New function prototype.
11673         (la_x32_gnu_pltexit): Likewise.
11674
11675 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11676
11677         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11678         exponent.
11679
11680         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11681
11682         * configure.in (libc_cv_cc_nofma): Check for option to disable
11683         generation of FMA instructions.
11684         * configure: Regenerate.
11685         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11686         * sysdeps/ieee754/dbl-64/Makefile: New file.
11687         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11688         Remove brandred-fma4.
11689         (CFLAGS-brandred-fma4.c): Remove.
11690         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11691         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11692         define.
11693         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11694         define.
11695
11696 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11697
11698         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11699         LLONG_MAX != LONG_MAX.
11700         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11701         (_fitoa_word): Likewise.
11702         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11703         LLONG_MAX != LONG_MAX.
11704         * stdio-common/_itowa.h: Include <_itoa.h>.
11705         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11706         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11707         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11708         only if not defined.
11709         (_ITOA_WORD_TYPE): Likewise.
11710         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11711         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11712
11713 2012-03-21  David S. Miller  <davem@davemloft.net>
11714
11715         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11716
11717 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11718
11719         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11720         of x86_64 when setting libc_cv_slibdir, libdir and
11721         libc_cv_localedir.
11722         * sysdeps/unix/sysv/linux/configure: Regenerated.
11723
11724 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11725
11726         * manual/lang.texi (Old Varargs): Remove section.
11727         (How Variadic): Update menu.
11728         (va_start): Do not mention varargs.h.
11729
11730 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11731             Joseph Myers  <joseph@codesourcery.com>
11732
11733         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11734         link test.
11735         * configure: Regenerated.
11736
11737 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11738
11739         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11740         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11741         conformtest.pl
11742
11743 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11744
11745         * NOTES: Remove.
11746         * Makefile (files-for-dist): Remove NOTES.
11747         (NOTES): Remove rule.
11748         * README: Don't refer to NOTES.
11749         * manual/creature.texi: Don't include macros.texi.
11750         * manual/intro.texi (creature.texi): Remove comment referring to
11751         NOTES.
11752
11753         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11754         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11755         * configure: Regenerated.
11756         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11757         LIBC_TRY_CC_OPTION.
11758         (libc_cv_as_i686): Likewise.
11759         (libc_cv_cc_avx): Likewise.
11760         (libc_cv_cc_sse2avx): Likewise.
11761         (libc_cv_cc_fma4): Likewise.
11762         (libc_cv_cc_novzeroupper): Likewise.
11763         * sysdeps/i386/configure: Regenerated.
11764
11765         [BZ #13883]
11766         * sysdeps/i386/fpu/s_cexp.S: Remove.
11767         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11768         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11769         * math/libm-test.inc (cexp_test): Add more tests.
11770         * sysdeps/i386/fpu/libm-test-ulps: Update.
11771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11772
11773 2012-03-21  Allan McRae  <allan@archlinux.org>
11774
11775         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11776
11777 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11778
11779         [BZ #13871]
11780         * math/w_exp2.c: Do not include <float.h>.
11781         (o_threshold, u_threshold): Remove.
11782         (__exp2): Calculate result before checking finiteness and calling
11783         __kernel_standard.
11784         * math/w_exp2f.c: Likewise.
11785         * math/w_exp2l.c: Likewise.
11786         * math/libm-test.inc (exp2_test): Require overflow exception for
11787         1e6 input.
11788
11789         [BZ #3866]
11790         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11791         range of signed 64-bit integers before using fistpll.  Remove
11792         checks for whether integers fit in mantissa bits.
11793         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11794         the range of signed 32-bit integers before using fistpl.  Remove
11795         checks for whether integers fit in mantissa bits.
11796         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11797         (__ieee754_powl): Test for y outside the range of signed 64-bit
11798         integers before using fistpll.  Reduce 64-bit values to 63-bit
11799         ones as needed.
11800         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11801         divide-by-zero is raised for zero to large negative powers.
11802         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11803         (__ieee754_powl): Test for y outside the range of signed 64-bit
11804         integers before using fistpll.  Reduce 64-bit values to 63-bit
11805         ones as needed.
11806         * math/libm-test.inc (pow_test): Add more tests.
11807
11808 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11809
11810         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11811         <stdio-common/_itoa.h>.
11812         * debug/segfault.c: Likewise.
11813         * elf/dl-cache.c: Likewise.
11814         * elf/dl-minimal.c: Likewise.
11815         * elf/dl-misc.c: Likewise.
11816         * elf/dl-sysdep.c: Likewise.
11817         * elf/dl-version.c: Likewise.
11818         * elf/rtld.c: Likewise.
11819         * hurd/hurdsock.c: Likewise.
11820         * hurd/lookup-retry.c: Likewise.
11821         * malloc/malloc.c: Likewise.
11822         * malloc/mtrace.c: Likewise.
11823         * nscd/nscd_getgr_r.c: Likewise.
11824         * nscd/nscd_getpw_r.c: Likewise.
11825         * nscd/nscd_getserv_r.c: Likewise.
11826         * posix/getopt_init.c: Likewise.
11827         * posix/wordexp.c: Likewise.
11828         * stdio-common/_itoa.c: Likewise.
11829         * stdio-common/printf_fphex.c: Likewise.
11830         * stdio-common/vfprintf.c: Likewise.
11831         * string/_strerror.c: Likewise.
11832         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11833         * sysdeps/i386/i686/hp-timing.h: Likewise.
11834         * sysdeps/mach/_strerror.c: Likewise.
11835         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11836         * sysdeps/mach/hurd/sethostid.c: Likewise.
11837         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11838         * sysdeps/mach/xpg-strerror.c: Likewise.
11839         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11840         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11841         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11842         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11843         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11844         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11845         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11846         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11847         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11848         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11849         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11850         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11851         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11852         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11853         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11854         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11855         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11856         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11857         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11858         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11859         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11860
11861         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11862
11863         * stdio-common/_itoa.h: Moved to ...
11864         * sysdeps/generic/_itoa.h: Here.
11865
11866         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11867
11868         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11869         instead of "_itoa.h" and "_itowa.h".
11870         * stdio-common/vfprintf.: Likewise.
11871
11872 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11873
11874         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11875         <bits/wordsize.h>.
11876         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11877         (__signbit): Likwise.
11878         (llrintf): Likwise.
11879         (llrint): Likwise.
11880
11881 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11882
11883         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11884         __WORDSIZE != 64.
11885
11886 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11887
11888         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11889         OVERFLOW_EXCEPTION_OK.
11890         * math/libm-test.inc ("Philosophy"): Update comment about
11891         exception testing.
11892         (OVERFLOW_EXCEPTION): Define.
11893         (OVERFLOW_EXCEPTION_OK): Likewise.
11894         (INVALID_EXCEPTION_OK): Renumber.
11895         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11896         (IGNORE_ZERO_INF_SIGN): Likewise.
11897         (test_exceptions): Handle FE_OVERFLOW.
11898         (exp10_test): Expect overflow exceptions.
11899         (exp2_test): Likewise.
11900         (expm1_test): Likewise.
11901         (nextafter_test): Likewise.
11902         (pow_test): Likewise.
11903         (scalbn_test): Likewise.
11904         (scalbln_test): Likewise.
11905
11906 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11907
11908         * sysdeps/x86_64/bits/atomic.h
11909         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11910         64bit integer.
11911         (atomic_exchange_acq): Likewise.
11912         (__arch_exchange_and_add_body): Likewise.
11913         (__arch_add_body): Likewise.
11914         (atomic_add_negative): Likewise.
11915         (atomic_add_zero): Likewise.
11916
11917 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11918
11919         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11920         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11921
11922 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11925         Check __x86_64__ instead of __WORDSIZE.
11926
11927 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11928
11929         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11930
11931 2012-03-19  David S. Miller  <davem@davemloft.net>
11932
11933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11934
11935         * sysdeps/sparc/fpu/fenv_private.h: New file.
11936         * sysdeps/sparc/fpu/math_private.h: Use it.
11937         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11938         Remove.
11939         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11940         (libc_feholdexcept_setroundl): Remove.
11941         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11942         Remove.
11943         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11944         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11945
11946 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11947
11948         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11949         int64_t instead of long int.
11950         (INSERT_WORDS64): Likwise.
11951
11952 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11953
11954         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11955         _Unwind_GetCFA return to _Unwind_Ptr first.
11956
11957 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11958
11959         [BZ #13629]
11960         * math/s_clog.c: Include <float.h>.
11961         (__clog): Scale large or subnormal inputs.
11962         * math/s_clogf.c: Likewise.
11963         * math/s_clogl.c: Likewise.
11964         * math/s_clog10.c: Include <float.h>.
11965         (M_LOG10_2): Define.
11966         (__clog10): Scale large or subnormal inputs.
11967         * math/s_clog10f.c: Likewise.
11968         * math/s_clog10l.c: Likewise.
11969         * math/libm-test.inc (clog_test): Add more tests.
11970         (clog10_test): Likewise.
11971         * sysdeps/i386/fpu/libm-test-ulps: Update.
11972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11973
11974         [BZ #11451]
11975         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11976         x and y.
11977         * math/libm-test.inc (atan2_test): Add another test.
11978
11979         * Makerules (common-objdir-compile): Remove.
11980         * sysdeps/unix/Makefile (config-generated): Do not add
11981         $(unix-generated) to variable.
11982         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11983         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11984         Remove rule.
11985         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11986         Likewise.
11987         [generic bits/local_lim.h] (before-compile): Do not append to
11988         variable.
11989         [generic bits/local_lim.h] (common-generated): Likewise.
11990         [generic sys/param.h] (before-compile): Do not append to variable.
11991         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11992         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11993         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11994         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11995         include.
11996         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11997         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11998         [generic sys/param.h] ($(addprefix
11999         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12000         [generic sys/param.h] (common-generated): Do not append to
12001         variable.
12002         [generic sys/param.h] (sysdep_headers): Likewise.
12003         [generic bits/errno.h] (before-compile): Do not append to
12004         variable.
12005         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12006         rule.
12007         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12008         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12009         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12010         [generic bits/errno.h] (common-generated): Do not append to
12011         variable.
12012         [generic bits/ioctls.h] (before-compile): Do not append to
12013         variable.
12014         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12015         rule.
12016         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12017         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12018         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12019         rule.
12020         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12021         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12022         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12023         [generic bits/ioctls.h] (common-generated): Do not append to
12024         variable.
12025         [generic sys/syscall.h] (syscall.h): Remove variable.
12026         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12027         rule.
12028         [generic sys/syscall.h] (before-compile): Do not append to
12029         variable.
12030         [generic sys/syscall.h] (common-generated): Likewise.
12031         * sysdeps/unix/errnos-tmpl.c: Remove file.
12032         * sysdeps/unix/errnos.awk: Likewise.
12033         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12034         * sysdeps/unix/ioctls.awk: Likewise.
12035         * sysdeps/unix/mk-local_lim.c: Likewise.
12036         * sysdeps/unix/snarf-ioctls: Likewise.
12037
12038 2012-03-19  Richard Henderson  <rth@twiddle.net>
12039
12040         * sysdeps/i386/fpu/fenv_private.h: New file.
12041         * sysdeps/i386/fpu/math_private.h: Use it.
12042         (math_opt_barrier, math_force_eval): Remove.
12043         (libc_feholdexcept_setround_53bit): Remove.
12044         (libc_feupdateenv_53bit): Remove.
12045         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12046         (math_opt_barrier, math_force_eval): Remove.
12047         (libc_feholdexcept): Remove.
12048         (libc_feholdexcept_setround): Remove.
12049         (libc_fetestexcept, libc_fesetenv): Remove.
12050         (libc_feupdateenv_test): Remove.
12051         (libc_feupdateenv, libc_feholdsetround): Remove.
12052         (libc_feresetround): Remove.
12053
12054         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12055         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12056
12057         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12058         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12059         (libc_feupdateenv_testl): New.
12060         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12061         (libc_feupdateenv_testf): New.
12062         (libc_feupdateenv): Use libc_feupdateenv_test.
12063         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12064         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12065
12066         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12067         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12068         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12069         (libc_feresetround_noex): New.
12070         (libc_feresetround_noexf): New.
12071         (libc_feresetround_noexl): New.
12072         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12073         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12074         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12075         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12076         SET_RESTORE_ROUND.
12077         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12078         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12079         (__cos): Likewise.
12080         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12081         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12082         SET_RESTORE_ROUND_NOEX.
12083         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12084         SET_RESTORE_ROUND_NOEXF.
12085         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12086         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12087         (libc_feholdsetroundf): New.
12088         (libc_feresetround, libc_feresetroundf): New.
12089
12090         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12091         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12092         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12093
12094         * sysdeps/generic/math_private.h: Include <fenv.h>.
12095         (default_libc_feholdexcept): New.
12096         (default_libc_feholdexcept_setround): New.
12097         (default_libc_fesetenv, default_libc_feupdateenv): New.
12098         (libc_feholdexcept): Only define if undefined.
12099         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12100         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12101         (libc_feholdexcept_setroundl): Likewise.
12102         (libc_feholdexcept_setround_53bit): Likewise.
12103         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12104         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12105         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12106         (libc_feupdateenv_53bit): Likewise.
12107         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12108         (libc_feholdexcept): Convert from macro to inline function.
12109         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12110         (libc_fesetenv, libc_feupdateenv): Likewise.
12111
12112         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12113         not previously defined.
12114         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12115         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12116         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12117         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12118         * sysdeps/ieee754/flt-32/math_private.h: New file.
12119         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12120         math_private.h below SET_FLOAT_WORD.
12121         (__isnan, __isinf_ns, __finite): Remove.
12122         (__isnanf, __isinf_nsf, __finitef): Remove.
12123
12124 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12125
12126         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12127
12128 2012-03-17  David S. Miller  <davem@davemloft.net>
12129
12130         [BZ #6471]
12131         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12132         for 2.16.
12133
12134 2012-03-16  David S. Miller  <davem@davemloft.net>
12135
12136         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12137         warnings.
12138
12139         [BZ #6471]
12140         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12141         properly.
12142         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12143         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12144         sysdep_routines when subdir is sysvipc.
12145         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12146         __getshmlba helper.
12147
12148         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12149
12150 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12151
12152         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12153         [__LP64__].
12154
12155 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12156
12157         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12158         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12159         (__lround): Renamed to ...
12160         (__llround): This.  Replace long int with long long int.
12161         Define lround functions as aliases of llround functions.
12162         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12163
12164 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12165
12166         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12167         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12168         adresses to uintptr_t.  Replace "long int" and "unsigned long
12169         int" with "greg_t" on va_arg.
12170
12171 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12172
12173         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12174         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12175
12176         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12177         Move e_machine check before EI_CLASS check.  Handle x32
12178         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12179         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12180         SKIP_EM_IA_64 and include
12181         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12182
12183         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12184         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12185         (add_system_dir): New macro.
12186
12187         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12188         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12189
12190 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12191
12192         [BZ #2551]
12193         [BZ #2552]
12194         [BZ #2553]
12195         [BZ #2554]
12196         [BZ #2562]
12197         [BZ #2563]
12198         [BZ #2565]
12199         [BZ #2566]
12200         [BZ #2576]
12201         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12202         (y0): Likewise.
12203         * math/w_j0f.c (j0f): Likewise.
12204         (y0f): Likewise.
12205         * math/w_j0l.c (__j0l): Likewise.
12206         (__y0l): Likewise.
12207         * math/w_j1.c (j1): Likewise.
12208         (y1): Likewise.
12209         * math/w_j1f.c (j1f): Likewise.
12210         (y1f): Likewise.
12211         * math/w_j1l.c (__j1l): Likewise.
12212         (__y1l): Likewise.
12213         * math/w_jn.c (jn): Likewise.
12214         (yn): Likewise.
12215         * math/w_jnf.c (jnf): Likewise.
12216         (ynf): Likewise.
12217         * math/w_jnl.c (__jnl): Likewise.
12218         (__ynl): Likewise.
12219         * math/libm-test.inc (j0_test): Add more tests.
12220         (j1_test): Likewise.
12221         (jn_test): Likewise.  Add trailing semicolon to existing test.
12222         (y0_test): Likewise.
12223         (y1_test): Likewise.
12224         * sysdeps/i386/fpu/libm-test-ulps: Update.
12225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12226
12227         [BZ #13851]
12228         [BZ #13854]
12229         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12230         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12231         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12232         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12233         (__tanl): Set errno for infinite argument.
12234         * sysdeps/i386/fpu/mptan.c: Remove.
12235         * sysdeps/i386/fpu/s_tan.S: Likewise.
12236         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12237         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12238         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12239         * math/libm-test.inc (tan_test): Add more tests and enable more
12240         tests for double and long double.
12241         * sysdeps/i386/fpu/libm-test-ulps: Update.
12242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12243
12244 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12245
12246         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12247         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12248
12249 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12250
12251         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12252         * configure.in: Use it for both main tree and add-ons.
12253         * configure: Regenerated.
12254
12255 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12256
12257         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12258
12259 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12260
12261         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12262         in comment.
12263
12264         [BZ #13851]
12265         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12266         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12270         infinite argument.
12271         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12272         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12273         != 0 for prec == 2.
12274         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12275         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12276         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12277         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12278         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12279         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12280         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12281         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12282         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12283         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12284         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12285         * math/libm-test.inc (cos_test): Add more tests and enable more
12286         tests for long double.
12287         (sin_test): Likewise.
12288         (sincos_test): Likewise.
12289         * sysdeps/i386/fpu/libm-test-ulps: Update.
12290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12291
12292 2012-03-16  David S. Miller  <davem@davemloft.net>
12293
12294         * sysdeps/sparc/fpu/math_private.h: New file.
12295
12296 2012-03-15  David S. Miller  <davem@davemloft.net>
12297
12298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12299         file.
12300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12302         file.
12303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12308         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12309         sysdep routines.
12310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12311
12312         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12313         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12314
12315         * sysdeps/sparc/sparc-ifunc.h: New file.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12317         sparc-ifunc.h
12318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12320         Likewise.
12321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12322         Likewise.
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12327         Likewise.
12328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12333         Likewise.
12334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12335         Likewise.
12336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12340         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12341         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12342         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12343         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12344         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12345         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12346         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12347         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12348         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12349         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12350         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12351         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12352         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12353         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12354         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12355         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12356         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12357         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12358         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12359         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12360
12361 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12362
12363         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12364         scaling.
12365         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12366
12367 2012-03-15  Andreas Jaeger  <aj@suse.de>
12368
12369         [BZ #13852]
12370         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12371         ieee754/flt-32 implementation for sin, cos and sincos.
12372         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12373         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12374         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12375         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12376         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12377         ieee754/flt-32 implementation for tan.
12378
12379         * math/libm-test.inc (cos_test): Enable some large input tests for
12380         float as well
12381         (sin_test): Likewise.
12382         (sincos_test): Likewise.
12383         (tan_test): Add tests for large input.
12384
12385         * sysdeps/i386/fpu/libm-test-ulps: Update.
12386
12387 2012-03-15  Andreas Jaeger  <aj@suse.de>
12388
12389         [BZ #13658]
12390         * math/libm-test.inc (cos_test): Add more test cases.
12391         (sin_test): Likewise.
12392         (sincos_test): Likewise.
12393
12394 2012-03-15  Andreas Jaeger  <aj@suse.de>
12395
12396         [BZ #13837]
12397         * math/libm-test.inc (cos_test): Add a test case for large input
12398         value.
12399         (sin_test): Likewise.
12400         (sincos_test): Likewise.
12401
12402 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12403         Joseph Myers  <joseph@codesourcery.com>
12404
12405         [BZ #13658]
12406         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12407         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12408         * sysdeps/i386/fpu/branred.c: Likewise.
12409         * sysdeps/i386/fpu/dosincos.c: Likewise.
12410         * sysdeps/i386/fpu/mpa.c: Likewise.
12411         * sysdeps/i386/fpu/s_cos.S: Likewise.
12412         * sysdeps/i386/fpu/s_sin.S: Likewise.
12413         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12414         * sysdeps/i386/fpu/sincos32.c: Likewise.
12415
12416         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12417         Define.
12418         (libc_feupdateenv_53bit): Define.
12419         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12420         Define.
12421         (libc_feupdateenv_53bit): Define.
12422
12423         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12424         53 bit (without extend i386 double precision).
12425
12426         * math/libm-test.inc (sincos_test): Add tests for large input.
12427         (sin): Likewise.
12428         (cos): Likewise.
12429
12430         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12431
12432 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12433
12434         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12435
12436 2012-03-15  David S. Miller  <davem@davemloft.net>
12437
12438         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12439         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12440         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12441         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12446         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12447         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12448         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12449         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12450         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12451         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12454         file.
12455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12457         file.
12458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12460         file.
12461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12463         file.
12464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12465         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12466         fmin/fmax sysdep routines.
12467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12468
12469 2012-03-14  David S. Miller  <davem@davemloft.net>
12470
12471         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12472         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12473         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12474         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12475         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12476         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12477         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12478         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12479         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12480         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12481         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12482         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12483         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12484         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12485         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12486         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12487         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12488         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12489         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12490         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12491         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12492         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12493         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12494         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12495         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12496         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12497         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12498         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12499         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12500         routines.
12501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12502         file.
12503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12505         file.
12506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12508         file.
12509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12511         file.
12512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12514         file.
12515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12517         file.
12518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12519         file.
12520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12521         file.
12522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12523         file.
12524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12525         New file.
12526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12527         file.
12528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12529         file.
12530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12532         file.
12533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12535         file.
12536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12538         file.
12539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12541         VIS3 routines.
12542
12543         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12544         New file.
12545
12546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12547
12548         * sysdeps/sparc/configure.in: New file.
12549         * sysdeps/sparc/configure: Generate.
12550         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12551         * configure: Regenerate.
12552         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12553         * config.make.in (have-as-vis3): New.
12554         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12555         available use -Av9d instead of -Av9a.
12556         * sysdeps/sparc/sparc64/Makefile: Likewise.
12557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12559         New file.
12560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12561         file.
12562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12563         New file.
12564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12565         file.
12566         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12567         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12568         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12569         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12571
12572         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12573         fzeros/fnegs to load 0x80000000 into a float register instead of
12574         using the stack.
12575         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12576
12577 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12578
12579         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12580         bits/syscall.h.
12581         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12582         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12583         ($(inst_includedir)/bits/syscall.h): Remove rule.
12584         ($(objpfx)bits/syscall.d): Include instead of
12585         $(objpfx)syscall-list.d.
12586         (generated): Change syscall-list.h and syscall-list.d to
12587         bits/syscall.h and bits/syscall.d.
12588
12589 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12590
12591         [BZ #13846]
12592         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12593
12594 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12595
12596         [BZ #13841]
12597         * math/s_csqrt.c: Include <float.h>.
12598         (__csqrt): Scale large or subnormal inputs.
12599         * math/s_csqrtf.c: Likewise.
12600         * math/s_csqrtl.c: Likewise.
12601         * math/libm-test.inc (csqrt_test): Add more tests.
12602         * sysdeps/i386/fpu/libm-test-ulps: Update.
12603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12604
12605         [BZ #13840]
12606         * math/libm-test.inc (hypot_test): Add more tests.
12607
12608 2012-03-13  David S. Miller  <davem@davemloft.net>
12609
12610         [BZ #13840]
12611         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12612         double-precision for the calculation instead of scaling.
12613
12614 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12615
12616         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12617         manipulate bits before adding and subtracting TWO52[sx].
12618         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12619         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12620         Likewise.
12621         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12622
12623 2012-03-13  David S. Miller  <davem@davemloft.net>
12624
12625         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12626         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12627         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12628         rtld-global-offsets.h
12629         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12630
12631         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12632         large parameters.
12633
12634         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12635
12636         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12637         'err' in the ifdef scope in which it is actually used.
12638
12639         * nss/nss_db/db-init.c: Include string.h
12640
12641 2012-03-12  David S. Miller  <davem@davemloft.net>
12642
12643         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12644         masking out of the most significant byte of random value used.
12645         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12646         Fix coding style in previous change.
12647
12648         * sysdeps/unix/sysv/linux/kernel-features.h
12649         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12650         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12651         expression.
12652         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12653         later.
12654
12655 2012-03-11  David S. Miller  <davem@davemloft.net>
12656
12657         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12658         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12659         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12660         for 'resultvar' otherwise things get truncated on 64-bit.
12661
12662         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12663         Fix masking out of the most significant byte of random value used.
12664
12665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12666
12667 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12668
12669         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12670
12671 2012-03-09  David S. Miller  <davem@davemloft.net>
12672
12673         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12674         variables with appropriate CPP guards.
12675         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12676         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12677         on resulting framesize and the management of the outregs buffer for pltexit.
12678         Preserve floating point return values across _dl_call_pltexit call.
12679         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12680         framesize and the management of the outregs buffer for pltexit.
12681         Preserve floating point return values across _dl_call_pltexit
12682         call.
12683         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12684         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12685         (print_exit): Fix format string for return register value.
12686
12687 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12688
12689         * sunrpc/Makefile (others): Add rpcgen.
12690         ($(objpfx)rpcgen): Remove special build rule and dependency on
12691         libc.
12692         * sunrpc/rpcgen.c: New file.
12693
12694 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12695
12696         [BZ #13673]
12697         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12698         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12699         * sysdeps/i386/crti.S: Likewise.
12700         * sysdeps/i386/crtn.S: Likewise.
12701         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12702         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12703         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12704         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12705         * sysdeps/sh/crti.S: Likewise.
12706         * sysdeps/sh/crtn.S: Likewise.
12707         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12708
12709         [BZ #13673]
12710         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12711         with URL.
12712         * locale/programs/locfile-kw.gperf: Likewise.
12713         * locale/programs/charmap-kw.h: Regenerated.
12714         * locale/programs/locfile-kw.h: Likewise.
12715
12716         [BZ #13673]
12717         * intl/plural.y: Replace FSF snail mail address with URL.
12718         * intl/plural.c: Regenerated.
12719
12720 2012-03-09  Richard Henderson  <rth@twiddle.net>
12721
12722         * include/math_private.h: Remove file.
12723         * math/math_private.h: Move file ...
12724         * sysdeps/generic/math_private.h: ... here.
12725
12726         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12727         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12728         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12729
12730         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12731         and <math_private.h>.
12732         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12733         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12734         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12735         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12736         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12799         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12804         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12820         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12821         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12822         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12823         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12824         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12825         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12826         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12827         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12828         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12829         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12830         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12832         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12833         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12834         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12835         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12836         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12837         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12838         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12840         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12841         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12842         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12844         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12846         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12847         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12848         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12849         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12850         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12851         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12852         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12853         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12854         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12855         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12856         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12857         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12858         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12860         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12861         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12862         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12863         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12864         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12865         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12866         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12867         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12868         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12869         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12870         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12871         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12872         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12873         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12874         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12875         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12876         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12877         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12878         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12879         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12880         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12881         * sysdeps/ieee754/k_standard.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12909         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12997         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13001         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13002         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13004         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13005         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13007         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13009         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13014         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13028         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13030         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13031         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13032         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13042         * sysdeps/ieee754/s_lib_version.c: Likewise.
13043         * sysdeps/ieee754/s_matherr.c: Likewise.
13044         * sysdeps/ieee754/s_signgam.c: Likewise.
13045         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13046         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13047         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13048         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13049         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13050         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13051         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13052         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13053         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13054         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13055         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13056         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13057         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13058         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13059         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13060         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13061         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13062         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13063         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13064         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13065         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13066
13067 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13068
13069         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13070         * sunrpc/rpc_main.c: Likewise.
13071         * sunrpc/rpc_svcout.c: Likewise.
13072
13073 2012-03-09  David S. Miller  <davem@davemloft.net>
13074
13075         * include/math_private.h: New file.
13076
13077 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13078
13079         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13080         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13081         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13082         from <bits/socket_type.h>.
13083         (enum __socket_type): Don't define here.
13084         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13085         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13086         bits/socket_type.h.
13087
13088         [BZ #13566]
13089         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13090         checking __USE_GNU.
13091
13092         * Makerules ($(inst_includedir)/%.h): New rule.
13093         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13094         (install-others): Remove variable setting.
13095         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13096
13097 2012-03-08  Richard Henderson  <rth@twiddle.net>
13098
13099         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13100         from macro to inline function; merge with the
13101         !__LIBC_INTERNAL_MATH_INLINES version.
13102         (__ieee754_sqrtf): Likewise.
13103
13104         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13105         to inline function.
13106         (__rintf, __floor, __floorf): Likewise.
13107
13108         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13109         macro to inline function.
13110         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13111
13112         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13113         not <math/math_private.h>.
13114
13115 2012-03-08  David S. Miller  <davem@davemloft.net>
13116
13117         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13118         copyright year.
13119         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13120
13121 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13122
13123         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13124         normalization.
13125         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13126         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13127
13128 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13129
13130         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13131         be defined individually, they must be defined as a block.  Define
13132         S for printing a string instead of hidint the different by using a
13133         macro for adding the 'l'.
13134         * stdio-common/tst-fphex-wide.c: Adjust.
13135
13136 2012-03-07  Marek Polacek  <polacek@redhat.com>
13137
13138         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13139
13140 2012-03-08  Marek Polacek  <polacek@redhat.com>
13141
13142         [BZ #13806]
13143         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13144         * stdio-common/tst-fphex.c: Define a few macros to make the
13145         test reusable.  Use them.
13146         * stdio-common/tst-fphex-wide.c: New file.
13147
13148 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13149
13150         [BZ #6911]
13151         * manual/macros.texi (gnusystems): New macro.
13152         (nongnusystems): Likewise.
13153         (gnulinuxhurdsystems): Likewise.
13154         (gnuhurdsystems): Likewise..
13155         (gnulinuxsystems): Likewise.
13156         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13157         variants of the GNU system, not "GNU system".
13158         * manual/conf.texi: Likewise.
13159         * manual/errno.texi: Likewise.  Update example of errno macro
13160         expansion.
13161         * manual/filesys.texi: Likewise.
13162         (getumask): Document as specific to GNU/Hurd.
13163         * manual/install.texi: Likewise.  Reword some references to
13164         GNU/Linux.
13165         * manual/intro.texi: Likewise.
13166         * manual/io.texi: Likewise.
13167         (File Name Portability): Detail which constraints are inapplicable
13168         to all GNU systems and which are only inapplicable to GNU/Hurd.
13169         * manual/job.texi: Likewise.
13170         * manual/llio.texi: Likewise.
13171         (O_NOCTTY): Document as present on GNU/Linux.
13172         * manual/maint.texi: Likewise.
13173         * manual/memory.texi: Likewise.
13174         * manual/pattern.texi: Likewise.
13175         * manual/pipe.texi: Likewise.
13176         * manual/process.texi: Likewise.
13177         * manual/resource.texi: Likewise.
13178         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13179         child on GNU/Hurd.
13180         * manual/setjmp.texi: Likewise.
13181         * manual/signal.texi: Likewise.
13182         * manual/startup.texi: Likewise.
13183         * manual/stdio.texi: Likewise.
13184         * manual/terminal.texi: Likewise.
13185         (ONLCR): Document as POSIX.
13186         (OXTABS): Document availability on GNU/Linux as XTABS.
13187         (ONOEOT): Document availability separately from other bits.
13188         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13189         * manual/time.texi: Likewise.
13190         * manual/users.texi: Likewise.
13191         * INSTALL: Regenerated.
13192         * sysdeps/gnu/errlist.c: Regenerated.
13193
13194         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13195         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13196         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13197         puts.
13198         * configure: Regenerated.
13199
13200 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13201
13202         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13203         default includes instead of AC_HEADER_CHECK.
13204         * sysdeps/i386/configure: Regenerated.
13205
13206         [BZ #10716]
13207         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13208         * math/s_cacoshf.c (__cacoshf): Likewise.
13209         * math/s_cacoshl.c (__cacoshl): Likewise.
13210         * math/s_casinh.c (__casinh): Set signs of result from argument.
13211         * math/s_casinhf.c (__casinhf): Likewise.
13212         * math/s_casinhl.c (__casinhl): Likewise.
13213         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13214         (casinh_test): Add more tests.
13215         * sysdeps/i386/fpu/libm-test-ulps: Update.
13216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13217
13218 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13219
13220         * po/zh_TW.po: Update from translation team.
13221
13222         * login/Makefile (distribute): Remove variable.
13223         * catgets/Makefile: Likewise.
13224         * mach/Makefile: Likewise.
13225         * malloc/Makefile: Likewise.
13226         * misc/Makefile: Likewise.
13227         * iconv/Makefile: Likewise.
13228         * nscd/Makefile: Likewise.
13229         * hurd/Makefile: Likewise.
13230         * manual/Makefile: Likewise.
13231         * locale/Makefile: Likewise.
13232         * intl/Makefile: Likewise.
13233         * conform/Makefile: Likewise.
13234         * nss/Makefile: Likewise.
13235         * time/Makefile: Likewise.
13236         * soft-fp/Makefile: Likewise.
13237         * dirent/Makefile: Likewise.
13238         * gmon/Makefile: Likewise.
13239         * po/Makefile: Likewise.
13240         * rt/Makefile: Likewise.
13241         * socket/Makefile: Likewise.
13242         * math/Makefile: Likewise.
13243         * signal/Makefile: Likewise.
13244         * debug/Makefile: Likewise.
13245         * elf/Makefile: Likewise.
13246         * timezone/Makefile: Likewise.
13247         * stdlib/Makefile: Likewise.
13248         * iconvdata/Makefile: Likewise.
13249         * sunrpc/Makefile: Likewise.
13250         * io/Makefile: Likewise.
13251         * argp/Makefile: Likewise.
13252         * inet/Makefile: Likewise.
13253         * hesiod/Makefile: Likewise.
13254         * grp/Makefile: Likewise.
13255         * csu/Makefile: Likewise.
13256         * wctype/Makefile: Likewise.
13257         * crypt/Makefile: Likewise.
13258         * libio/Makefile: Likewise.
13259         * string/Makefile: Likewise.
13260         * nis/Makefile: Likewise.
13261         * resolv/Makefile: Likewise.
13262         * stdio-common/Makefile: Likewise.
13263         * wcsmbs/Makefile: Likewise.
13264         * dlfcn/Makefile: Likewise.
13265         * posix/Makefile: Likewise.
13266
13267         [BZ #6959]
13268         * timezone/Makefile: Don't install timezone files, just the programs
13269         and scripts.
13270
13271 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13272
13273         * nss/databases.def: Add missing gshadow entry.
13274
13275         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13276
13277 2012-03-06  Marek Polacek  <polacek@redhat.com>
13278
13279         [BZ #13726]
13280         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13281         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13282         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13283         * stdio-common/tst-long-dbl-fphex.c: New file.
13284
13285 2012-03-06  David S. Miller  <davem@davemloft.net>
13286
13287         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13288         (set_obp_int): New function.
13289         (get_obp_int): New function.
13290         (__get_clockfreq_via_dev_openprom): Likewise.
13291         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13292         Avoid unused variable warnings on 'val' and use builtin_expect.
13293         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13294         __builtin_expect.
13295         (INLINE_CLONE_SYSCALL): Likewise.
13296
13297 2012-03-05  David S. Miller  <davem@davemloft.net>
13298
13299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13300
13301 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13302
13303         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13304
13305         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13306         only for |x| >= 40.
13307         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13308
13309 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13310
13311         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13312         Replace gettimeofday with __vdso_gettimeofday.
13313
13314         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13315         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13316         __vdso_clock_gettime and __vdso_getcpu.
13317
13318         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13319         time with __vdso_time.
13320
13321 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13322
13323         * manual/lang.texi (size_t): Note types to which size_t may be
13324         equivalent with the GNU C Library, but do not describe when
13325         differences between them are significant.
13326
13327 2012-03-05  Andreas Jaeger  <aj@suse.de>
13328
13329         * sysdeps/i386/fpu/libm-test-ulps: Update.
13330
13331 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13332
13333         [BZ #3976]
13334         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13335         (__ieee754_pow): Save and restore rounding mode and use
13336         round-to-nearest for main computations.
13337         * math/libm-test.inc (pow_test_tonearest): New function.
13338         (pow_test_towardzero): Likewise.
13339         (pow_test_downward): Likewise.
13340         (pow_test_upward): Likewise.
13341         (main): Call the new functions.
13342         * sysdeps/i386/fpu/libm-test-ulps: Update.
13343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13344
13345         [BZ #3976]
13346         * math/libm-test.inc (cosh_test_tonearest): New function.
13347         (cosh_test_towardzero): Likewise.
13348         (cosh_test_downward): Likewise.
13349         (cosh_test_upward): Likewise.
13350         (sinh_test_tonearest): Likewise.
13351         (sinh_test_towardzero): Likewise.
13352         (sinh_test_downward): Likewise.
13353         (sinh_test_upward): Likewise.
13354         (main): Call the new functions.
13355         * sysdeps/i386/fpu/libm-test-ulps: Update.
13356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13357
13358 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13359
13360         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13361         default stack guard is set in last bytes.
13362         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13363
13364 2012-03-05  Kees Cook  <keescook@chromium.org>
13365
13366         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13367
13368         [BZ #13656]
13369         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13370         possibly allocate from heap instead of stack.
13371         * stdio-common/bug-vfprintf-nargs.c: New file.
13372         * stdio-common/Makefile (tests): Add nargs overflow test.
13373
13374 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13375
13376         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13377
13378 2012-03-03  Marek Polacek  <polacek@redhat.com>
13379
13380         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13381         * math/math_private.h: Likewise.
13382         * stdlib/tst-strtod.c: Likewise.
13383         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13384         * sysdeps/x86_64/bits/atomic.h: Likewise.
13385
13386 2012-03-02  David S. Miller  <davem@davemloft.net>
13387
13388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13392         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13393         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13394         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13395         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13396
13397 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13398
13399         [BZ #13792]
13400         * manual/examples/README: New file, says the example source files
13401         can be used under GPL>=2.
13402         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13403         line containing just "*/".
13404         * manual/examples/add.c: Add copyright header (GPL>=2).
13405         * manual/examples/argp-ex1.c: Likewise.
13406         * manual/examples/argp-ex2.c: Likewise.
13407         * manual/examples/argp-ex3.c: Likewise.
13408         * manual/examples/argp-ex4.c: Likewise.
13409         * manual/examples/atexit.c: Likewise.
13410         * manual/examples/db.c: Likewise.
13411         * manual/examples/dir.c: Likewise.
13412         * manual/examples/dir2.c: Likewise.
13413         * manual/examples/execinfo.c: Likewise.
13414         * manual/examples/filecli.c: Likewise.
13415         * manual/examples/filesrv.c: Likewise.
13416         * manual/examples/fmtmsgexpl.c: Likewise.
13417         * manual/examples/genpass.c: Likewise.
13418         * manual/examples/inetcli.c: Likewise.
13419         * manual/examples/inetsrv.c: Likewise.
13420         * manual/examples/isockad.c: Likewise.
13421         * manual/examples/longopt.c: Likewise.
13422         * manual/examples/memopen.c: Likewise.
13423         * manual/examples/memstrm.c: Likewise.
13424         * manual/examples/mkfsock.c: Likewise.
13425         * manual/examples/mkisock.c: Likewise.
13426         * manual/examples/mygetpass.c: Likewise.
13427         * manual/examples/pipe.c: Likewise.
13428         * manual/examples/popen.c: Likewise.
13429         * manual/examples/rprintf.c: Likewise.
13430         * manual/examples/search.c: Likewise.
13431         * manual/examples/select.c: Likewise.
13432         * manual/examples/setjmp.c: Likewise.
13433         * manual/examples/sigh1.c: Likewise.
13434         * manual/examples/sigusr.c: Likewise.
13435         * manual/examples/stpcpy.c: Likewise.
13436         * manual/examples/strdupa.c: Likewise.
13437         * manual/examples/strftim.c: Likewise.
13438         * manual/examples/strncat.c: Likewise.
13439         * manual/examples/subopt.c: Likewise.
13440         * manual/examples/swapcontext.c: Likewise.
13441         * manual/examples/termios.c: Likewise.
13442         * manual/examples/testopt.c: Likewise.
13443         * manual/examples/testpass.c: Likewise.
13444         * manual/examples/timeval_subtract.c: Likewise.
13445
13446         [BZ #13792]
13447         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13448         function to ...
13449         * manual/timeval_subtract.c.texi: ... here, new file.
13450
13451 2012-03-02  David S. Miller  <davem@davemloft.net>
13452
13453         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13454
13455 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13456
13457         [BZ #3976]
13458         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13459         (__sin): Save and restore rounding mode and use round-to-nearest
13460         for all computations.
13461         (__cos): Save and restore rounding mode and use round-to-nearest
13462         for all computations.
13463         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13464         <fenv.h>.
13465         (tan): Save and restore rounding mode and use round-to-nearest for
13466         all computations.
13467         * math/libm-test.inc (cos_test_tonearest): New function.
13468         (cos_test_towardzero): Likewise.
13469         (cos_test_downward): Likewise.
13470         (cos_test_upward): Likewise.
13471         (sin_test_tonearest): Likewise.
13472         (sin_test_towardzero): Likewise.
13473         (sin_test_downward): Likewise.
13474         (sin_test_upward): Likewise.
13475         (tan_test_tonearest): Likewise.
13476         (tan_test_towardzero): Likewise.
13477         (tan_test_downward): Likewise.
13478         (tan_test_upward): Likewise.
13479         (main): Call the new functions.
13480         * sysdeps/i386/fpu/libm-test-ulps: Update.
13481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13482
13483         [BZ #10135]
13484         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13485         small n, then large n, before computing and testing k+n.
13486         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13487         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13488         Likewise.
13489         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13490         Likewise.
13491         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13492         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13493         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13494         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13497         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13498         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13499         * math/libm-test.inc (scalbn_test): Add more tests.
13500         (scalbln_test): Likewise.
13501
13502         * manual/filesys.texi (mode_t): Describe constraints on size and
13503         signedness, not exact equivalence to a particular type.
13504         (ino_t): Likewise.
13505         (ino64_t): Likewise.
13506         (dev_t): Likewise.
13507         (nlink_t): Likewise.
13508         (blkcnt_t): Likewise.
13509         (blkcnt64_t): Likewise.
13510         * manual/llio.texi (off_t): Likewise.
13511
13512         [BZ #3976]
13513         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13514         (__ieee754_exp): Save and restore rounding mode and use
13515         round-to-nearest for all computations.
13516         * math/libm-test.inc (exp_test_tonearest): New function.
13517         (exp_test_towardzero): Likewise.
13518         (exp_test_downward): Likewise.
13519         (exp_test_upward): Likewise.
13520         (main): Call the new functions.
13521         * sysdeps/i386/fpu/libm-test-ulps: Update.
13522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13523
13524 2012-03-01  Chris Demetriou  <cgd@google.com>
13525
13526         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13527         have predictable order.
13528
13529 2012-03-01  David S. Miller  <davem@davemloft.net>
13530
13531         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13532
13533         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13534         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13535         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13536         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13537
13538         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13539         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13540         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13541         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13542         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13543         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13544         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13545         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13546         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13547
13548         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13549
13550         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13551         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13552         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13553
13554         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13555         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13556         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13557         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13558         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13559         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13560         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13561         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13562         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13563         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13564         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13565         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13566         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13567         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13568         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13569         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13570         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13571         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13572         * sysdeps/sparc/elf/configure: Regenerated.
13573
13574 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13575
13576         * configure.in (AS, LD): Require binutils 2.20 or later.
13577         * configure: Regenerated.
13578         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13579         as required minimum version.
13580         * INSTALL: Regenerated.
13581
13582         [BZ #2541]
13583         [BZ #4108]
13584         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13585         before squaring exponent.
13586         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13587         bottom long double and 27 bits of top long double before squaring
13588         exponent.
13589         * math/libm-test.inc (erfc_test): Add more tests.
13590         * sysdeps/i386/fpu/libm-test-ulps: Update.
13591         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13593
13594 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13595
13596         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13597         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13598         containing bit-fields.
13599         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13600         * soft-fp/single.h (_FP_UNION_S): Likewise.
13601         * soft-fp/double.h (_FP_UNION_D): Likewise.
13602
13603 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13604
13605         [BZ #13786]
13606         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13607         not include ../strcmp.S.
13608         [USE_AS_STRNCASECMP_L]: Likewise.
13609         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13610         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13611         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13612         (__strncasecmp_l_ia32): Define as alias to
13613         __strncasecmp_l_nonascii.
13614
13615         [BZ #5794]
13616         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13617         * sysdeps/i386/fpu/libm-test-ulps: Update.
13618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13619
13620         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13622
13623 2012-02-29  Jeff Law  <law@redhat.com>
13624
13625         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13626         out of bounds read.
13627
13628 2012-02-29  Marek Polacek  <polacek@redhat.com>
13629
13630         [BZ #13706]
13631         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13632         * elf/Makefile: Add rules to run tst-unused-dep.out.
13633
13634 2012-02-28  David S. Miller  <davem@davemloft.net>
13635
13636         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13637         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13638         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13639         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13640         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13641         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13642
13643 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13644
13645         * math/libm-test.inc (llround_test): Move one test from
13646         lround_test.  Use TEST_f_L in moved test.
13647         (lround_test): Move misplaced test to llround_test.  Add testcase
13648         from bug 2561.
13649
13650 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13651
13652         * sysdeps/x86_64/fpu/e_expf.S: New file.
13653         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13654
13655 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13656
13657         [BZ #13637]
13658         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13659         of remain_len that may cause incomplete multi-byte character and
13660         false match.
13661         * posix/bug-regex33.c: New file.
13662         * posix/Makefile (tests): Add bug-regex33.
13663
13664 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * manual/macros.texi: New file.
13667         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13668         * manual/libc.texinfo: Include macros.texi.
13669         * manual/creatute.texi: Likewise.
13670         * manual/install.texi: Likewise.
13671         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13672         @glibcadj{} in references to the GNU C Library.
13673         * manual/charset.texi: Likewise.
13674         * manual/conf.texi: Likewise.
13675         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13676         when not using those macros.
13677         * manual/creature.texi: Likewise.
13678         * manual/crypt.texi: Likewise.
13679         * manual/errno.texi: Likewise.
13680         * manual/filesys.texi: Likewise.
13681         * manual/header.texi: Likewise.
13682         * manual/install.texi: Likewise.
13683         * manual/intro.texi: Likewise.
13684         * manual/io.texi: Likewise.
13685         * manual/job.texi: Likewise.
13686         * manual/lang.texi: Likewise.
13687         * manual/libc.texiinfo: Likewise.
13688         * manual/llio.texi: Likewise.
13689         * manual/locale.texi: Likewise.
13690         * manual/maint.texi: Likewise.
13691         * manual/math.texi: Likewise.
13692         * manual/memory.texi: Likewise.
13693         * manual/message.texi: Likewise.
13694         * manual/nss.texi: Likewise.
13695         * manual/pattern.texi: Likewise.
13696         * manual/process.texi: Likewise.
13697         * manual/resource.texi: Likewise.
13698         * manual/search.texi: Likewise.
13699         * manual/setjmp.texi: Likewise.
13700         * manual/signal.texi: Likewise.
13701         * manual/socket.texi: Likewise.
13702         * manual/startup.texi: Likewise.
13703         * manual/stdio.texi: Likewise.
13704         * manual/string.texi: Likewise.
13705         * manual/sysinfo.texi: Likewise.
13706         * manual/syslog.texi: Likewise.
13707         * manual/terminal.texi: Likewise.
13708         * manual/time.texi: Likewise.
13709         * manual/users.texi: Likewise.
13710         * INSTALL: Regenerated.
13711         * NOTES: Regenerated.
13712         * sysdeps/gnu/errlist.c: Regenerated.
13713
13714 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13715
13716         * include/dirent.h: Include <dirstream.h> before
13717         <dirent/dirent.h>.
13718
13719 2012-02-28  David S. Miller  <davem@davemloft.net>
13720
13721         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13722         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13723         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13724         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13725
13726 2012-02-27  David S. Miller  <davem@davemloft.net>
13727
13728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13730         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13731         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13732
13733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13734         frame pointer instead of stack pointer relative arg slot.
13735         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13736         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13737         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13738
13739 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13740
13741         [BZ #3992]
13742         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13743
13744 2012-02-27  David S. Miller  <davem@davemloft.net>
13745
13746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13750         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13751         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13752         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13753         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13754
13755 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13756
13757         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13758         later.  Allow versions 5-9.
13759         * configure: Regenerated.
13760         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13761         required minimum version and 4.6 as recommended version.  Do not
13762         mention bugs in GCC 2.7 and 2.8.
13763         * INSTALL: Regenerated.
13764
13765 2012-02-27  David S. Miller  <davem@davemloft.net>
13766
13767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13771         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13772         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13773         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13774         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13775
13776         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13777         manipulate bits before adding and subtracting TWO112[sx].
13778         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13779
13780 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13781
13782         [BZ #13775]
13783         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13784         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13785         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13786         being in POSIX, because they are in 1003.1-2008.
13787
13788         * rt/tst-aio.c: Include <fcntl.h>.
13789         * rt/tst-aio7.c: Likewise.
13790         * rt/tst-aio64.c: Likewise.
13791
13792         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13793
13794 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13795
13796         * manual/install.texi (--with-headers): Describe headers as
13797         interface headers, not private headers.
13798         (Specific advice for GNU/Linux systems): Describe use of headers
13799         from "make headers_install", not private headers from older
13800         kernels.
13801         * INSTALL: Regenerated.
13802         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13803         Change to 2.6.19.
13804         * sysdeps/unix/sysv/linux/configure: Regenerated.
13805
13806         * manual/llio.texi (fclean): Remove documentation.
13807
13808         * manual/Makefile (libc-texi-generated): New variable.  Include
13809         version.texi.
13810         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13811         $(libc-texi-generated), not duplicated list of files.
13812         (version.texi, stamp-version): New rules.
13813         (realclean): Remove $(libc-texi-generated), not individual files
13814         from that list.  Do not remove dir-add.texinfo.
13815         * manual/libc.texinfo: Comment out uses of edition numbers and
13816         references to printed manual.  Remove last-updated dates.
13817         (EDITION): Comment out.
13818         (ISBN): Likewise.
13819         (VERSION, UPDATED): Remove.
13820         (version.texi): Include.
13821
13822 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13823
13824         * sysdeps/posix/spawni.c: Include <signal.h>.
13825         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13826         * sysdeps/pthread/aio_fsync.c: Likewise.
13827
13828 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13829
13830         * conform/Makefile (tests): Run only when not cross-compiling and
13831         when fast-check is not defined.
13832
13833         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13834         * conform/data/limits.h-data: Fixes for POSIX2008.
13835         * conform/run-conformtest.sh: Run all tests.
13836         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13837         headers.
13838         * include/bits/dlfcn.h: Likewise.
13839         * include/langinfo.h: Likewise.
13840         * include/monetary.h: Likewise.
13841         * include/sys/poll.h: Likewise.
13842
13843         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13844         for __USE_GNU.
13845         * posix/spawn.h: Define __need_sigset_t.
13846         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13847         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13848         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13849         to get sigevent_t only.
13850         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13851         only for __USE_GNU.
13852         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13853         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13854         process_vm_writev only for __USE_GNU.
13855         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13856
13857         * conform/Makefile: For now ignore errors from run-conformtest.
13858         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13859         POSIX to avoid namespace pollution.  Don't prepend headers.
13860         * conform/data/aio.h-data: Fixes for POSIX testing.
13861         * conform/data/fcntl.h-data: Likewise.
13862         * conform/data/glob.h-data: Likewise.
13863         * conform/data/grp.h-data: Likewise.
13864         * conform/data/pthread.h-data: Likewise.
13865         * conform/data/pwd.h-data: Likewise.
13866         * conform/data/signal.h-data: Likewise.
13867         * conform/data/spawn.h-data: Likewise.
13868         * conform/data/stdio.h-data: Likewise.
13869         * conform/data/stdlib.h-data: Likewise.
13870         * conform/data/stropts.h-data: Likewise.
13871         * conform/data/sys/mman.h-data: Likewise.
13872         * conform/data/sys/stat.h-data: Likewise.
13873         * conform/data/sys/types.h-data: Likewise.
13874         * conform/data/sys/wait.h-data: Likewise.
13875         * conform/data/time.h-data: Likewise.
13876         * conform/data/unistd.h-data: Likewise.
13877         * conform/data/utime.h-data: Likewise.
13878
13879         * io/sys/stat.h: fchmod was always in POSIX.
13880         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13881         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13882         * rt/aio.h: Define __need_timespec before including <time.h>.
13883         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13884         struct.  Add forward declaration of pthread_attr_t and use it in
13885         sigevent.
13886         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13887         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13888         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13889         always remove CLK_TCK definition.
13890
13891 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13892
13893         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13894
13895 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13896
13897         * conform/run-conformtest.sh: New file.
13898         * conform/Makefile: Run run-conformtest for tests.
13899         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13900         support.
13901
13902         * conform/data/uchar.h-data: New file.
13903         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13904         * conform/data/arpa/inet.h-data: Likewise.
13905         * conform/data/assert.h-data: Likewise.
13906         * conform/data/complex.h-data: Likewise.
13907         * conform/data/cpio.h-data: Likewise.
13908         * conform/data/ctype.h-data: Likewise.
13909         * conform/data/dirent.h-data: Likewise.
13910         * conform/data/dlfcn.h-data: Likewise.
13911         * conform/data/errno.h-data: Likewise.
13912         * conform/data/fcntl.h-data: Likewise.
13913         * conform/data/float.h-data: Likewise.
13914         * conform/data/fmtmsg.h-data: Likewise.
13915         * conform/data/fnmatch.h-data: Likewise.
13916         * conform/data/ftw.h-data: Likewise.
13917         * conform/data/glob.h-data: Likewise.
13918         * conform/data/grp.h-data: Likewise.
13919         * conform/data/iconv.h-data: Likewise.
13920         * conform/data/inttypes.h-data: Likewise.
13921         * conform/data/langinfo.h-data: Likewise.
13922         * conform/data/libgen.h-data: Likewise.
13923         * conform/data/limits.h-data: Likewise.
13924         * conform/data/locale.h-data: Likewise.
13925         * conform/data/math.h-data: Likewise.
13926         * conform/data/monetary.h-data: Likewise.
13927         * conform/data/mqueue.h-data: Likewise.
13928         * conform/data/ndbm.h-data: Likewise.
13929         * conform/data/net/if.h-data: Likewise.
13930         * conform/data/netdb.h-data: Likewise.
13931         * conform/data/netinet/in.h-data: Likewise.
13932         * conform/data/nl_types.h-data: Likewise.
13933         * conform/data/poll.h-data: Likewise.
13934         * conform/data/pthread.h-data: Likewise.
13935         * conform/data/pwd.h-data: Likewise.
13936         * conform/data/regex.h-data: Likewise.
13937         * conform/data/sched.h-data: Likewise.
13938         * conform/data/search.h-data: Likewise.
13939         * conform/data/semaphore.h-data: Likewise.
13940         * conform/data/setjmp.h-data: Likewise.
13941         * conform/data/signal.h-data: Likewise.
13942         * conform/data/spawn.h-data: Likewise.
13943         * conform/data/stdarg.h-data: Likewise.
13944         * conform/data/stdio.h-data: Likewise.
13945         * conform/data/stdlib.h-data: Likewise.
13946         * conform/data/string.h-data: Likewise.
13947         * conform/data/strings.h-data: Likewise.
13948         * conform/data/stropts.h-data: Likewise.
13949         * conform/data/sys/ipc.h-data: Likewise.
13950         * conform/data/sys/mman.h-data: Likewise.
13951         * conform/data/sys/msg.h-data: Likewise.
13952         * conform/data/sys/resource.h-data: Likewise.
13953         * conform/data/sys/select.h-data: Likewise.
13954         * conform/data/sys/sem.h-data: Likewise.
13955         * conform/data/sys/shm.h-data: Likewise.
13956         * conform/data/sys/socket.h-data: Likewise.
13957         * conform/data/sys/stat.h-data: Likewise.
13958         * conform/data/sys/statvfs.h-data: Likewise.
13959         * conform/data/sys/time.h-data: Likewise.
13960         * conform/data/sys/timeb.h-data: Likewise.
13961         * conform/data/sys/times.h-data: Likewise.
13962         * conform/data/sys/types.h-data: Likewise.
13963         * conform/data/sys/uio.h-data: Likewise.
13964         * conform/data/sys/un.h-data: Likewise.
13965         * conform/data/sys/utsname.h-data: Likewise.
13966         * conform/data/sys/wait.h-data: Likewise.
13967         * conform/data/syslog.h-data: Likewise.
13968         * conform/data/tar.h-data: Likewise.
13969         * conform/data/termios.h-data: Likewise.
13970         * conform/data/utime.h-data: Likewise.
13971         * conform/data/utmpx.h-data: Likewise.
13972         * conform/data/varargs.h-data: Likewise.
13973         * conform/data/wchar.h-data: Likewise.
13974         * conform/data/wctype.h-data: Likewise.
13975         * conform/data/wordexp.h-data: Likewise.
13976
13977         * include/stropts.h: New file.
13978         * include/uchar.h: New file.
13979         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13980         * include/assert.h: Likewise.
13981         * include/ctype.h: Likewise.
13982         * include/dirent.h: Likewise.
13983         * include/dlfcn.h: Likewise.
13984         * include/fcntl.h: Likewise.
13985         * include/fnmatch.h: Likewise.
13986         * include/glob.h: Likewise.
13987         * include/grp.h: Likewise.
13988         * include/libio.h: Likewise.
13989         * include/locale.h: Likewise.
13990         * include/math.h: Likewise.
13991         * include/net/if.h: Likewise.
13992         * include/netdb.h: Likewise.
13993         * include/netinet/in.h: Likewise.
13994         * include/pthread.h: Likewise.
13995         * include/pwd.h: Likewise.
13996         * include/regex.h: Likewise.
13997         * include/sched.h: Likewise.
13998         * include/search.h: Likewise.
13999         * include/setjmp.h: Likewise.
14000         * include/signal.h: Likewise.
14001         * include/stdio.h: Likewise.
14002         * include/stdlib.h: Likewise.
14003         * include/string.h: Likewise.
14004         * include/sys/cdefs.h: Likewise.
14005         * include/sys/mman.h: Likewise.
14006         * include/sys/msg.h: Likewise.
14007         * include/sys/resource.h: Likewise.
14008         * include/sys/select.h: Likewise.
14009         * include/sys/socket.h: Likewise.
14010         * include/sys/stat.h: Likewise.
14011         * include/sys/statvfs.h: Likewise.
14012         * include/sys/time.h: Likewise.
14013         * include/sys/times.h: Likewise.
14014         * include/sys/uio.h: Likewise.
14015         * include/sys/utsname.h: Likewise.
14016         * include/sys/wait.h: Likewise.
14017         * include/termios.h: Likewise.
14018         * include/time.h: Likewise.
14019         * include/ulimit.h: Likewise.
14020         * include/unistd.h: Likewise.
14021         * include/utime.h: Likewise.
14022         * include/wchar.h: Likewise.
14023         * include/wctype.h: Likewise.
14024         * include/wordexp.h: Likewise.
14025
14026         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14027
14028         * time/time.h: TIME_UTC must be a macro.
14029         Make timespec_get available for ISO C11 only as well.
14030
14031 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14032
14033         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14034         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14035
14036 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14037
14038         * configure.in: Use -o not -a in test for unsupported multi-arch.
14039
14040 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14041
14042         * manual/texinfo.tex: Update to version 2012-01-19.16.
14043
14044 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14045
14046         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14047
14048 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14049
14050         [BZ #13738]
14051         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14052         * manual/fdl-1.3.texi: New file.
14053         * manual/fdl-1.1.texi: File removed.
14054
14055         [BZ #13738]
14056         * manual/libc.texinfo (FDL_VERSION): New @set.
14057         Use it for mention of FDL in cover text.
14058         (Documentation License): Use it in @include file name.
14059
14060 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14061             Roland McGrath  <roland@hack.frob.com>
14062
14063         [BZ #5461]
14064         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14065         not LONG_LONG_MAX and LONG_LONG_MIN.
14066         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14067         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14068         name.
14069         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14070
14071 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14072
14073         [BZ #2547]
14074         [BZ #11365]
14075         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14076         manipulate bits before adding and subtracting TWO23[sx].
14077         * math/libm-test.inc (nearbyint_test): Add more tests.
14078
14079 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14080
14081         [BZ #2548]
14082         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14083         bits before adding and subtracting TWO23[sx].
14084         * math/libm-test.inc (rint_test): Add more tests.
14085         (rint_test_tonearest): Likewise.
14086         (rint_test_towardzero): Likewise.
14087         (rint_test_downward): Likewise.
14088         (rint_test_upward: Likewise.
14089
14090 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14091
14092         [BZ #10110]
14093         * include/stdc-predef.h: New file.  Extracted from features.h.
14094         * include/features.h: Include stdc-predef.h.
14095         * Makefile (headers): Add stdc-predef.h.
14096         * CONFORMANCE (Compiler limitations): Update.
14097
14098 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14101
14102 2012-02-21  David S. Miller  <davem@davemloft.net>
14103
14104         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14105         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14106
14107 2012-02-20  David S. Miller  <davem@davemloft.net>
14108
14109         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14110         using a normal save/restore sequence, rather than allocating a
14111         dummy stack frame just to store a frame pointer and restore.
14112         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14113
14114 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14115
14116         * manual/install.texi: Fix stray word in line-wrapped comment.
14117
14118 2012-02-20  David S. Miller  <davem@davemloft.net>
14119
14120         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14121         both binutils and gcc support GOTDATA.
14122
14123         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14124         "rd %pc" in the PIC register setup sequences.
14125
14126         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14127         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14128         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14129         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14130         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14131         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14132         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14133         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14134         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14135         (SYSCALL_ERROR_HANDLER): Likewise.
14136         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14137         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14138         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14139         (SYSCALL_ERROR_HANDLER): Likewise.
14140
14141         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14142         (HAVE_GCC_GOTDATA): New.
14143         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14144         relocation support in both binutils and gcc.
14145         * sysdeps/sparc/elf/configure: Regenerate.
14146
14147         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14148         * sysdeps/sparc/sparc32/elf/configure: Delete.
14149         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14150         * sysdeps/sparc/sparc64/elf/configure: Delete.
14151         * sysdeps/sparc/elf/configure.in: New file.
14152         * sysdeps/sparc/elf/configure: Generate.
14153
14154         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14155         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14156         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14157         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14158         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14159
14160 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14161
14162         * manual/install.texi: Do not mention specific glibc version
14163         numbers.
14164         * manual/libc.texinfo (VERSION, UPDATED): Update.
14165         (@copying): Use @copyright{} and range of years.
14166
14167 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14168
14169         [BZ #13695]
14170         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14171         [crti.S not in sysdirs] (generated): Do not append.
14172         [crti.S not in sysdirs] (omit-deps): Likewise.
14173         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14174         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14175         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14176         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14177         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14178         Likewise.
14179         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14180         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14181         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14182         * csu/defs.awk: Remove file.
14183         * sysdeps/generic/initfini.c: Likewise.
14184         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14185         variable.
14186         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14187         Likewise.
14188
14189 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14190
14191         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14192         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14193         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14194         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14195         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14196         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14197         <bits/epoll.h>.
14198         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14199         (__EPOLL_PACKED): Define to empty if not defined by
14200         <bits/epoll.h>.
14201         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14202         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14203         bits/epoll.h.
14204
14205 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14206
14207         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14208         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14209         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14210         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14211         <bits/timerfd.h>.
14212         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14213         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14214         bits/timerfd.h.
14215
14216 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14217
14218         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14219         in C locale.
14220         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14221         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14222         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14224
14225 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14226
14227         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14228         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14229
14230 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14231
14232         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14233         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14234         defined.
14235         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14236         Likewise.
14237         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14238         entry for 2.16.
14239
14240 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14241
14242         * math/w_acos.c: Use non-signaling floating-point comparisons.
14243         * math/w_acosf.c: Likewise.
14244         * math/w_acosh.c: Likewise.
14245         * math/w_acoshf.c: Likewise.
14246         * math/w_acoshl.c: Likewise.
14247         * math/w_acosl.c: Likewise.
14248         * math/w_asin.c: Likewise.
14249         * math/w_asinf.c: Likewise.
14250         * math/w_asinl.c: Likewise.
14251         * math/w_atanh.c: Likewise.
14252         * math/w_atanhf.c: Likewise.
14253         * math/w_atanhl.c: Likewise.
14254         * math/w_exp2.c: Likewise.
14255         * math/w_exp2f.c: Likewise.
14256         * math/w_exp2l.c: Likewise.
14257         * math/w_j0.c: Likewise.
14258         * math/w_j0f.c: Likewise.
14259         * math/w_j0l.c: Likewise.
14260         * math/w_j1.c: Likewise.
14261         * math/w_j1f.c: Likewise.
14262         * math/w_j1l.c: Likewise.
14263         * math/w_jn.c: Likewise.
14264         * math/w_jnf.c: Likewise.
14265         * math/w_log.c: Likewise.
14266         * math/w_log10.c: Likewise.
14267         * math/w_log10f.c: Likewise.
14268         * math/w_log10l.c: Likewise.
14269         * math/w_log2.c: Likewise.
14270         * math/w_log2f.c: Likewise.
14271         * math/w_log2l.c: Likewise.
14272         * math/w_logf.c: Likewise.
14273         * math/w_logl.c: Likewise.
14274         * math/w_sqrt.c: Likewise.
14275         * math/w_sqrtf.c: Likewise.
14276         * math/w_sqrtl.c: Likewise.
14277         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14278         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14279         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14280         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14281         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14282
14283 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14284
14285         [BZ #9739]
14286         * manual/string.texi (strnlen): Use correct parameter name in
14287         equivalent expression.
14288
14289 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14290
14291         [BZ #11174]
14292         * manual/users.texi (seteuid): Consistently use neweuid for
14293         argument name.
14294
14295 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14296
14297         [BZ #13704]
14298         * manual/nss.texi (Services in the NSS configuration): Correct
14299         list of services in example configuration file.
14300
14301 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14302
14303         [BZ #11322]
14304         * manual/arith.texi: Remove statements about negative zero
14305         behaving identically to zero.
14306
14307 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14308
14309         [BZ #5993]
14310         * manual/install.texi: Do not document upgrading from libc5.
14311
14312 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14313
14314         [BZ #4596]
14315         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14316
14317 2012-02-18  David S. Miller  <davem@davemloft.net>
14318
14319         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14320         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14321         %o7 across the call.
14322         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14323         instead.
14324         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14325         SETUP_PIC_REG_LEAF.
14326         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14327         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14328         * sysdeps/sparc/crtn.S: Likewise.
14329
14330 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14331
14332         * aout/Makefile: Remove.
14333
14334 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14335
14336         [BZ #13058]
14337         * manual/examples/argp-ex1.c (main): Format definition in GNU
14338         style.
14339         * manual/examples/argp-ex2.c (main): Likewise.
14340         * manual/examples/argp-ex3.c (main): Likewise.
14341         * manual/examples/argp-ex4.c (main): Likewise.
14342         * manual/examples/longopt.c (main): Use new-style prototype
14343         definition.
14344         * manual/examples/strncat.c (main): Specify return type and use
14345         (void) for arguments.
14346         * manual/examples/subopt.c (main): Use char **argv argument.
14347
14348 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14349
14350         [BZ #5077]
14351         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14352         rounding modes.
14353
14354 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14355
14356         [BZ #6907]
14357         * manual/string.texi (strchr): Change when strchrnul is
14358         recommended.
14359
14360 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14361
14362         [BZ #174]
14363         * manual/locale.texi (setlocale): Document LOCPATH.
14364
14365 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14366
14367         [BZ #10210]
14368         * manual/process.texi (execle): Move @dots{} before last argument.
14369
14370 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14371
14372         [BZ #12047]
14373         * manual/charset.texi (Generic Charset Conversion): Fix typo
14374         (LC_TYPE -> LC_CTYPE).
14375
14376 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14377
14378         [BZ #5805]
14379         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14380         (scalbnf): Likewise.
14381         (scalbnl): Likewise.
14382         (scalbln): Likewise.
14383         (scalblnf): Likewise.
14384         (scalblnl): Likewise.
14385         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14386         (vwarnx): Likewise.
14387         (verr): Likewise.
14388         (verrx): Likewise.
14389         * manual/filesys.texi (telldir): Use braces around return type.
14390         * manual/llio.texi (mmap): Add space after comma.
14391         (mmap64): Likewise.
14392         * manual/math.texi (jn): Use @var{} on parameter names.
14393         (jnf): Likewise.
14394         (jnl): Likewise.
14395         (yn): Likewise.
14396         (ynf): Likewise.
14397         (ynl): Likewise.
14398         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14399         line.
14400         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14401         "...".
14402         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14403         (sched_get_priority_max): Likewise.
14404         * manual/signal.texi (sigvec): Add space after comma.
14405         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14406         names.
14407         (if_indextoname): Likewise.
14408         (if_freenameindex): Likewise.
14409         (sendto): Use ',' instead of '.' in prototype.
14410         * manual/startup.texi (syscall): Use @dots{} instead of literal
14411         "...".
14412         * manual/stdio.texi (__fpending): Separate initial words of
14413         paragraph from @deftypefun line.
14414         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14415         "...".
14416         (vsyslog): Use @var{} on parameter names.
14417         * manual/terminal.texi (stty): Use @var{} on parameter names.
14418         * manual/users.texi (getutmp): Use @var{} on parameter names.
14419         (getutmpx): Likewise.
14420
14421 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14422
14423         [BZ #6884]
14424         * manual/stdio.texi (fopen): Fix typos in description of
14425         ",ccs=STRING".
14426
14427 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14428
14429         [BZ #4026]
14430         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14431         get clock_id definition.
14432
14433 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14434
14435         [BZ #4822]
14436         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14437         (madvise): Cast every argument to void on its own.
14438
14439 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14440
14441         [BZ #9902]
14442         * manual/startup.texi (Exit Status): Fix typo.
14443
14444 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14445
14446         [BZ #10140]
14447         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14448         * manual/examples/argp-ex2.c: Likewise.
14449         * manual/examples/argp-ex3.c: Likewise.
14450
14451 2012-02-16  Richard Henderson  <rth@redhat.com>
14452
14453         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14454         * sysdeps/s390/s390-32/initfini.c: Remove.
14455         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14456         * sysdeps/s390/s390-64/initfini.c: Remove.
14457
14458 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14459
14460         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14461         compiler output for sysdeps/generic/initfini.c.
14462         * sysdeps/sh/elf/initfini.c: Remove file.
14463
14464 2012-02-16  David S. Miller  <davem@davemloft.net>
14465
14466         [BZ #11494]
14467         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14468
14469         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14470         * sysdeps/sparc/crti.S: New file.
14471         * sysdeps/sparc/crtn.S: New file.
14472         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14473         * sysdeps/sparc/sparc64/Makefile: Likewise.
14474
14475 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14476
14477         [BZ #3335]
14478         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14479
14480 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14481
14482         [BZ #4822]
14483         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14484
14485         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14486         (write, read, close): Likewise.
14487         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14488
14489 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14490
14491         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14492         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14493         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14494         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14495         <bits/signalfd.h>.
14496         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14497         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14498         bits/signalfd.h.
14499
14500 2012-02-14  Marek Polacek  <polacek@redhat.com>
14501
14502         * sysdeps/x86_64/crti.S: New file.
14503         * sysdeps/x86_64/crtn.S: New file.
14504         * sysdeps/x86_64/elf/initfini.c: Remove file.
14505
14506 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14507
14508         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14509         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14510         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14511         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14512         <bits/inotify.h>.
14513         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14514         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14515         bits/inotify.h.
14516
14517 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14518
14519         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14520         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14521         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14522         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14523         <bits/eventfd.h>.
14524         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14525         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14526         bits/eventfd.h.
14527
14528 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14529
14530         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14531         __feraiseexcept instead of feraiseexcept.
14532
14533         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14534         nanosleep invocations.
14535         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14536         strings, and add error checking for a nanosleep invocations.
14537
14538 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14539
14540         Replace FSF snail mail address with URLs, as per GNU coding standards.
14541         Most of the snail mail addresses were wrong anyway, and omitting
14542         them makes the source code easier to maintain.  Almost all of the
14543         changes are to license notices and to locale LC_IDENTIFICATION
14544         addresses, except for this one:
14545         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14546         not its snail mail address.
14547
14548 2012-02-09  Richard Henderson  <rth@twiddle.net>
14549
14550         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14551         of kernel-features.h.
14552
14553         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14554
14555 2012-02-08  Marek Polacek  <polacek@redhat.com>
14556
14557         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14558         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14559         * sysdeps/gnu/_G_config.h: Likewise.
14560         * sysdeps/generic/_G_config.h: Likewise.
14561
14562 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14563
14564         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14565         tests.
14566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14567
14568         * sysdeps/powerpc/powerpc32/crti.S: New file.
14569         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14570         * sysdeps/powerpc/powerpc64/crti.S: New file.
14571         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14572
14573         * Makeconfig (have-initfini): Don't set.
14574         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14575         * configure.in (nopic_initfini): Don't substitute.
14576         * config.h.in (HAVE_INITFINI): Don't #undef.
14577         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14578         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14579
14580 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14581
14582         Support crti.S and crtn.S provided directly by architectures.
14583         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14584         [crti.S in sysdirs] (omit-deps): Likewise.
14585         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14586         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14587         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14588         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14589         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14590         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14591         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14592         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14593         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14594         compiler output for sysdeps/generic/initfini.c.
14595         * sysdeps/i386/elf/Makefile: Remove file.
14596         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14597
14598 2012-02-07  Marek Polacek  <polacek@redhat.com>
14599
14600         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14601         * sysdeps/gnu/_G_config.h: Likewise.
14602         * sysdeps/mach/hurd/_G_config.h: Likewise.
14603
14604 2012-02-07  Marek Polacek  <polacek@redhat.com>
14605
14606         * math/Makefile (tests): Add tst-CMPLX2.
14607         * math/tst-CMPLX2.c: New file.
14608
14609 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14610
14611         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14612
14613         * math/libm-test.inc (jn_test): Add missing L suffix.
14614
14615 2012-02-06  Marek Polacek  <polacek@redhat.com>
14616
14617         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14618         * sysdeps/i386/fpu/e_powf.S: Likewise.
14619         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14620         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14621         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14622         * sysdeps/i386/fpu/e_pow.S: Likewise.
14623         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14624         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14625         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14626         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14627         * sysdeps/i386/fpu/e_log2.S: Likewise.
14628         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14629         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14630         * sysdeps/i386/fpu/e_powl.S: Likewise.
14631         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14632         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14633         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14634         * sysdeps/i386/fpu/e_logl.S: Likewise.
14635         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14636         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14637         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14638         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14639         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14640         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14641         * sysdeps/i386/fpu/e_log.S: Likewise.
14642         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14643         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14644         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14645         * sysdeps/i386/fpu/e_logf.S: Likewise.
14646         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14647         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14648         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14649         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14650         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14651         * sysdeps/i386/fpu/e_log10.S: Likewise.
14652         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14653         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14654         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14655         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14656         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14657         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14658         * sysdeps/i386/asm-syntax.h: Likewise.
14659         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14660         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14661         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14662         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14663         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14664         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14665         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14666         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14667         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14668         * sysdeps/powerpc/sysdep.h: Likewise.
14669         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14670         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14671
14672 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14673
14674         [BZ #411]
14675         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14676
14677 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14678
14679         * sysdeps/i386/sysdep.h: Include <features.h>.
14680         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14681         version.
14682
14683 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14684
14685         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14686         Define.
14687         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14688         LOAD_PIC_REG_STR.
14689
14690 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14691
14692         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14693         (SETUP_PIC_REG): Use GET_PC_THUNK.
14694         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14695         macro.
14696
14697 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14698
14699         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14700         for non-PIC compilation.
14701         (SETUP_PIC_REG): Add .p2align directive.
14702         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14703         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14704         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14705         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14706         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14707         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14708         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14709         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14710         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14711         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14712         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14713         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14714         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14715         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14716         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14717         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14718         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14719         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14720         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14721         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14722         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14723         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14724         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14725         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14726         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14727         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14728         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14729         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14730         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14731         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14732         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14733         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14734         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14735         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14736         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14737         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14738         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14739         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14740         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14741         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14742         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14743
14744 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14745
14746         * math/tst-CMPLX.c: Include <stdio.h>.
14747
14748 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14749
14750         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14751         float.
14752         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14753         * sysdeps/sparc/bits/mathdef.h: Likewise.
14754
14755 2012-01-31  Marek Polacek  <polacek@redhat.com>
14756
14757         * libio/libio.h: Don't define _PARAMS.
14758         * locale/programs/config.h: Don't define PARAMS.
14759         * stdlib/strtol_l.c: Likewise.
14760         (__strtol_l): Remove PARAMS from the prototype.
14761
14762 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14763
14764         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14765         names.  Just use the correct names.  Remove unnecessary wrapper
14766         functions.
14767         * malloc/arena.c: Likewise.
14768         * malloc/hooks.c: Likewise.
14769
14770         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14771         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14772         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14773
14774 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14775
14776         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14777         into tail calls.
14778         (update_get_addr): New function.
14779         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14780         GET_ADDR_MODULE parameter.
14781
14782 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14783
14784         * crypt/cert.c: Remove __STDC__ conditionals.
14785         * crypt/crypt-entry.c: Likewise.
14786         * crypt/crypt_util.c: Likewise.
14787         * libio/filedoalloc.c: Likewise.
14788         * libio/fileops.c: Likewise.
14789         * libio/genops.c: Likewise.
14790         * libio/iofclose.c: Likewise.
14791         * libio/iofdopen.c: Likewise.
14792         * libio/iofopen.c: Likewise.
14793         * libio/iofopen64.c: Likewise.
14794         * libio/iogetdelim.c: Likewise.
14795         * libio/iopopen.c: Likewise.
14796         * libio/obprintf.c: Likewise.
14797         * libio/oldfileops.c: Likewise.
14798         * libio/oldiofclose.c: Likewise.
14799         * libio/oldiofdopen.c: Likewise.
14800         * libio/oldiofopen.c: Likewise.
14801         * libio/oldiopopen.c: Likewise.
14802         * libio/wfiledoalloc.c: Likewise.
14803         * libio/wgenops.c: Likewise.
14804         * locale/programs/xmalloc.c: Likewise.
14805         * misc/syslog.c: Likewise.
14806         * stdio-common/xbug.c: Likewise.
14807         * string/memchr.c: Likewise.
14808         * string/memcmp.c: Likewise.
14809         * string/memrchr.c: Likewise.
14810         * string/rawmemchr.c: Likewise.
14811         * sysdeps/posix/getcwd.c: Likewise.
14812         * time/strftime_l.c: Likewise.
14813
14814 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14815
14816         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14817         * config.make.in (config-cflags-sse2avx): Define.
14818         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14819         Fix typo.
14820
14821 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14822
14823         * scripts/config.guess: Update from upstream config git repository.
14824         * scripts/config.sub: Likewise.
14825
14826 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14827
14828         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14829         (EM_NUM): Update.
14830         (R_TILEPRO_*, R_TILEGX_*): New macros.
14831
14832         * scripts/firstversions.awk: Fix bug in version range handling.
14833
14834         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14835
14836         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14837
14838         * include/sys/epoll.h: New file.
14839         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14840         libc_hidden_def.
14841
14842 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14843
14844         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14845         Avoid unnecessary __WORDSIZE == 64 test.
14846         (fmaxf): Use VEX format if possible.
14847         (fmax): Likewise.
14848         (fminf): Likewise.
14849         (fmin): Likewise.
14850
14851         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14852         * math/math_private.h: Remove libc_fegetround* and
14853         libc_fesetround*.
14854         * sysdeps/i386/configure.in: Check for -msse2avx.
14855         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14856         also if SSE2AVX is defined.
14857         Remove libc_fegetround* and libc_fesetround*.
14858         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14859         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14860         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14861         of HAS_YMM_USABLE.
14862         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14863         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14864         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14865         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14866         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14867
14868         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14869
14870 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14871
14872         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14873         size is not set.
14874         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14875
14876 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14877
14878         [BZ #13618]
14879         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14880         relocation.
14881         * Makeconfig (libm): Define.
14882         * elf/Makefile: Add rules to build and run tst-relsort1.
14883         * elf/tst-relsort1.c: New file.
14884         * elf/tst-relsort1mod1.c: New file.
14885         * elf/tst-relsort1mod2.c: New file.
14886
14887 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14888
14889         * math/s_ldexp.c: Remove __STDC__ conditionals.
14890         * math/s_ldexpf.c: Likewise.
14891         * math/s_ldexpl.c: Likewise.
14892         * math/s_nextafter.c: Likewise.
14893         * math/s_nexttowardf.c: Likewise.
14894         * math/s_significand.c: Likewise.
14895         * math/s_significandf.c: Likewise.
14896         * math/s_significandl.c: Likewise.
14897         * math/w_jnl.c: Likewise.
14898         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14899         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14900         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14901         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14902         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14903         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14904         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14905         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14906         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14907         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14908         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14909         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14910         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14911         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14912         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14913         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14914         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14915         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14916         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14917         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14918         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14919         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14920         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14921         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14922         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14923         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14924         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14925         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14926         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14927         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14928         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14929         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14930         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14931         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14932         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14933         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14934         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14935         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14936         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14937         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14938         * sysdeps/ieee754/k_standard.c: Likewise.
14939         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14941         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14942         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14943         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14944         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14946         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14947         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14948         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14949         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14952         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14953         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14954         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14955         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14956         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14957         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14958         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14959         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14960         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14965         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14966         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14989         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14997         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15002         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15003         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15004         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15005         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15006         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15007         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15008         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15009         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15010         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15011         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15013         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15014         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15015         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15016         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15017         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15018         * sysdeps/ieee754/s_matherr.c: Likewise.
15019         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15020         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15021         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15022         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15023
15024 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15025
15026         * crypt/md5.h: Remove __STDC__ conditionals.
15027         * libio/libioP.h: Likewise.
15028         * locale/programs/config.h: Likewise.
15029         * sysdeps/generic/sysdep.h: Likewise.
15030         * sysdeps/i386/asm-syntax.h: Likewise.
15031         * sysdeps/s390/asm-syntax.h: Likewise.
15032         * sysdeps/unix/sysdep.h: Likewise.
15033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15035
15036 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15037
15038         * libio/libio.h: Remove __STDC__ conditionals.
15039         * malloc/obstack.h: Likewise.
15040         * math/complex.h: Likewise.
15041         * math/math.h: Likewise.
15042         * sysdeps/generic/_G_config.h: Likewise.
15043         * sysdeps/gnu/_G_config.h: Likewise.
15044         * sysdeps/mach/hurd/_G_config.h: Likewise.
15045         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15046         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15047         * sysdeps/sparc/bits/mathdef.h: Likewise.
15048
15049 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15050
15051         [BZ #13583]
15052         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15053         Clean up HAS_* macros.
15054         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15055         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15056         possible.
15057         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15058         HAS_AVX.
15059         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15060         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15061         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15062         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15063         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15064
15065 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15066
15067         * elf/tst-unique3.cc (gets): Remove declaration.
15068         * elf/tst-unique3lib.cc (gets): Likewise.
15069         * elf/tst-unique3lib2.cc (gets): Likewise.
15070         * elf/tst-unique4.cc (gets): Likewise.
15071
15072 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15073
15074         * include/stdio.h: Add C++ protection.  Add gets declarations and
15075         definitions.
15076         * debug/tst-chk1.c: Don't declare gets here.
15077         * stdio-common/tst-gets.c: Likewise.
15078
15079 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15080
15081         * posix/glob: Remove directory.
15082
15083 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15084
15085         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15086
15087 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15088
15089         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15090         of the non-standard EPFNOSUPPORT.
15091
15092 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15093
15094         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15095         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15096         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15097
15098 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15099
15100         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15101
15102 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15103
15104         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15105         transient errors.
15106         * nscd/grpcache.c (cache_addgr): Likewise.
15107         * nscd/hstcache.c (cache_addhst): Likewise.
15108         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15109         * nscd/pwdcache.c (cache_addpw): Likewise.
15110         * nscd/servicescache.c (cache_addserv): Likewise.
15111
15112 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15113
15114         * malloc/malloc.c: Various cleanups.
15115         * malloc/hooks.c: Likewise.
15116
15117         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15118         * stdlib/bug-fmtmsg1.c: New file.
15119
15120         * stdlib/fmtmsg.c (init): Add missing unlock.
15121         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15122
15123 2012-01-12  Marek Polacek  <polacek@redhat.com>
15124
15125         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15126         and _GNU_SOURCE.
15127
15128 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15129
15130         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15131         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15132         macro to ensure uniqueness of label name.
15133         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15134         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15135
15136 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15137
15138         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15139
15140         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15141         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15142         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15143         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15144
15145 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15146
15147         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15148
15149         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15150         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15151         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15152
15153         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15154
15155         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15156         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15157         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15159
15160         * math/bits/math-finite.h: Add ldexp support.
15161
15162 2012-01-10  Marek Polacek  <polacek@redhat.com>
15163
15164         * locale/programs/localedef.h (show_archive_content): Add noreturn
15165         attribute.
15166
15167 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15168
15169         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15170
15171 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15172
15173         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15174
15175         * io/Makefile (headers): Add bits/poll2.h.
15176
15177 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15178
15179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15180         typo #include statement.
15181
15182 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15183
15184         * include/sys/cdefs.h: Define __attribute_alloc_size.
15185         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15186         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15187         * elf/pldd.c: Likewise.
15188         * iconv/iconv_charmap.c: Likewise.
15189         * iconv/iconvconfig.c: Likewise.
15190         * iconv/strtab.c: Likewise.
15191         * locale/programs/locale.c: Likewise.
15192         * locale/programs/localedef.h: Likewise.
15193         * locale/programs/simple-hash.c: Likewise.
15194         * nscd/nscd.h: Likewise.
15195         * nss/makedb.c: Likewise.
15196         * sysdeps/generic/ldconfig.h: Likewise.
15197         * locale/programs/localedef.c: Remove xmalloc prototype.
15198         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15199
15200 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15201
15202         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15203         appropriate.
15204
15205 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15206
15207         * math/Makefile (tests): Add tst-CMPLX.
15208         * math/tst-CMPLX.c: New file.
15209
15210         * math/complex.h (CMPLXL): Fix typo.
15211
15212         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15213         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15214         GLIBC_2.16.
15215         * debug/tst-chk1.c: Add poll and ppoll tests.
15216         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15217         * include/sys/poll.h: Add hidden proto for ppoll.
15218         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15219         * sysdeps/mach/hurd/ppoll.c: Likewise.
15220         * io/ppoll.c: Likewise.
15221         * debug/poll_chk.c: New file.
15222         * debug/ppoll_chk.c: New file.
15223         * include/bits/poll2.h: New file.
15224         * io/bits/poll2.h: New file.
15225
15226         [BZ #1350]
15227         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15228
15229         * configure.in: static is always set to yes.  Remove.
15230         * config.make.in: Don't set build-static.
15231         * Makeconfig: Remove use of build-static.
15232         * dlfcn/Makefile: Likewise.
15233         * elf/Makefile: Likewise.
15234         * math/Makefile: Likewise.
15235         * misc/Makefile: Likewise.
15236         * nptl/Makefile: Likewise.
15237         * sysdeps/mach/hurd/Makefile: Likewise.
15238
15239         * configure.in: PWD_P is not used anymore.
15240         * config.make.in: Remove PWD_P entry.
15241
15242         * configure.in: Remove last remnants of RANLIB.
15243         No need to check for signed size_t anymore.
15244         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15245         and IA-64.
15246         Remove __builtin_expect test because we require at least gcc 3.4.
15247         * aclocal.m4: Likewise.
15248
15249         * wcsmbs/mbrtoc16.c: Implement using towc function.
15250         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15251         * wcsmbs/wcsmbsload.c: Likewise.
15252         * iconv/gconv_simple.c: Likewise.
15253         * iconv/gconv_int.h: Likewise.
15254         * iconv/gconv_builtin.h: Likewise.
15255         * iconv/iconv_prog.c: Remove CHAR16 handling.
15256
15257         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15258
15259         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15260
15261         * configure.in: Remove --with-elf and --enable-bounded options.
15262         Dont set base_machine for ia64.  More non-ELF conditions removed.
15263         Remove testing and setting of leading underscore information.
15264         * config.make.in (build-bounded): Set to no.
15265         * config.h.in: Remove NO_UNDERSCORES entry.
15266         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15267         them.
15268         * csu/start.c: Remove !NO_UNDERSCORE code.
15269         * locale/localeinfo.h: Likewise.
15270         * sysdeps/generic/machine-gmon.h: Likewise.
15271         * sysdeps/generic/sysdep.h: Likewise.
15272         * sysdeps/i386/sysdep.h: Likewise.
15273         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15274         * sysdeps/mach/sysdep.h: Likewise.
15275         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15276         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15277         * sysdeps/sh/sysdep.h: Likewise.
15278         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15279         * sysdeps/unix/i386/sysdep.S: Likewise.
15280         * sysdeps/unix/sparc/start.c: Likewise.
15281         * sysdeps/unix/sparc/sysdep.S: Likewise.
15282         * sysdeps/unix/sparc/sysdep.h: Likewise.
15283         * sysdeps/unix/start.c: Likewise.
15284         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15285         * sysdeps/x86_64/sysdep.h: Likewise.
15286
15287 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15288
15289         [BZ #13553]
15290         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15291         for non-gcc.
15292         * argp/argp-fmtstream.h: Use const instead __const.
15293         * argp/argp.h: Likewise.
15294         * assert/assert.h: Likewise.
15295         * bits/fenv.h: Likewise.
15296         * bits/sched.h: Likewise.
15297         * bits/sigset.h: Likewise.
15298         * bits/sigthread.h: Likewise.
15299         * catgets/nl_types.h: Likewise.
15300         * conform/data/pthread.h-data: Likewise.
15301         * crypt/crypt-private.h: Likewise.
15302         * crypt/crypt.h: Likewise.
15303         * crypt/crypt_util.c: Likewise.
15304         * ctype/ctype.h: Likewise.
15305         * debug/execinfo.h: Likewise.
15306         * debug/mbsnrtowcs_chk.c: Likewise.
15307         * debug/mbsrtowcs_chk.c: Likewise.
15308         * debug/wcsnrtombs_chk.c: Likewise.
15309         * debug/wcsrtombs_chk.c: Likewise.
15310         * debug/wcstombs_chk.c: Likewise.
15311         * dirent/dirent.h: Likewise.
15312         * dlfcn/dlfcn.h: Likewise.
15313         * elf/neededtest4.c: Likewise.
15314         * grp/grp.h: Likewise.
15315         * gshadow/gshadow.h: Likewise.
15316         * iconv/gconv.h: Likewise.
15317         * iconv/gconv_int.h: Likewise.
15318         * iconv/gconv_simple.c: Likewise.
15319         * iconv/iconv.h: Likewise.
15320         * iconv/loop.c: Likewise.
15321         * iconv/skeleton.c: Likewise.
15322         * include/aio.h: Likewise.
15323         * include/aliases.h: Likewise.
15324         * include/argz.h: Likewise.
15325         * include/arpa/inet.h: Likewise.
15326         * include/assert.h: Likewise.
15327         * include/dirent.h: Likewise.
15328         * include/dlfcn.h: Likewise.
15329         * include/execinfo.h: Likewise.
15330         * include/fcntl.h: Likewise.
15331         * include/fenv.h: Likewise.
15332         * include/glob.h: Likewise.
15333         * include/grp.h: Likewise.
15334         * include/libintl.h: Likewise.
15335         * include/mntent.h: Likewise.
15336         * include/netdb.h: Likewise.
15337         * include/pwd.h: Likewise.
15338         * include/rpc/netdb.h: Likewise.
15339         * include/sched.h: Likewise.
15340         * include/search.h: Likewise.
15341         * include/shadow.h: Likewise.
15342         * include/signal.h: Likewise.
15343         * include/stdio.h: Likewise.
15344         * include/stdlib.h: Likewise.
15345         * include/string.h: Likewise.
15346         * include/sys/socket.h: Likewise.
15347         * include/sys/stat.h: Likewise.
15348         * include/sys/statfs.h: Likewise.
15349         * include/sys/statvfs.h: Likewise.
15350         * include/sys/syslog.h: Likewise.
15351         * include/sys/time.h: Likewise.
15352         * include/sys/uio.h: Likewise.
15353         * include/time.h: Likewise.
15354         * include/unistd.h: Likewise.
15355         * include/utmp.h: Likewise.
15356         * include/wchar.h: Likewise.
15357         * include/wctype.h: Likewise.
15358         * inet/aliases.h: Likewise.
15359         * inet/arpa/inet.h: Likewise.
15360         * inet/netinet/ether.h: Likewise.
15361         * inet/netinet/in.h: Likewise.
15362         * intl/libintl.h: Likewise.
15363         * io/bits/fcntl2.h: Likewise.
15364         * io/fcntl.h: Likewise.
15365         * io/ftw.h: Likewise.
15366         * io/sys/poll.h: Likewise.
15367         * io/sys/stat.h: Likewise.
15368         * io/sys/statfs.h: Likewise.
15369         * io/sys/statvfs.h: Likewise.
15370         * io/utime.h: Likewise.
15371         * libio/bits/stdio.h: Likewise.
15372         * libio/bits/stdio2.h: Likewise.
15373         * libio/libio.h: Likewise.
15374         * libio/libioP.h: Likewise.
15375         * libio/stdio.h: Likewise.
15376         * locale/lc-ctype.c: Likewise.
15377         * locale/locale.h: Likewise.
15378         * login/utmp.h: Likewise.
15379         * malloc/arena.c: Likewise.
15380         * malloc/malloc.c: Likewise.
15381         * malloc/malloc.h: Likewise.
15382         * malloc/mcheck.c: Likewise.
15383         * malloc/mtrace.c: Likewise.
15384         * math/bits/mathcalls.h: Likewise.
15385         * math/fenv.h: Likewise.
15386         * math/math_private.h: Likewise.
15387         * misc/bits/error.h: Likewise.
15388         * misc/bits/syslog.h: Likewise.
15389         * misc/err.h: Likewise.
15390         * misc/error.h: Likewise.
15391         * misc/fstab.h: Likewise.
15392         * misc/mntent.h: Likewise.
15393         * misc/regexp.h: Likewise.
15394         * misc/search.h: Likewise.
15395         * misc/sgtty.h: Likewise.
15396         * misc/sys/mman.h: Likewise.
15397         * misc/sys/syslog.h: Likewise.
15398         * misc/sys/uio.h: Likewise.
15399         * misc/sys/xattr.h: Likewise.
15400         * misc/ttyent.h: Likewise.
15401         * nis/rpcsvc/ypclnt.h: Likewise.
15402         * nss/nss.h: Likewise.
15403         * posix/bits/unistd.h: Likewise.
15404         * posix/fnmatch.h: Likewise.
15405         * posix/glob.h: Likewise.
15406         * posix/sched.h: Likewise.
15407         * posix/spawn.h: Likewise.
15408         * posix/sys/wait.h: Likewise.
15409         * posix/unistd.h: Likewise.
15410         * posix/wordexp.h: Likewise.
15411         * pwd/pwd.h: Likewise.
15412         * resolv/netdb.h: Likewise.
15413         * resource/sys/resource.h: Likewise.
15414         * rt/aio.h: Likewise.
15415         * rt/bits/mqueue2.h: Likewise.
15416         * rt/mqueue.h: Likewise.
15417         * shadow/shadow.h: Likewise.
15418         * signal/signal.h: Likewise.
15419         * socket/send.c: Likewise.
15420         * socket/sendto.c: Likewise.
15421         * socket/sys/socket.h: Likewise.
15422         * stdio-common/printf.h: Likewise.
15423         * stdlib/bits/stdlib.h: Likewise.
15424         * stdlib/fmtmsg.h: Likewise.
15425         * stdlib/monetary.h: Likewise.
15426         * stdlib/stdlib.h: Likewise.
15427         * stdlib/ucontext.h: Likewise.
15428         * streams/stropts.h: Likewise.
15429         * string/argz.h: Likewise.
15430         * string/bits/string2.h: Likewise.
15431         * string/string.h: Likewise.
15432         * string/strings.h: Likewise.
15433         * sunrpc/rpc/auth.h: Likewise.
15434         * sunrpc/rpc/auth_des.h: Likewise.
15435         * sunrpc/rpc/clnt.h: Likewise.
15436         * sunrpc/rpc/netdb.h: Likewise.
15437         * sunrpc/rpc/pmap_clnt.h: Likewise.
15438         * sunrpc/rpc/xdr.h: Likewise.
15439         * sysdeps/generic/inttypes.h: Likewise.
15440         * sysdeps/generic/net/if.h: Likewise.
15441         * sysdeps/generic/sys/swap.h: Likewise.
15442         * sysdeps/gnu/net/if.h: Likewise.
15443         * sysdeps/gnu/utmpx.h: Likewise.
15444         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15445         * sysdeps/i386/i486/bits/string.h: Likewise.
15446         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15447         * sysdeps/s390/bits/string.h: Likewise.
15448         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15449         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15450         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15451         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15452         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15453         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15454         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15455         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15456         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15457         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15458         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15459         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15460         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15461         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15462         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15463         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15464         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15465         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15466         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15467         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15468         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15469         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15470         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15471         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15472         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15473         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15474         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15475         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15476         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15477         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15478         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15479         * sysvipc/sys/ipc.h: Likewise.
15480         * sysvipc/sys/msg.h: Likewise.
15481         * sysvipc/sys/sem.h: Likewise.
15482         * sysvipc/sys/shm.h: Likewise.
15483         * termios/termios.h: Likewise.
15484         * time/sys/time.h: Likewise.
15485         * time/time.h: Likewise.
15486         * wcsmbs/bits/wchar2.h: Likewise.
15487         * wcsmbs/uchar.h: Likewise.
15488         * wcsmbs/wchar.h: Likewise.
15489         * wctype/wctype.h: Likewise.
15490
15491         [BZ #13551]
15492         * Makeconfig: Remove all but ELF support including AIX support.
15493         * Makerules: Likewise.
15494         * config.h.in: Likewise.
15495         * config.make.in: Likewise.
15496         * configure: Likewise.
15497         * configure.in: Likewise.
15498         * csu/Makefile: Likewise.
15499         * csu/version.c: Likewise.
15500         * debug/Makefile: Likewise.
15501         * dlfcn/Makefile: Likewise.
15502         * elf/Makefile: Likewise.
15503         * extra-lib.mk: Likewise.
15504         * iconv/Makefile: Likewise.
15505         * include/libc-symbols.h: Likewise.
15506         * include/shlib-compat.h: Likewise.
15507         * resolv/Makefile: Likewise.
15508         * resolv/res_libc.c: Likewise.
15509         * rt/Makefile: Likewise.
15510         * sysdeps/i386/asm-syntax.h: Likewise.
15511         * sysdeps/i386/sysdep.h: Likewise.
15512         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15513         * sysdeps/mach/sysdep.h: Likewise.
15514         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15515         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15516         * sysdeps/s390/asm-syntax.h: Likewise.
15517         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15518         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15519         * sysdeps/sh/sysdep.h: Likewise.
15520         * sysdeps/unix/sparc/sysdep.h: Likewise.
15521         * sysdeps/wordsize-32/divdi3.c: Likewise.
15522         * sysdeps/x86_64/sysdep.h: Likewise.
15523
15524         * argp/Versions: Remove _argp_unlock_xxx.
15525
15526         [BZ #13559]
15527         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15528         * abilist/libBrokenLocale.abilist: Likewise.
15529         * abilist/libanl.abilist: Likewise.
15530         * abilist/libc.abilist: Likewise.
15531         * abilist/libcrypt.abilist: Likewise.
15532         * abilist/libdl.abilist: Likewise.
15533         * abilist/libm.abilist: Likewise.
15534         * abilist/libnsl.abilist: Likewise.
15535         * abilist/libpthread.abilist: Likewise.
15536         * abilist/libresolv.abilist: Likewise.
15537         * abilist/librt.abilist: Likewise.
15538         * abilist/libthread_db.abilist: Likewise.
15539         * abilist/libutil.abilist: Likewise.
15540         * abilist/libnss_db.abilist: New file.
15541
15542         * scripts/abilist.awk: Add support for indirect functions.
15543
15544         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15545
15546         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15547
15548         * shlib-versions: Remove entries for ports architectures.
15549
15550         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15551         files in ports.
15552         * elf/stackguard-macros.h: Remove support for IA-64.
15553         * elf/tst-auditmod1.c: Likewise.
15554         * sysdeps/generic/ldsodefs.h: Likewise.
15555
15556         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15557         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15558         configure files.
15559
15560         [BZ #13552]
15561         * configure.in: Remove --enable-omitfp support.
15562         * FAQ.in: Adjust.
15563         * config.make.in: Likewise.
15564         * Makeconfig: Likewise.
15565         * manual/install.texi: Likewise.
15566
15567         In case anyone cares, the IA-64 architecture could move to ports.
15568         * sysdeps/ia64/*: Removed.
15569         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15570         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15571
15572         [BZ #13555]
15573         * configure.in: Remove entries for unsupported architectures.
15574
15575         [BZ #13533]
15576         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15577         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15578         routines.
15579         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15580         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15581         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15582         fall back to using wcrtomb.
15583         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15584         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15585         renaming.
15586         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15587         * wcsmbs/tst-c16c32-1.c: New file.
15588
15589         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15590         local variable.
15591
15592         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15593
15594         * elf/tst-unique3.cc: Add explicit declaration of gets.
15595         * elf/tst-unique3lib.cc: Likewise.
15596         * elf/tst-unique3lib2.cc: Likewise.
15597         * elf/tst-unique4.cc: Likewise.
15598
15599         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15600
15601 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15602
15603         [BZ #13566]
15604         * assert/assert.h (static_assert): Don't define for C++.
15605         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15606         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15607
15608 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15609
15610         * iconv/loop.c (single loop): Fix assertion in storing of
15611         remaining bytes.
15612
15613         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15614
15615 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15616
15617         * posix/getconf.c: Update copyright year.
15618         * nss/getent.c: Likewise.
15619         * nss/makedb.c: Likewise.
15620         * iconv/iconvconfig.c: Likewise.
15621         * iconv/iconv_prog.c: Likewise.
15622         * elf/ldconfig.c: Likewise.
15623         * elf/pldd.c: Likewise.
15624         * elf/sotruss.ksh: Likewise.
15625         * catgets/gencat.c: Likewise.
15626         * csu/version.c: Likewise.
15627         * elf/ldd.bash.in: Likewise.
15628         * elf/sprof.c (print_version): Likewise.
15629         * locale/programs/locale.c: Likewise.
15630         * locale/programs/localedef.c: Likewise.
15631         * login/programs/pt_chown.c: Likewise.
15632         * nscd/nscd.c (print_version): Likewise.
15633         * debug/xtrace.sh: Likewise.
15634         * malloc/memusage.sh: Likewise.
15635         * malloc/mtrace.pl: Likewise.
15636         * debug/catchsegv.sh: Likewise.
15637
15638 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15639
15640         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15641         pure attribute.
15642
15643 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15644
15645         [BZ #13533]
15646         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15647         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15648         transformations.
15649         * iconv/gconv_int.h: Likewise.
15650         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15651         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15652         from libc for GLIBC_2.16.
15653         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15654         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15655         * wcsmbs/uchar.h: Really define mbstate_t.
15656         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15657         * wcsmbs/c16rtomb.c: New file.
15658         * wcsmbs/mbrtoc16.c: New file.
15659         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15660         for C/POSIX locale.
15661         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15662         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15663
15664         * wcsmbs/wchar.h: Add missing __restrict.
15665
15666 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15667
15668         [BZ #13532]
15669         * time/Makefile (routines): Add timespec_get.
15670         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15671         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15672         timespec for ISO C11.
15673         * time/timespec_get.c: New file.
15674         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15675         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15676
15677         [BZ #13531]
15678         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15679         * stdlib/stdlib.h: Declare aligned_alloc.
15680         * Versions.def: Add GLIBC_2.16 for libc.
15681         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15682
15683         [BZ 13527]
15684         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15685         ISO C11.
15686
15687         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15688         code.
15689
15690         [BZ #13528]
15691         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15692
15693         [BZ #13529]
15694         * assert/assert.h (static_assert): Define.
15695
15696         * version.h: Update for 2.16 development version.
15697
15698         [BZ #13526]
15699         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15700         _ISOC11_SOURCE.
15701
15702         * version.h (RELEASE): Bump for 2.15 release.
15703         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15704
15705         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15706         Patch by Marek Polacek <mpolacek@redhat.com>.
15707
15708         * bits/byteswap.h: Protect long long constants with __extension__.
15709         * sysdeps/i386/bits/byteswap.h: Likewise.
15710         * sysdeps/ia64/bits/byteswap.h: Likewise.
15711         * sysdeps/s390/bits/byteswap.h: Likewise.
15712         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15713
15714 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15715
15716         [BZ #13540]
15717         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15718         destination buffer.
15719         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15720
15721 2011-12-23  Marek Polacek  <polacek@redhat.com>
15722
15723         * elf/dl-addr.c (determine_info): Add inline keyword.
15724         * elf/tst-auditmod4b.c (check_avx): Likewise.
15725         * elf/tst-auditmod6b.c (check_avx): Likewise.
15726         * elf/tst-auditmod6c.c (check_avx): Likewise.
15727         * elf/tst-auditmod7b.c (check_avx): Likewise.
15728
15729 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15730
15731         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15732         !__SSE_MATH__.
15733
15734 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15735
15736         [BZ #13540]
15737         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15738         processing for last bytes.
15739
15740 2011-08-06  Bruno Haible  <bruno@clisp.org>
15741
15742         [BZ #13061]
15743         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15744         U+0385, not to U+1FEE.
15745
15746         [BZ #13062]
15747         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15748         entry for U+00A5 U+0301.
15749
15750 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15751
15752         [BZ #13166]
15753         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15754         buffer for the output is too small.
15755
15756         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15757         optimization.
15758
15759         [BZ #13185]
15760         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15761         SSE flags if possible.
15762
15763 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15764
15765         [BZ #13540]
15766         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15767         processing for last bytes.
15768
15769 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15770
15771         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15772         (syscall-list-default-options, syscall-list-default-condition)
15773         (syscall-list-includes): Define.
15774         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15775         list of ABIs and options and #if conditions for each ABI.  Do not
15776         handle common syscalls between ABIs specially.
15777         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15778         Remove.
15779         (syscall-list-variants, syscall-list-32bit-options)
15780         (syscall-list-32bit-condition, syscall-list-64bit-options)
15781         (syscall-list-64bit-condition): Define.
15782         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15783         (syscall-list-variants, syscall-list-32bit-options)
15784         (syscall-list-32bit-condition, syscall-list-64bit-options)
15785         (syscall-list-64bit-condition): Define.
15786         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15787         Remove.
15788         (syscall-list-variants, syscall-list-32bit-options)
15789         (syscall-list-32bit-condition, syscall-list-64bit-options)
15790         (syscall-list-64bit-condition): Define.
15791         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15792         Remove.
15793         (syscall-list-variants, syscall-list-32bit-options)
15794         (syscall-list-32bit-condition, syscall-list-64bit-options)
15795         (syscall-list-64bit-condition): Define.
15796
15797 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15798
15799         * locale/iso-639.def: Add brx entry.
15800
15801         [BZ #13328]
15802         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15803         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15804
15805         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15806         __feraiseexcept_renamed.
15807
15808 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15809
15810         [BZ #13538]
15811         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15812         EPOLLET with unsigned values.
15813         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15814         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15815
15816         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15817         to large cancellation.
15818         * math/s_cacoshf.c: Likewise.
15819         * math/s_cacoshl.c: Likewise.
15820
15821 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15822
15823         [BZ #13305]
15824         [BZ #12786]
15825         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15826         * math/s_cacoshf.c: Likewise.
15827         * math/s_cacoshl.c: Likewise.
15828
15829 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15830
15831         [BZ #13439]
15832         * iconv/gconv.h: Define __GCONV_SWAP.
15833         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15834         * iconvdata/utf-16.c: Likewise.
15835         * iconvdata/utf-32.c: Likewise.
15836
15837 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15838
15839         [BZ #13524]
15840         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15841         numerator after shifting it by one limb.
15842
15843 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15844
15845         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15846         under [__USE_EXTERN_INLINES].
15847
15848 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15849
15850         [BZ #13446]
15851         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15852
15853 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15854
15855         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15856         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15857         optimized code.
15858         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15859         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15860         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15861         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15862         for strncasecmp/strncasecmp_l compilation.
15863         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15864         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15865
15866 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15867
15868         [BZ #13484]
15869         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15870         of __asm__.
15871
15872 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15873
15874         [BZ #13506]
15875         * time/tzfile.c (__tzfile_read): Check values from file header.
15876
15877 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15878
15879         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15880         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15881         * powerpc/powerpc32/dl-start.S: Likewise.
15882         * powerpc/powerpc32/elf/start.S: Likewise.
15883         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15884         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15885         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15886         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15887         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15888         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15889         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15890         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15891         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15892         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15893         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15894         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15895         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15896         * powerpc/powerpc32/memset.S: Likewise.
15897         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15898         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15899         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15900         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15901         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15902         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15903         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15904         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15905         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15906         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15907         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15908         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15909         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15910
15911 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15912
15913         * math/libm-test.inc: Added more nearbyint tests.
15914         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15915         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15916         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15917         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15918
15919 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15920
15921         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15922         FD_CLOEXEC.
15923
15924 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15925
15926         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15927         Add wcscpy-ssse3 wcscpy-c.
15928         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15929         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15930         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15931         * sysdeps/x86_64/wcschr.S: New file.
15932         * sysdeps/x86_64/wcsrchr.S: New file.
15933         * string/test-strcmp.c: Remove checking of wcscmp function for
15934         wrong alignments.
15935         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15936         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15937         wcsrchr-sse2 wcsrchr-c.
15938         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15939         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15940         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15941         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15942         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15943         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15944         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15945         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15946         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15947         * wcsmbc/wcschr.c (WCSCHR): New macro.
15948
15949 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15950
15951         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15952         * wcsmbs/test-wcsrchr.c: New file.
15953         * string/test-strrchr.c: Add wcsrchr support.
15954         (WIDE): New macro.
15955         * wcsmbs/test-wcscpy.c: New file.
15956         * string/test-strcpy.c: Add wcscpy support.
15957         (WIDE): New macro.
15958
15959 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15960
15961         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15962         the inner loop.
15963
15964 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15965
15966         [BZ #13472]
15967         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15968
15969 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15970
15971         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15972         Minor optimizations.
15973
15974         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15975         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15976         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15977
15978 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15979
15980         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15981         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15982         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15983         for gcc to avoid warnings.
15984         * inet/Makefile (tests): Add tst-checks.
15985         * inet/tst-checks.c: New file.
15986
15987         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15988         warning.
15989
15990         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15991         __wmemcmp_sse2.
15992
15993         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15994         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15995
15996         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15997
15998 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15999
16000         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16001         problem.
16002
16003         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16004
16005 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16006
16007         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16008         conditional on GCC version.
16009         (__arch_compare_and_exchange_val_8_acq)
16010         (__arch_compare_and_exchange_val_16_acq)
16011         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16012         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16013         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16014
16015 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16016
16017         * sysdeps/sh/backtrace.c: New file.
16018
16019 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16020
16021         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16022         parenthesis.
16023
16024 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16025
16026         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16027         falling back to utime.
16028
16029 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16030
16031         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16032         expectations for float.
16033
16034 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16035
16036         * locale/weight.h (findidx): Add parameter len.
16037         * locale/weightwc.h (findidx): Likewise.
16038         * posix/fnmatch_loop.c (FCT): Adjust caller.
16039         * posix/regcomp.c (build_equiv_class): Likewise.
16040         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16041         * posix/regexec.c (check_node_accept_bytes): Likewise.
16042         * string/strcoll_l.c (STRCOLL): Likewise.
16043         * string/strxfrm_l.c (STRXFRM): Likewise.
16044
16045 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16046
16047         * Makefile.in: Remove CVSOPT handling.
16048         * configure.in: Remove use of AC_REVISION.
16049         * iconvdata/Makefile (distribute): No need to filter out CVS.
16050         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16051         handling.
16052
16053 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16054
16055         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16056         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16057         [USE_AS_STRNCASECMP_L]: Likewise.
16058         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16059         NO_TLS_DIRECT_SEG_REFS.
16060         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16061         Fix argument offsets for non-PIC.
16062         [USE_AS_STRNCASECMP_L]: Likewise.
16063         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16064         NO_TLS_DIRECT_SEG_REFS.
16065
16066 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16067
16068         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16069         O_CLOEXEC.
16070         * locale/loadlocale.c (_nl_load_locale): Likewise.
16071
16072 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16073
16074         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16075         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16076         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16077         (SYSCALL_GETTIME): Set errno on error.
16078
16079         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16080         count references to noai6ai_cached.
16081
16082 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16083
16084         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16085
16086         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16087         FD_CLOEXEC for /proc/self/maps.
16088
16089         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16090         FD_CLOEXEC for /proc/meminfo.
16091
16092         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16093         gai.conf.
16094
16095         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16096         FD_CLOEXEC for given file.
16097
16098         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16099
16100         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16101         FD_CLOEXEC for /etc/hosts.
16102         (_gethtent): Likewise.
16103
16104         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16105
16106         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16107         cancellation and set FD_CLOEXEC for /etc/netgroup.
16108
16109         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16110         reading /etc/publickey.
16111
16112         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16113         allow cancellation when reading /etc/group.
16114
16115         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16116         cancellation.
16117         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16118
16119         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16120         when using data file.
16121
16122         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16123
16124         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16125         (write_nis_obj): Use "c" and "e" in fopen.
16126
16127         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16128
16129         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16130
16131         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16132
16133         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16134
16135         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16136         locale.alias.
16137
16138         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16139
16140         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16141
16142         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16143
16144         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16145         file parsing and set FD_CLOEXEC.
16146
16147 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16148
16149         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16150
16151 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16152
16153         * malloc/arena.c (arena_get2): Don't call reused_arena when
16154         _int_new_arena failed.
16155
16156 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16157
16158         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16159         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16160         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16161         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16162         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16163         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16164         to compile strcasecmp and strncasecmp.
16165         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16166         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16167
16168         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16169
16170 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16171
16172         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16173         locale-defines.sym to gen-as-const-headers.
16174         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16175         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16176         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16177         to compile strcasecmp and strncasecmp.
16178         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16179         strcasecmp_l and strncasecmp_l.
16180         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16181         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16182         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16183         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16184         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16185         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16186         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16187         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16188         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16189         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16190         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16191
16192 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16193
16194         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16195         result of SYSDEP_GETTIME_CPU to retval.
16196         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16197         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16198
16199         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16200         variable.
16201
16202         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16203         mantissa words.
16204         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16205
16206         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16207         from unused variable.
16208
16209         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16210         DWARF definitions.
16211         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16212         for assembling.
16213
16214         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16215         over namespaces.
16216
16217         * sunrpc/rpc_prot.c (rejected): Fix case value.
16218
16219         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16220         unsigned long long int to avoid warnings in shift.
16221
16222         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16223         of use of trans.
16224         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16225         variable tmp.
16226
16227         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16228         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16229         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16230
16231         * nis/nis_table.c (nis_list): Use variable of correct type for
16232         result of __follow_path call.
16233
16234 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16235
16236         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16237         of math functions ceil, trunc, floor, round, and sqrt, when
16238         avaliable on the platform.
16239         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16240         name clash.
16241         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16242         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16243         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16244
16245 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16246
16247         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16248         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16249
16250 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16251
16252         * include/unistd.h: Fix __readlink return type.
16253         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16254
16255 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16256
16257         * stdlib/ucontext.h: Undo last change for makecontext.
16258
16259 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16260
16261         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16262
16263         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16264         * setjmp/setjmp.h: Mark functions as non-leaf.
16265         * setjmp/bits/setjmp2.h: Likewise.
16266         * stdlib/ucontext.h: Likewise.
16267
16268 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16269
16270         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16271         (reused_arena): Don't check arena limit.
16272         (arena_get2): Atomically check arena limit.
16273
16274 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16275
16276         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16277         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16278
16279         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16280         instructions.
16281
16282 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16283
16284         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16285         handler when locking.
16286
16287         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16288         Fix size of allocated buffer.
16289
16290 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16291
16292         [BZ #10103]
16293         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16294         declarations for long double functions.
16295         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16296
16297         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16298
16299 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16300
16301         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16302         installed.
16303
16304         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16305         is disabled.
16306
16307 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16308
16309         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16310
16311 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16312
16313         * include/alloca.h (stackinfo_alloca_round): Define.
16314         (extend_alloca): Use it.
16315         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16316         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16317         here.
16318
16319         * scripts/check-local-headers.sh: Ignore libaudit.h.
16320
16321         * nscd/Makefile (extra-objs): Make recursively expanded.
16322
16323 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16324
16325         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16326         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16327
16328         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16329         * posix/tst-rfc3484-2.c: Likewise.
16330         * posix/tst-rfc3484-3.c: Likewise.
16331
16332         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16333         process_vm_writev.
16334         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16335         process_vm_writev.
16336         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16337         process_vm_writev from libc using GLIBC_2.15 version.
16338
16339         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16340
16341 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16342
16343         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16344         stack usage.
16345
16346 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16347
16348         [BZ #13367]
16349         * nss/getent.c (initgroups_keys): Show error message in case no group
16350         names are given.
16351
16352         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16353         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16354         __bump_nl_timestamp.
16355         * nscd/connections (nscd_init): When host database is served open
16356         netlink socket and request notification about configuration changes.
16357         (main_loop_poll): Track netlink file descriptor and bump timestamp
16358         in case data becomes available.
16359         (main_loop_epoll): Likewise.
16360         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16361         (database_pers_head): Add extra_data fileds.
16362         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16363         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16364         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16365         Adjust caller.
16366         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16367         in6ai data, call __free_in6ai.
16368         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16369         Add -DHAVE_NETLINK.
16370         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16371         interface information.  Reuse previous data if netlink timestamp
16372         is not changed.
16373         (__bump_nl_timestamp): New function.
16374         (__free_in6ai): New function.
16375
16376 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16377
16378         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16379         close_not_cancel_no_status here.
16380         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16381
16382 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16383
16384         [BZ #13276]
16385         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16386         return value.
16387
16388         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16389         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16390         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16391
16392 2011-07-03  Andreas Jaeger  <aj@suse.de>
16393
16394         [BZ #10709]
16395         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16396         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16397         * math/libm-test.inc (sin_test): Add test case.
16398
16399 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16400
16401         [BZ #13337]
16402         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16403         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16404
16405         * elf/chroot_canon.c (chroot_canon): Cleanups.
16406
16407         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16408
16409         [BZ #13335]
16410         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16411         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16412
16413         * string/test-strchr.c: Make usable for strchrnul testing.
16414         * string/test-strchrnul.c: New file.
16415         * string/Makefile (strop-tests): Add strchrnul.
16416
16417         * po/it.po: Update from translation team.
16418         * po/es.po: Likewise.
16419
16420 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16421
16422         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16423         the three constants needed as parameters.  Drop the others.
16424         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16425         __m128i_strloadu_tolower.
16426         Create and initialize variable zero and use it in all the places
16427         where _mm_setzero_si128 was used.
16428
16429         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16430         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16431         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16432         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16433         anymore.
16434         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16435         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16436         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16437         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16438         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16439         __mpranred, __mptan.
16440         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16441         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16442         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16443         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16444         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16445         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16446         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16447         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16448         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16449
16450 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16451
16452         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16453         redefine if SHARED.
16454         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16455
16456         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16457         wide char related routines to wcsmbs subdir.
16458
16459 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16460
16461         [BZ #13344]
16462         * misc/sys/cdefs.h (__THROWNL): Define.
16463         * posix/unistd.h: Use __THREADNL instead of __THREAD
16464         for memory synchronization functions.
16465
16466 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16467
16468         [BZ #13349]
16469         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16470         doesn't exist.
16471         * manual/stdio.texi (Obstack Streams): Node removed.
16472
16473 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16474
16475         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16476         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16477         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16478
16479         * math/math_private.h (math_force_eval): Allow non-addressable
16480         arguments.
16481         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16482
16483 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16484
16485         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16486         file is not needed.
16487
16488         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16489         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16490         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16491         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16492         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16493         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16494         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16495         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16496         Add AVX variants.
16497         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16498         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16499         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16500         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16501         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16502         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16503         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16504         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16505         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16506         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16507         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16508         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16509         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16510         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16511         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16512         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16513         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16514         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16515         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16516
16517         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16518         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16519
16520         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16521         place.  Use VEX encoding when compiling for AVX.
16522
16523 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16524
16525         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16526         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16527
16528         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16529
16530 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16531
16532         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16533         useless if() expression.
16534         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16535         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16537         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16538         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16541         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16542         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16543         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16544         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16545         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16546         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16547         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16548         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16549         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16550         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16551         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16552         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16553
16554         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16555
16556 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16557
16558         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16559         condition.
16560         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16561
16562 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16563
16564         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16565         .text section.  Avoid duplicate constants.
16566         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16575         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16576         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16577         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16578         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16581         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16583         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16584         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16585         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16586         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16587         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16588         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16589         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16590         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16591         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16592         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16593         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16594         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16595         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16596         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16597         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16598         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16599         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16600         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16601         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16602         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16603         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16604         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16605         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16606         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16607         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16608         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16609         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16610         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16611
16612 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16613
16614         * sysdeps/x86_64/dla.h: Move to ...
16615         * sysdeps/x86_64/fpu/dla.h: ...here.
16616         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16617         situations.  Use __builtin_fma only for gcc 4.6 and up.
16618
16619         * config.make.in: Add have-mfma4 entry.
16620         * configure.in: Substitute libc_cv_cc_fma4.
16621         * math/Makefile (dbl-only-routines): Add sincostab.
16622         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16623         Use __sincostab not sincos.
16624         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16625         name is a macro.
16626         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16627         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16628         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16629         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16630         using __copysign.
16631         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16632         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16633         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16634         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16635         and __inv.
16636         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16637         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16638         __copysign.
16639         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16640         define aliases when function name is a macro.
16641         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16642         sysdeps/ieee754/dbl-64/sincos.tbl.
16643         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16644         fma4-enabled routines.
16645         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16646         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16647         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16648         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16649         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16650         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16651         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16652         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16653         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16654         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16655         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16656         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16657         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16658         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16659         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16660         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16661         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16662         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16663         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16664         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16665         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16666         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16667         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16668         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16669         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16670         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16671         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16672         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16673         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16674         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16675
16676         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16677         rename.
16678         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16679         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16680         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16681         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16682         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16683         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16684         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16685         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16686
16687 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16688
16689         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16690
16691 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16692
16693         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16694
16695         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16696         prediction.
16697         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16698
16699         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16700         Remove unused variable magic_bits.
16701         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16702
16703         * string/strnlen.c: Define and use STRNLEN macro.
16704         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16705         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16706         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16707         * wcsmbs/wcslen.c: Define and use WCSLEN.
16708         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16709         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16710         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16711         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16712         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16713         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16714         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16715
16716 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16717
16718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16719         strnlen-sse2-no-bsf.
16720         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16721         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16722         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16723         Add strnlen support.
16724         (USE_AS_STRNLEN): New macro.
16725         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16726         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16727         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16728         * sysdeps/x86_64/wcslen.S: New file.
16729
16730 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16731
16732         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16733         XMM-moves are used for copying on small sizes.
16734
16735 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16736
16737         * wcsmbs/Makefile (strop-tests): Add wcschr.
16738         * wcsmbs/test-wcschr.c: New file.
16739         * string/test-strchr.c: Update.
16740         Add wcschr support.
16741         (WIDE): New macro.
16742
16743 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16744
16745         * wcsmbs/Makefile (strop-tests): Add wcslen.
16746         * wcsmbs/test-wcslen.c: New file.
16747         * string/test-strlen.c: Update.
16748         Add wcslen support.
16749         (WIDE): New macro.
16750
16751 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16752
16753         * po/it.po: Update from translation team.
16754
16755 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16756
16757         * sysdeps/x86_64/wcscmp.S: Update.
16758         Fix wrong comparison semantics.
16759         wcscmp shall use signed comparison not unsigned.
16760         Don't use substraction to avoid overflow bug.
16761         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16762         * wcsmbc/wcscmp.c: Likewise.
16763         * string/test-strcmp.c: Likewise.
16764         Add new tests to check cases with negative values.
16765
16766 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16767
16768         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16769         * sysdeps/x86_64/dla.h: ...here.  New file.
16770         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16771         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16772         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16773         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16774         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16775         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16776         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16777         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16779
16780 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16781
16782         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16783         __ynl_finite aliases.
16784
16785 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16786
16787         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16788
16789         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16790         define DLA_FMA.
16791         [DLA_FMA] (EMULV): Use DLA_FMA.
16792         [DLA_FMA] (MUL12): Use EMULV.
16793         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16794         that are not needed.
16795         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16796         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16797         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16798         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16799         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16800         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16801         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16802
16803 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16804
16805         * math/s_nan.c: Undef __nan.
16806         * math/s_nanf.c: Undef __nanf.
16807         * math/s_nanl.c: Undef __nanl.
16808         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16809         "math_private.h".
16810
16811 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16812
16813         * math/s_catan.c: Add branch predictions.
16814         * math/s_catanf.c: Likewise.
16815         * math/s_catanh.c: Likewise.
16816         * math/s_catanhf.c: Likewise.
16817         * math/s_catanhl.c: Likewise.
16818         * math/s_catanl.c: Likewise.
16819         * math/s_cexp.c: Likewise.
16820         * math/s_cexpf.c: Likewise.
16821         * math/s_cexpl.c: Likewise.
16822         * math/s_clog.c: Likewise.
16823         * math/s_clog10.c: Likewise.
16824         * math/s_clog10f.c: Likewise.
16825         * math/s_clog10l.c: Likewise.
16826         * math/s_clogf.c: Likewise.
16827         * math/s_clogl.c: Likewise.
16828         * math/s_csqrt.c: Likewise.
16829         * math/s_csqrtf.c: Likewise.
16830         * math/s_csqrtl.c: Likewise.
16831         * math/s_ctanf.c: Likewise.
16832         * math/s_ctanh.c: Likewise.
16833         * math/s_ctanhf.c: Likewise.
16834         * math/s_ctanhl.c: Likewise.
16835         * math/s_ctanl.c: Likewise.
16836
16837         * math/math_private.h: Define __nan, __nanf, __nanl.
16838         * math/s_cacosh.c: Include <math_private.h>.
16839         * math/s_cacoshl.c: Likewise.
16840         * math/s_casinh.c: Likewise.
16841         * math/s_casinhf.c: Likewise.
16842         * math/s_casinhl.c: Likewise.
16843         * math/s_ccos.c: Rely entire on ccosh.
16844         * math/s_ccosf.c: Rely entire on ccoshf.
16845         * math/s_ccosl.c: Rely entirely on ccoshl.
16846         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16847         Remove tests for FE_INVALID.
16848         * math/s_ccoshf.c: Likewise.
16849         * math/s_ccoshl.c: Likewise.
16850         * math/s_csin.c: Likewise.
16851         * math/s_csinf.c: Likewise.
16852         * math/s_csinh.c Likewise.
16853         * math/s_csinhf.c: Likewise.
16854         * math/s_csinhl.c: Likewise.
16855         * math/s_csinl.c: Likewise.
16856         * math/s_ctan.c: Likewise.
16857         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16858         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16859         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16860
16861 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16862
16863         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16864         compilation problems.
16865
16866         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16867         __builtin_expect.
16868
16869 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16870
16871         * sysdeps/i386/configure.in: Test for -mfma4 option.
16872         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16873         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16874         COMMON_CPUID_INDEX_80000001.
16875         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16876         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16877         use it if FMA3 is not supported.
16878         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16879
16880         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16881         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16882
16883 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16884
16885         [BZ #12892]
16886         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16887         it would create a cycle with a link time dependency.
16888
16889 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16890
16891         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16892         instruction.
16893         * string/Makefile (strop-tests): Add rawmemchr.
16894         * string/test-rawmemchr.c: New file.
16895
16896         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16897         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16898         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16899         when compiling str{,n}casecmp and when AVX is available.  Hook up
16900         new optimized code in initializers.
16901
16902 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16903
16904         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16905         __feraiseexcept instead of feraiseexcept.
16906
16907 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16908
16909         * math/math_private.h: Define defaults for libc_fetestexcept and
16910         libc_feupdateenv.
16911         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16912         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16913         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16914         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16915         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16916         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16917         libc_fetestexcept and libc_feupdateenv.
16918
16919         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16920         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16921         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16922         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16923         libc_feholdexcept_setround.
16924
16925         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16926         Add s_nearbyint-c and s_nearbyintf-c.
16927         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16928         nearbyintf inlines.
16929         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16930         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16931         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16932         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16933
16934         * math/math_private.h: Define defaults for libc_fegetround,
16935         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16936         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16937         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16938         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16939         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16940         standard functions.
16941         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16942         Remove comments and hacks for old compiler versions.
16943         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16944         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16945         libc_feholdexceptl.
16946
16947 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16948
16949         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16950         (__feraiseexcept_renamed): Add __NTH.
16951         (feraiseexcept): Add __NTH.  Rename local variables to fix
16952         namespace violations.
16953
16954 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16955
16956         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16957
16958         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16959
16960         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16961         recently added interfaces.
16962         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16963
16964         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16965         about macro parameter expansion.
16966
16967         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16968         __NO_MATH_INLINES is defined.  Cleanups.
16969
16970         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16971         and __floorf is target has SSE4.1.
16972         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16973         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16974         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16975         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16976
16977         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16978         name.
16979         (floorf): Likewise.
16980
16981         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16982
16983 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16984
16985         * misc/sys/cdefs.h: Fix last change.
16986
16987         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16988         database lookup.
16989
16990 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16991
16992         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16993
16994         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16995         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16996         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16997         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16998         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16999         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17000         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17001         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17002         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17003         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17004         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17005         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17006         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17007         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17008         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17009         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17010         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17011         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17012         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17013         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17014         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17015         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17016
17017         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17018         ceil, ceilf, floor, floorf.
17019
17020         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17021         Perform IRELATIVE relocations last.
17022
17023         * elf/do-rel.h: Add another parameter nrelative, replacing the
17024         local variable with the same name.  Change name of the function
17025         to end in Rel or Rela (uppercase).
17026         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17027         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17028         elf_dynamic_do_##reloc function.
17029
17030 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17031
17032         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17033         is sufficient, at least on modern CPUs.
17034
17035         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17036
17037         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17038         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17039
17040         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17041         __expl_finite.
17042         * math/bits/math-finite.h: Add entries for exp.
17043         * math/e_expl.c: Add __*_finite alias.
17044         * sysdeps/i386/fpu/e_exp.S: Likewise.
17045         * sysdeps/i386/fpu/e_expf.S: Likewise.
17046         * sysdeps/i386/fpu/e_expl.c: Likewise.
17047         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17048         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17049         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17050         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17051         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17052         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17053         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17054
17055         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17056         is sufficient, at least on modern CPUs.
17057
17058         * ctype/ctype-info.c (__ctype_init): Define.
17059         * include/ctype.h (__ctype_init): Declare.
17060         (__ctype_b_loc): The variable is always initialized.
17061         (__ctype_toupper_loc): Likewise.
17062         (__ctype_tolower_loc): Likewise.
17063         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17064         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17065
17066 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17067
17068         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17069
17070         * configure.in: Also look in $cxxmachine/include for C++ system
17071         headers.
17072
17073 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17074
17075         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17076         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17077         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17078         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17079         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17080         (USE_AS_WMEMCMP): New macro.
17081         Fixing indents.
17082         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17083         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17084         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17085         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17086         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17087         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17088         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17089         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17090         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17091         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17092         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17093         (USE_AS_WMEMCMP): New macro.
17094         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17095         * sysdeps/string/test-memcmp.c: Update.
17096         Fix simple_wmemcmp.
17097         Add new tests.
17098         * wcsmbs/wmemcmp.c: Update.
17099         (WMEMCMP): New macro.
17100         Fix overflow bug.
17101
17102 2011-10-12  Andreas Jaeger  <aj@suse.de>
17103
17104         [BZ #13268]
17105         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17106
17107 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17108
17109         * libio/iofwide.c (do_length): Avoid warning.
17110
17111         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17112
17113 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17116
17117         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17118         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17119         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17120         * sysdeps/i386/i686/fpu/e_log.S: New file.
17121         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17122         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17123
17124         * ctype/ctype.h: Add support for inlined isXXX functions when
17125         compiling C++ code.
17126
17127 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17128
17129         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17130
17131         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17132
17133 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17134
17135         [BZ #13291]
17136         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17137
17138 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17139
17140         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17141         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17142         feraiseexcept.
17143
17144         * sysdeps/x86_64/memrchr.S: Check for zero size.
17145
17146         * string/stratcliff.c: Add memrchr tests.
17147
17148 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17149
17150         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17151         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17152         rawmemchr-sse2 rawmemchr-sse2-bsf.
17153         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17154         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17155         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17156         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17157         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17158         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17159         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17160         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17161         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17162         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17163         * string/memrchr.c (MEMRCHR): New macro.
17164
17165 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17166
17167         Add integration with gcc's -ffinite-math-only and optimize wrapper
17168         functions in libm.
17169         * Versions.def: Define GLIBC_2.15 version for libm.
17170         * math/Makefile (headers): Add bits/math-finite.h.
17171         * math/bits/math-finite.h: New file.
17172         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17173         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17174         * math/e_acoshl.c: Add __*_finite alias.
17175         * math/e_acosl.c: Likewise.
17176         * math/e_asinl.c: Likewise.
17177         * math/e_atan2l.c: Likewise.
17178         * math/e_atanhl.c: Likewise.
17179         * math/e_coshl.c: Likewise.
17180         * math/e_exp10.c: Likewise.
17181         * math/e_exp10f.c: Likewise.
17182         * math/e_exp10l.c: Likewise.
17183         * math/e_exp2l.c: Likewise.
17184         * math/e_fmodl.c: Likewise.
17185         * math/e_gammal_r.c: Likewise.
17186         * math/e_hypotl.c: Likewise.
17187         * math/e_j0l.c: Likewise.
17188         * math/e_j1l.c: Likewise.
17189         * math/e_jnl.c: Likewise.
17190         * math/e_lgammal_r.c: Likewise.
17191         * math/e_log10l.c: Likewise.
17192         * math/e_log2l.c: Likewise.
17193         * math/e_logl.c: Likewise.
17194         * math/e_powl.c: Likewise.
17195         * math/e_sinhl.c: Likewise.
17196         * math/e_sqrtl.c: Likewise.
17197         * math/e_scalb.c: Completely rewritten and optimized.
17198         * math/e_scalbf.c: Likewise.
17199         * math/e_scalbl.c: Likewise.
17200         * math/w_acos.c: Likewise.
17201         * math/w_acosf.c: Likewise.
17202         * math/w_acosl.c: Likewise.
17203         * math/w_acosh.c: Likewise.
17204         * math/w_acoshf.c: Likewise.
17205         * math/w_acoshl.c: Likewise.
17206         * math/w_asin.c: Likewise.
17207         * math/w_asinf.c: Likewise.
17208         * math/w_asinl.c: Likewise.
17209         * math/w_atan2.c: Likewise.
17210         * math/w_atan2f.c: Likewise.
17211         * math/w_atan2l.c: Likewise.
17212         * math/w_atanh.c: Likewise.
17213         * math/w_atanhf.c: Likewise.
17214         * math/w_atanhl.c: Likewise.
17215         * math/w_exp10.c: Likewise.
17216         * math/w_exp10f.c: Likewise.
17217         * math/w_exp10l.c: Likewise.
17218         * math/w_fmod.c: Likewise.
17219         * math/w_fmodf.c: Likewise.
17220         * math/w_fmodl.c: Likewise.
17221         * math/w_j0.c: Likewise.
17222         * math/w_j0f.c: Likewise.
17223         * math/w_j0l.c: Likewise.
17224         * math/w_j1.c: Likewise.
17225         * math/w_j1f.c: Likewise.
17226         * math/w_j1l.c: Likewise.
17227         * math/w_jn.c: Likewise.
17228         * math/w_jnf.c: Likewise.
17229         * math/w_log.c: Likewise.
17230         * math/w_logf.c: Likewise.
17231         * math/w_logl.c: Likewise.
17232         * math/w_log10.c: Likewise.
17233         * math/w_log10f.c: Likewise.
17234         * math/w_log10l.c: Likewise.
17235         * math/w_log2.c: Likewise.
17236         * math/w_log2f.c: Likewise.
17237         * math/w_log2l.c: Likewise.
17238         * math/w_pow.c: Likewise.
17239         * math/w_powf.c: Likewise.
17240         * math/w_powl.c: Likewise.
17241         * math/w_remainder.c: Likewise.
17242         * math/w_remainderf.c: Likewise.
17243         * math/w_remainderl.c: Likewise.
17244         * math/w_scalb.c: Likewise.
17245         * math/w_scalbf.c: Likewise.
17246         * math/w_scalbl.c: Likewise.
17247         * math/w_sqrt.c: Likewise.
17248         * math/w_sqrtf.c: Likewise.
17249         * math/w_sqrtl.c: Likewise.
17250         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17251         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17252         used.
17253         * math/math_private.h: Declare __kernel_standard_f.
17254         * math/w_cosh.c: Remove cruft and optimize a bit.
17255         * math/w_coshf.c: Likewise.
17256         * math/w_coshl.c: Likewise.
17257         * math/w_exp2.c: Likewise.
17258         * math/w_exp2f.c: Likewise.
17259         * math/w_exp2l.c: Likewise.
17260         * math/w_hypot.c: Likewise.
17261         * math/w_hypotf.c: Likewise.
17262         * math/w_hypotl.c: Likewise.
17263         * math/w_lgamma.c: Likewise.
17264         * math/w_lgamma_r.c: Likewise.
17265         * math/w_lgammaf.c: Likewise.
17266         * math/w_lgammaf_r.c: Likewise.
17267         * math/w_lgammal.c: Likewise.
17268         * math/w_lgammal_r.c: Likewise.
17269         * math/w_sinh.c: Likewise.
17270         * math/w_sinhf.c: Likewise.
17271         * math/w_sinhl.c: Likewise.
17272         * math/w_tgamma.c: Likewise.
17273         * math/w_tgammaf.c: Likewise.
17274         * math/w_tgammal.c: Likewise.
17275         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17276         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17277         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17278         Minor optimizations.  Pretty printing.  Remove cruft.
17279         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17280         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17281         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17282         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17283         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17284         * sysdeps/i386/fpu/e_asin.S: Likewise.
17285         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17286         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17287         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17288         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17289         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17290         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17291         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17292         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17293         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17294         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17295         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17296         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17297         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17298         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17299         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17300         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17301         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17302         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17303         * sysdeps/i386/fpu/e_log.S: Likewise.
17304         * sysdeps/i386/fpu/e_log10.S: Likewise.
17305         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17306         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17307         * sysdeps/i386/fpu/e_log2.S: Likewise.
17308         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17309         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17310         * sysdeps/i386/fpu/e_logf.S: Likewise.
17311         * sysdeps/i386/fpu/e_logl.S: Likewise.
17312         * sysdeps/i386/fpu/e_pow.S: Likewise.
17313         * sysdeps/i386/fpu/e_powf.S: Likewise.
17314         * sysdeps/i386/fpu/e_powl.S: Likewise.
17315         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17316         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17317         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17318         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17319         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17320         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17321         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17322         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17323         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17324         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17325         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17326         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17327         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17328         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17329         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17330         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17331         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17332         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17333         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17334         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17335         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17336         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17337         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17338         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17339         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17340         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17341         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17342         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17343         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17344         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17345         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17346         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17347         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17348         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17349         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17350         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17351         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17352         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17353         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17354         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17355         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17356         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17357         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17358         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17359         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17360         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17361         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17362         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17363         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17364         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17365         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17366         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17367         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17369         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17370         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17371         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17372         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17373         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17374         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17375         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17376         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17377         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17378         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17379         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17380         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17381         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17382         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17383         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17384         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17385         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17386         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17387         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17388         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17389         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17390         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17391         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17392         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17393         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17394         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17395         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17396         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17397         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17398         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17399         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17400         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17401         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17402         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17404         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17405         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17406         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17407         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17408         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17409         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17410         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17411         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17412         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17413         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17414         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17415         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17416         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17417         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17418         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17419         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17420         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17421         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17422         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17423         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17424         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17425         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17426         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17427         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17428         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17429         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17430         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17431         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17432         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17433         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17434         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17435         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17436         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17437         (__isnanf): Likewise.
17438         (__isinf_ns): Likewise.
17439         (__isinf_nsf): Likewise.
17440         (__finite): Likewise.
17441         (__finitef): Likewise.
17442         (__ieee754_sqrt): Define as macro.
17443         (__ieee754_sqrtf): Define as macro.
17444         (__ieee754_sqrtl): Define as macro.
17445         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17446         inlined copy.
17447         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17448         __FINITE_MATH_ONLY__ consistent.
17449         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17450
17451 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17452
17453         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17454         of rawmemchr.
17455
17456         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17457
17458 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17459
17460         * po/ja.po: Update from translation team.
17461
17462 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17463
17464         * locale/programs/locarchive.c (prepare_address_space): New function.
17465         (create_archive, enlarge_archive, open_archive): Use it.
17466
17467         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17468         inside [SHARED], where it is used.
17469
17470         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17471
17472         * nss/getent.c (netgroup_keys): Remove unused variable.
17473         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17474
17475 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17476
17477         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17478         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17479         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17480         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17481         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17482         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17483         * math/Makefile (libm-calls): Add s_isinf_ns.
17484         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17485         * math/multc3.c: Likewise.
17486         * math/s_casin.c: Likewise.
17487         * math/s_casinf.c: Likewise.
17488         * math/s_casinl.c: Likewise.
17489         * math/s_ccos.c: Likewise.
17490         * math/s_ccosf.c: Likewise.
17491         * math/s_ccosl.c: Likewise.
17492         * math/s_ctan.c: Likewise.
17493         * math/s_ctanf.c: Likewise.
17494         * math/s_ctanh.c: Likewise.
17495         * math/s_ctanhf.c: Likewise.
17496         * math/s_ctanhl.c: Likewise.
17497         * math/s_ctanl.c: Likewise.
17498         * math/w_fmod.c: Likewise.
17499         * math/w_fmodf.c: Likewise.
17500         * math/w_fmodl.c: Likewise.
17501         * math/w_remainder.c: Likewise.
17502         * math/w_remainderf.c: Likewise.
17503         * math/w_remainderl.c: Likewise.
17504         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17505         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17506         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17507         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17508         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17509         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17510         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17511         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17512
17513         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17514         of the number.
17515         * stdio-common/printf_fphex.c: Likewise.
17516         * stdio-common/printf_size.c: Likewise.
17517
17518         * math/e_exp10.c: Include math_private.h using <...> not "...".
17519         * math/e_exp10f.c: Likewise.
17520         * math/e_exp10l.c: Likewise.
17521         * math/e_exp2l.c: Likewise.
17522         * math/e_j0l.c: Likewise.
17523         * math/e_j1l.c: Likewise.
17524         * math/e_jnl.c: Likewise.
17525         * math/e_lgammal_r.c: Likewise.
17526         * math/e_rem_pio2l.c: Likewise.
17527         * math/e_scalb.c: Likewise.
17528         * math/e_scalbf.c: Likewise.
17529         * math/e_scalbl.c: Likewise.
17530         * math/k_cosl.c: Likewise.
17531         * math/k_sinl.c: Likewise.
17532         * math/k_tanl.c: Likewise.
17533         * math/s_cacoshf.c: Likewise.
17534         * math/s_catan.c: Likewise.
17535         * math/s_catanf.c: Likewise.
17536         * math/s_catanh.c: Likewise.
17537         * math/s_catanhf.c: Likewise.
17538         * math/s_catanhl.c: Likewise.
17539         * math/s_catanl.c: Likewise.
17540         * math/s_ccosh.c: Likewise.
17541         * math/s_ccoshf.c: Likewise.
17542         * math/s_ccoshl.c: Likewise.
17543         * math/s_cexp.c: Likewise.
17544         * math/s_cexpf.c: Likewise.
17545         * math/s_cexpl.c: Likewise.
17546         * math/s_clog.c: Likewise.
17547         * math/s_clog10.c: Likewise.
17548         * math/s_clog10f.c: Likewise.
17549         * math/s_clog10l.c: Likewise.
17550         * math/s_clogf.c: Likewise.
17551         * math/s_clogl.c: Likewise.
17552         * math/s_csin.c: Likewise.
17553         * math/s_csinf.c: Likewise.
17554         * math/s_csinh.c: Likewise.
17555         * math/s_csinhf.c: Likewise.
17556         * math/s_csinhl.c: Likewise.
17557         * math/s_csinl.c: Likewise.
17558         * math/s_csqrt.c: Likewise.
17559         * math/s_csqrtf.c: Likewise.
17560         * math/s_csqrtl.c: Likewise.
17561         * math/s_ctan.c: Likewise.
17562         * math/s_ctanf.c: Likewise.
17563         * math/s_ctanh.c: Likewise.
17564         * math/s_ctanhf.c: Likewise.
17565         * math/s_ctanhl.c: Likewise.
17566         * math/s_ctanl.c: Likewise.
17567         * math/s_ldexp.c: Likewise.
17568         * math/s_ldexpf.c: Likewise.
17569         * math/s_ldexpl.c: Likewise.
17570         * math/s_significand.c: Likewise.
17571         * math/s_significandf.c: Likewise.
17572         * math/s_significandl.c: Likewise.
17573         * math/w_acos.c: Likewise.
17574         * math/w_acosf.c: Likewise.
17575         * math/w_acosh.c: Likewise.
17576         * math/w_acoshf.c: Likewise.
17577         * math/w_acoshl.c: Likewise.
17578         * math/w_acosl.c: Likewise.
17579         * math/w_asin.c: Likewise.
17580         * math/w_asinf.c: Likewise.
17581         * math/w_asinl.c: Likewise.
17582         * math/w_atan2.c: Likewise.
17583         * math/w_atan2f.c: Likewise.
17584         * math/w_atan2l.c: Likewise.
17585         * math/w_atanh.c: Likewise.
17586         * math/w_atanhf.c: Likewise.
17587         * math/w_atanhl.c: Likewise.
17588         * math/w_cosh.c: Likewise.
17589         * math/w_coshf.c: Likewise.
17590         * math/w_coshl.c: Likewise.
17591         * math/w_dremf.c: Likewise.
17592         * math/w_exp10.c: Likewise.
17593         * math/w_exp10f.c: Likewise.
17594         * math/w_exp10l.c: Likewise.
17595         * math/w_exp2.c: Likewise.
17596         * math/w_exp2f.c: Likewise.
17597         * math/w_fmod.c: Likewise.
17598         * math/w_fmodf.c: Likewise.
17599         * math/w_fmodl.c: Likewise.
17600         * math/w_hypot.c: Likewise.
17601         * math/w_hypotf.c: Likewise.
17602         * math/w_hypotl.c: Likewise.
17603         * math/w_j0.c: Likewise.
17604         * math/w_j0f.c: Likewise.
17605         * math/w_j0l.c: Likewise.
17606         * math/w_j1.c: Likewise.
17607         * math/w_j1f.c: Likewise.
17608         * math/w_j1l.c: Likewise.
17609         * math/w_jn.c: Likewise.
17610         * math/w_jnf.c: Likewise.
17611         * math/w_jnl.c: Likewise.
17612         * math/w_lgamma.c: Likewise.
17613         * math/w_lgamma_r.c: Likewise.
17614         * math/w_lgammaf.c: Likewise.
17615         * math/w_lgammaf_r.c: Likewise.
17616         * math/w_lgammal.c: Likewise.
17617         * math/w_lgammal_r.c: Likewise.
17618         * math/w_log.c: Likewise.
17619         * math/w_log10.c: Likewise.
17620         * math/w_log10f.c: Likewise.
17621         * math/w_log10l.c: Likewise.
17622         * math/w_log2.c: Likewise.
17623         * math/w_log2f.c: Likewise.
17624         * math/w_log2l.c: Likewise.
17625         * math/w_logf.c: Likewise.
17626         * math/w_logl.c: Likewise.
17627         * math/w_pow.c: Likewise.
17628         * math/w_powf.c: Likewise.
17629         * math/w_powl.c: Likewise.
17630         * math/w_remainder.c: Likewise.
17631         * math/w_remainderf.c: Likewise.
17632         * math/w_remainderl.c: Likewise.
17633         * math/w_scalb.c: Likewise.
17634         * math/w_scalbf.c: Likewise.
17635         * math/w_scalbl.c: Likewise.
17636         * math/w_sinh.c: Likewise.
17637         * math/w_sinhf.c: Likewise.
17638         * math/w_sinhl.c: Likewise.
17639         * math/w_sqrt.c: Likewise.
17640         * math/w_sqrtf.c: Likewise.
17641         * math/w_sqrtl.c: Likewise.
17642         * math/w_tgamma.c: Likewise.
17643         * math/w_tgammaf.c: Likewise.
17644         * math/w_tgammal.c: Likewise.
17645
17646         * po/ja.po: Update from translation team.
17647
17648 2011-09-29  Andreas Jaeger  <aj@suse.de>
17649
17650         [BZ #13179]
17651         * sunrpc/netname.c (netname2host): Fix logic.
17652
17653         [BZ #6779]
17654         [BZ #6783]
17655         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17656         correctly.
17657         * math/w_remainder.c (__remainder): Likewise.
17658         * math/w_remainderf.c (__remainderf): Likewise.
17659         * math/libm-test.inc (remainder_test): Add test cases.
17660
17661 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17662
17663         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17664         sdiv_qrnnd.
17665
17666 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17667
17668         * string/test-memcmp.c: Avoid unncessary #defines.
17669         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17670
17671 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17672
17673         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17674         Use new sse2 version for core i3 - i7 as it's faster
17675         than sse42 version.
17676         (bit_Prefer_PMINUB_for_stringop): New.
17677         * sysdeps/x86_64/rawmemchr.S: Update.
17678         Replace with faster SSE2 version.
17679         * sysdeps/x86_64/memrchr.S: New file.
17680         * sysdeps/x86_64/memchr.S: Update.
17681         Replace with faster SSE2 version.
17682
17683 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17684
17685         * elf/dl-load.c (lose): Add cast to avoid warning.
17686
17687 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17688
17689         * po/ca.po: Update from translation team.
17690
17691         * inet/getnetgrent_r.c: Hook up nscd.
17692         * nscd/Makefile (routines): Add nscd_netgroup.
17693         (nscd-modules): Add netgroupcache.
17694         (CFLAGS-netgroupcache.c): Define.
17695         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17696         (cache_search): Add const to second parameter.
17697         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17698         INNETGR.
17699         (dbs): Add netgrdb entry.
17700         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17701         (verify_persistent_db): Handle netgrdb.
17702         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17703         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17704         GETFDNETGR.
17705         (netgroup_response_header): Define.
17706         (innetgroup_response_header): Define.
17707         (datahead): Add netgroup_response_header and innetgroup_response_header
17708         elements.
17709         * nscd/nscd.conf: Add entries for netgroup cache.
17710         * nscd/nscd.h (dbtype): Add netgrdb.
17711         (_PATH_NSCD_NETGROUP_DB): Define.
17712         (netgroup_iov_disabled): Declare.
17713         (xmalloc, xcalloc, xrealloc): Move declarations here.
17714         (cache_search): Adjust prototype.
17715         Add netgroup-related prototypes.
17716         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17717         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17718         (__nscd_innetgr): Declare.
17719         * nscd/selinux.c (perms): Use access_vector_t as element type and
17720         add netgroup-related initializers.
17721         * nscd/netgroupcache.c: New file.
17722         * nscd/nscd_netgroup.c: New file.
17723         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17724         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17725         For four parameters use innetgr.
17726         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17727         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17728         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17729         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17730
17731         * nscd/connections.c (register_traced_file): Don't register file
17732         for disabled databases.
17733
17734 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17735
17736         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17737
17738         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17739         from tree and freeing node.
17740
17741 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17742
17743         * nss/nsswitch.c (__nss_database_lookup): Handle
17744         nss_parse_service_list out of memory case.
17745
17746 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17747
17748         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17749         out of memory case.
17750
17751 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17752
17753         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17754         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17755         pass it down.
17756         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17757         elf_machine_rela, elf_machine_lazy_rel.
17758         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17759         (ELF_DYNAMIC_DO_REL): Likewise.
17760         (ELF_DYNAMIC_DO_RELA): Likewise.
17761         (ELF_DYNAMIC_RELOCATE): Likewise.
17762         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17763         to ELF_DYNAMIC_DO_REL.
17764         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17765         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17766         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17767         elf_machine_rela.
17768         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17769         skip_ifunc, don't call ifunc function if non-zero.
17770         (elf_machine_rela): Likewise.
17771         (elf_machine_lazy_rel): Likewise.
17772         (elf_machine_lazy_rela): Likewise.
17773         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17774         (elf_machine_lazy_rel): Likewise.
17775         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17776         Likewise.
17777         (elf_machine_lazy_rel): Likewise.
17778         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17779         Likewise.
17780         (elf_machine_lazy_rel): Likewise.
17781         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17782         (elf_machine_lazy_rel): Likewise.
17783         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17784         (elf_machine_lazy_rel): Likewise.
17785         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17786         (elf_machine_lazy_rel): Likewise.
17787         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17788         (elf_machine_lazy_rel): Likewise.
17789         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17790         (elf_machine_lazy_rel): Likewise.
17791         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17792         (elf_machine_lazy_rel): Likewise.
17793
17794 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17795
17796         * nss/nss_files/files-init.c (_nss_files_init): Use static
17797         initialization for all the *_traced_file variables.
17798
17799 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17800
17801         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17802
17803 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17804
17805         [BZ #13226]
17806         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17807
17808 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17809
17810         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17811         Reread the line before reparsing it.
17812
17813 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17814
17815         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17816
17817 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17818             Maxim Kuvyrkov  <maxim@codesourcery.com>
17819             Joseph Myers  <joseph@codesourcery.com>
17820
17821         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17822         if needed for __stack_chk_guard.
17823
17824 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17825
17826         * sysdeps/posix/spawni.c (script_execute): Always define it.
17827         It will be optimized away if unused.
17828         (maybe_script_execute): New function.
17829         (__spawni): Call it.
17830
17831         * Makerules: Don't include tls.make.
17832         (config-tls): Always set to thread.
17833         * tls.make.c: File removed.
17834
17835 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17836
17837         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17838         * config.make.in (CPPFLAGS-config): New substituted variable.
17839
17840 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17841
17842         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17843
17844         [BZ #13192]
17845         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17846         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17847
17848 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17849
17850         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17851         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17852         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17853         (CALL_FAIL): Likewise.
17854         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17855         (CALL_FAIL): Macro removed.
17856         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17857
17858 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17859
17860         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17861         for __FINITE_MATH_ONLY__ == 1.
17862
17863 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17864
17865         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17866         __ieee754_sqrt instead of sqrt.
17867         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17868         __ieee754_sqrtf instead of sqrtf.
17869         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17870         __floorf instead of floorf.
17871         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17872         __floorf, __truncf instead of floorf, truncf.
17873
17874 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17875
17876         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17877
17878         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17879         __extern_always_inline.
17880         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17881         32-bit.
17882
17883 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17884
17885         * elf/rtld.c (dl_main): Also relocate in dependency order when
17886         doing symbol dependency testing.
17887
17888 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17889
17890         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17891         Always define `refsym'.
17892
17893 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17894
17895         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17896         (__FD_ELT): Renamed from __FDELT.
17897         * misc/bits/select2.h (__FD_ELT): Likewise.
17898         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17899         __FD_MASK instead of __FDELT, __FDMASK.
17900         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17901         Likewise.
17902         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17903         Likewise.
17904
17905         * elf/Makefile (gen-ldd): Fix pattern.
17906
17907         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17908         (init_tls): Likewise.
17909
17910 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17911
17912         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17913
17914 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17915
17916         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17917         `struct cmsghdr *' instead of `void *'.
17918         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17919         Likewise.
17920
17921 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17922
17923         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17924         if non-absolute.
17925         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17926         ldd_rewrite_script.
17927
17928 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17929
17930         * configure.in: Remove --with-tls option.
17931         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17932         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17933         out in case it is missing.
17934         * sysdeps/ia64/elf/configure.in: Likewise.
17935         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17936         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17937         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17938         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17939         * sysdeps/sh/elf/configure.in: Likewise.
17940         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17941         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17942         * sysdeps/x86_64/elf/configure.in: Likewise.
17943         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17944         * sysdeps/mach/hurd/tls.h: Likewise.
17945
17946         [BZ #13067]
17947         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17948
17949         [BZ #13090]
17950         * configure.in: Fix use of AC_INIT.
17951
17952         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17953
17954 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17955
17956         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17957         __set_errno.
17958         * malloc/hooks.c: Likewise.
17959
17960         [BZ #11929]
17961         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17962         variables statically.
17963         (narenas): Initialize.
17964         (list_lock): Initialize.
17965         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17966         initializtion of main_arena and list_lock.  Small cleanups.
17967         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17968         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17969         Add initializers to main_arena and mp_.
17970         (malloc_state): Remove pagesize member.  Change all users to use
17971         GLRO(dl_pagesize).
17972
17973         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17974         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17975         is always initialized.
17976
17977         * malloc/malloc.c: Removed unused configurations and dead code.
17978         * malloc/arena.c: Likewise.
17979         * malloc/hooks.c: Likewise.
17980         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17981
17982         * include/tls.h: Removed.  USE___THREAD must always be defined.
17983         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17984         * elf/dl-libc.c: Likewise.
17985         * elf/dl-tsd.c: Likewise.
17986         * include/errno.h: Likewise.
17987         * include/netdb.h: Likewise.
17988         * include/resolv.h: Likewise.
17989         * inet/herrno-loc.c: Likewise.
17990         * inet/herrno.c: Likewise.
17991         * malloc/arena.c: Likewise.
17992         * malloc/hooks.c: Likewise.
17993         * malloc/malloc.c: Likewise.
17994         * resolv/res-state.c: Likewise.
17995         * resolv/res_libc.c: Likewise.
17996         * sysdeps/i386/dl-machine.h: Likewise.
17997         * sysdeps/ia64/dl-machine.h: Likewise.
17998         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17999         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18000         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18001         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18002         * sysdeps/sh/dl-machine.h: Likewise.
18003         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18004         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18005         * sysdeps/unix/i386/sysdep.S: Likewise.
18006         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18007         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18008         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18009         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18010         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18011         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18012         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18013         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18014         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18016         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18017         * sysdeps/x86_64/dl-machine.h: Likewise.
18018         * tls.make.c: Likewise.
18019
18020         * configure.in: Remove --with-__thread option.  Make tests for
18021         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18022         tls_model attribute fail if no support is available.  Remove
18023         USE_IN_LIBIO.
18024         * Makeconfig: Adjust for dropped configure option.  All features are
18025         now mandatory.
18026         * Makerules: Likewise.
18027         * Versions.def: Likewise.
18028         * argp/argp-fmtstream.c: Likewise.
18029         * argp/argp-fmtstream.h: Likewise.
18030         * argp/argp-help.c: Likewise.
18031         * assert/assert.c: Likewise.
18032         * config.h.in: Likewise.
18033         * config.make.in: Likewise.
18034         * configure: Likewise.
18035         * configure.in: Likewise.
18036         * csu/Versions: Likewise.
18037         * csu/init.c: Likewise.
18038         * elf/tst-audit2.c: Likewise.
18039         * elf/tst-tls10.c: Likewise.
18040         * elf/tst-tls10.h: Likewise.
18041         * elf/tst-tls11.c: Likewise.
18042         * elf/tst-tls12.c: Likewise.
18043         * elf/tst-tls14.c: Likewise.
18044         * elf/tst-tlsmod11.c: Likewise.
18045         * elf/tst-tlsmod12.c: Likewise.
18046         * elf/tst-tlsmod13.c: Likewise.
18047         * elf/tst-tlsmod13a.c: Likewise.
18048         * elf/tst-tlsmod14a.c: Likewise.
18049         * elf/tst-tlsmod15b.c: Likewise.
18050         * elf/tst-tlsmod16a.c: Likewise.
18051         * elf/tst-tlsmod16b.c: Likewise.
18052         * elf/tst-tlsmod7.c: Likewise.
18053         * elf/tst-tlsmod8.c: Likewise.
18054         * elf/tst-tlsmod9.c: Likewise.
18055         * gmon/gmon.c: Likewise.
18056         * grp/fgetgrent_r.c: Likewise.
18057         * grp/putgrent.c: Likewise.
18058         * hurd/fopenport.c: Likewise.
18059         * include/libc-symbols.h: Likewise.
18060         * include/tls.h: Likewise.
18061         * intl/gettextP.h: Likewise.
18062         * intl/loadinfo.h: Likewise.
18063         * locale/global-locale.c: Likewise.
18064         * locale/localeinfo.h: Likewise.
18065         * mach/devstream.c: Likewise.
18066         * malloc/arena.c: Likewise.
18067         * malloc/set-freeres.c: Likewise.
18068         * misc/err.c: Likewise.
18069         * misc/getttyent.c: Likewise.
18070         * misc/mntent_r.c: Likewise.
18071         * posix/getopt.c: Likewise.
18072         * posix/wordexp.c: Likewise.
18073         * pwd/fgetpwent_r.c: Likewise.
18074         * resolv/Versions: Likewise.
18075         * resolv/res_hconf.c: Likewise.
18076         * shadow/fgetspent_r.c: Likewise.
18077         * shadow/putspent.c: Likewise.
18078         * stdio-common/printf_fphex.c: Likewise.
18079         * stdio-common/tmpfile.c: Likewise.
18080         * stdlib/abort.c: Likewise.
18081         * stdlib/fmtmsg.c: Likewise.
18082         * sunrpc/auth_unix.c: Likewise.
18083         * sunrpc/clnt_perr.c: Likewise.
18084         * sunrpc/clnt_tcp.c: Likewise.
18085         * sunrpc/clnt_udp.c: Likewise.
18086         * sunrpc/clnt_unix.c: Likewise.
18087         * sunrpc/openchild.c: Likewise.
18088         * sunrpc/svc_simple.c: Likewise.
18089         * sunrpc/svc_tcp.c: Likewise.
18090         * sunrpc/svc_udp.c: Likewise.
18091         * sunrpc/svc_unix.c: Likewise.
18092         * sunrpc/xdr.c: Likewise.
18093         * sunrpc/xdr_array.c: Likewise.
18094         * sunrpc/xdr_rec.c: Likewise.
18095         * sunrpc/xdr_ref.c: Likewise.
18096         * sunrpc/xdr_stdio.c: Likewise.
18097
18098 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18099
18100         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18101
18102 2011-07-03  Andreas Jaeger  <aj@suse.de>
18103
18104         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18105         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18106         regenerate with gen-libm-tests.pl.
18107
18108 2010-05-12  Petr Baudis  <pasky@suse.cz>
18109
18110         [BZ #11589]
18111         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18112         around j0() zero points by switching to j1().
18113         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18114         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18115         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18116         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18117
18118 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18119
18120         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18121         instead of 0.
18122         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18123         instead of 0.                              .
18124         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18125         Patch in part by Pavel Roskin <proski@gnu.org>.
18126
18127         [BZ #13138]
18128         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18129         realloc.
18130         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18131         Free memory block if necessary.
18132
18133         [BZ #12847]
18134         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18135         be NULL.  Don't lock in this case.
18136
18137 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18138
18139         * elf/elf.h (ELFOSABI_GNU): New macro.
18140         (ELFOSABI_LINUX): Define to that.
18141
18142 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18143
18144         * string/strncat.c (strncat): Undef the symbol in case it has been
18145         defined in bits/string.h.
18146
18147 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18148
18149         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18150
18151         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18152         link map.
18153
18154 2011-08-17  Andreas Jaeger  <aj@suse.de>
18155
18156         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18157
18158 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18159             Ian Lance Taylor  <iant@google.com>
18160
18161         * math/libm-test.inc (lround_test): New testcase.
18162         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18163
18164 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18165
18166         * Makefile: Remove support for automatic cvs check-ins.
18167         * Makerules: Likewise.
18168         * config.make.in: Likewise.
18169         * configure.in: Likewise.
18170         * intl/Makefile: Likewise.
18171         * locale/Makefile: Likewise.
18172         * po/Makefile: Likewise.
18173         * posix/Makefile: Likewise.
18174         * sysdeps/gnu/Makefile: Likewise.
18175         * sysdeps/mach/hurd/Makefile: Likewise.
18176         * sysdeps/sparc/sparc32/Makefile: Likewise.
18177
18178         [BZ #13118]
18179         * posix/Makefile (bug-regex32-ENV): Define.
18180         Patch by John Stanley <jpsinthemix@verizon.net>.
18181
18182         * misc/Makefile (headers): Add bits/select2.h.
18183         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18184         * misc/bits/select2.h: New file.
18185         * include/bits/select2.h: New file.
18186         * debug/Makefile (routines): Add fdelt_chk.
18187         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18188         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18189         FD_ISSET.
18190         * debug/fdelt_chk.c: New file.
18191
18192         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18193         * wcsmbs/test-wmemcmp.c: Likewise.
18194         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18195         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18196
18197 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18198
18199         * string/Makefile (strop-tests): Add memcmp.
18200         * string/test-wmemcmp.c: New file.
18201         * string/test-memcmp.c: Add wmemcmp support.
18202
18203 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18204
18205         [BZ #13153]
18206         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18207         2011-07-19 change.
18208
18209         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18210         garbage value in a __mach_port_mod_refs call in the cases of the
18211         task-self and thread-self ports.
18212
18213 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18214
18215         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18216
18217 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18218
18219         * elf/dl-load.c (lose): Check for non-null L.
18220
18221 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18222
18223         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18224
18225         * elf/dl-libc.c (dlerror_run): Pass back error code from
18226         dl_catch_error.
18227
18228         [BZ #13123]
18229         * elf/dl-load.c (lose): Free l_origin if it is valid.
18230
18231         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18232         names.
18233         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18234         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18235         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18236         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18237         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18238         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18239
18240 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18241
18242         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18243         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18244         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18245         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18246         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18247         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18248         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18249         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18250         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18251         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18252
18253 2011-08-15  Alan Modra  <amodra@gmail.com>
18254
18255         [BZ #13092]
18256         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18257         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18258         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18259         ppc_mcount to static-only-routines.
18260         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18261         __mcount_internal.
18262         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18263         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18264
18265 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18266
18267         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18268         for finite and infinity parameters.
18269
18270 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18271
18272         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18273         and add nop instructions for throughput optimization.
18274         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18275
18276 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18277
18278         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18279         aligned copy for power7 with vector-scalar instructions.
18280         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18281
18282 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18283
18284         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18285         AVX check.
18286
18287 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18288
18289         [BZ #13144]
18290         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18291         last change.
18292
18293 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18294
18295         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18296         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18297         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18298         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18299         clock_gettime.
18300
18301 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18302
18303         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18304         Forgot to demangle the pointer.
18305
18306         * sysdeps/i386/sysdep.h: Define atom_text_section.
18307         * sysdeps/x86_64/sysdep.h: Likewise.
18308         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18309         section with atom_text_section.
18310         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18311         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18312         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18313         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18314         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18315
18316         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18317         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18318         already be defined.  Change to take two parameters and don't assign
18319         result to variable.  Adjust all users.
18320         Define INTERNAL_GETTIME if not already defined.
18321         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18322         call.
18323         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18324         HAVE_CLOCK_GETTIME_VSYSCALL.
18325         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18326
18327         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18328         gettimeofday vsyscall, just use time.
18329
18330 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18331
18332         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18333         <errno.h>.
18334
18335 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18336
18337         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18338         syscall on x86-64.
18339         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18340         syscall.
18341         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18342         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18343         syscall if possible.
18344
18345 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18346
18347         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18348         e_ident.  Don't pass to find_mapsXX.
18349         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18350
18351 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18352
18353         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18354         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18355         * sysdeps/x86_64/multiarch/strchr.S: Update.
18356         Check bit_slow_BSF bit.
18357         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18358         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18359         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18360
18361 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18362
18363         [BZ #13134]
18364         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18365         before glibc 2.15.
18366         (tryshell): Define.
18367         (__spawni): Change last parameter to be flag.  Test
18368         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18369         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18370         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18371         * posix/spawni.c: Likewise.
18372         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18373         * posix/spawnp.c: Likewise.  Change normal version to use
18374         SPAWN_XFLAGS_USE_PATH.
18375         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18376         SPAWN_XFLAGS_TRY_SHELL.
18377
18378         [BZ #13150]
18379         * posix/glob.h: Remove gcc 1.x support.
18380
18381         [BZ #13068]
18382         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18383
18384 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18385
18386         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18387         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18388         strrchr-sse2-bsf
18389         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18390         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18391         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18392         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18393         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18394         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18395
18396 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18397
18398         * sysdeps/x86_64/wcscmp.S: New file.
18399
18400         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18401         wcscmp-c wcscmp-sse2
18402         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18403         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18404         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18405         * wcsmbs/wcscmp.c: Allow renaming.
18406
18407 2011-09-05  David S. Miller  <davem@davemloft.net>
18408
18409         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18410         stack slot, rather than the struct return pointer slot.
18411         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18412         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18414         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18415
18416 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18417
18418         * po/ja.po: Update from translation team.
18419
18420         [BZ #13144]
18421         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18422         kernel in 64-bit binaries.
18423
18424 2011-09-01  David S. Miller  <davem@davemloft.net>
18425
18426         * elf/elf.h (HWCAP_SPARC_*): Move to..
18427         * sysdeps/sparc/sysdep.h: this new file and add new values.
18428         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18429         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18430         _DL_HWCAP_COUNT to 24.
18431         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18432         entries.
18433         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18434         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18435         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18436         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18437         instead of magic constants.
18438         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18439
18440 2011-08-31  David S. Miller  <davem@davemloft.net>
18441
18442         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18443         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18444         Reimplement to do errno handling inline.
18445         (SYSCALL_ERROR_HANDLER): New macro.
18446         (__SYSCALL_STRING): Do not do errno handling in asm.
18447         (__CLONE_SYSCALL_STRING): Delete.
18448         (__INTERNAL_SYSCALL_STRING): Delete.
18449         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18450         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18451         (PSEUDO): Reimplement to do errno handling inline.
18452         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18453         (SYSCALL_ERROR_HANDLER): New macro.
18454         (__SYSCALL_STRING): Do not do errno handling in asm.
18455         (__CLONE_SYSCALL_STRING): Delete.
18456         (__INTERNAL_SYSCALL_STRING): Delete.
18457         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18458         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18459         i386.
18460         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18461         (inline_syscall*): Add 'err' argument.
18462         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18463         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18464         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18465         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18466
18467         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18468         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18469
18470 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18471
18472         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18473
18474 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18475
18476         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18477         directive.
18478
18479 2011-08-24  David S. Miller  <davem@davemloft.net>
18480
18481         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18482
18483 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18484
18485         * elf/Makefile: Add rules to build and run unload8 test.
18486         * elf/unload8.c: New file.
18487         * elf/unload8mod1.c: New file.
18488         * elf/unload8mod1x.c: New file.
18489         * elf/unload8mod2.c: New file.
18490         * elf/unload8mod3.c: New file.
18491
18492         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18493         it wasn't used.
18494
18495 2011-08-23  David S. Miller  <davem@davemloft.net>
18496
18497         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18498         subtract stack bias.
18499         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18500         %sp not %fp in calculations.
18501         (_JMPBUF_UNWINDS_ADJ): Likewise.
18502
18503         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18504         (aio_suspend): Call it to force an exception region around the
18505         AIO_MISC_WAIT() invocation.
18506
18507 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18508
18509         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18510         backslash.
18511
18512 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18513
18514         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18515         protection macro.
18516         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18517         and <dl-machine.h>.
18518         (Elf64_FuncDesc): Remove.
18519
18520 2011-08-22  David S. Miller  <davem@davemloft.net>
18521
18522         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18523         sigaltstack check, add missing cfi directives.
18524         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18525         missing cfi directives, and sigaltstack handling.
18526
18527 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18528
18529         [BZ #11724]
18530         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18531         object is seen twice.
18532         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18533
18534         * elf/Makefile (distribute): Add tst-initorder2.c.
18535         (tests): Add tst-initorder2.
18536         (modules-names): Add tst-initorder2a tst-initorder2b
18537         tst-initorder2c tst-initorder2d.  Add rules to build them.
18538         ($(objpfx)tst-initorder2.out): New rule.
18539         * elf/tst-initorder2.c: New file.
18540         * elf/tst-initorder2.exp: New file.
18541
18542 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18543
18544         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18545
18546         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18547         dependencies back to end of function.
18548
18549         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18550         $(elfobjdir)/ld.so.
18551
18552 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18553
18554         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18555         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18556         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18557         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18558         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18559         of __vdso_gettimeofday.
18560         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18561         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18562         attribute_hidden.
18563         (_libc_vdso_platform_setup): Remove initialization of
18564         __vdso_gettimeofday and __vdso_time.
18565
18566 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18567
18568         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18569         and fgetc_unlocked.
18570         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18571         getc_unlocked.
18572
18573         * elf/dl-open.c (add_to_global): Report additions to the global scope
18574         for LD_DEBUG=scopes.
18575         (dl_open_worker): Also print scope of newly loaded dependencies.
18576         (_dl_show_scope): Indicate if there is no scope.
18577
18578         [BZ #13114]
18579         * stdio-common/Makefile (tests): Add bug24.
18580         * stdio-common/bug24.c: New file.
18581
18582 2011-08-19  Andreas Jaeger  <aj@suse.de>
18583
18584         [BZ #13114]
18585         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18586         non-existant file when using close-on-exec mode.
18587
18588 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18589
18590         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18591         the very first instruction.
18592
18593         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18594         the CFI state in the end.
18595         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18596         inclusion of dl-trampoline.h.
18597         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18598
18599 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18600
18601         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18602         expectations for long double.
18603
18604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18605         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18606
18607 2011-08-14  David S. Miller  <davem@davemloft.net>
18608
18609         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18610         artificual limit depends upon the system page size.
18611
18612 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18613
18614         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18615         * resolv/Makefile: Define CFLAGS-libresolv.
18616
18617 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18618
18619         * nss/makedb.c (compute_tables): Make variables used in nested
18620         function static.
18621
18622 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18623
18624         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18625         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18626         if buffer was too small.
18627
18628         * elf/pldd.c (main): Attach to all threads in the process.
18629         Rewrite /proc handling to use *at functions.
18630
18631 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18632
18633         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18634         specifies first scope to show.
18635         (dl_open_worker): Update callers.  Move printing scope of new
18636         object to before the relocation.
18637         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18638         * sysdeps/generic/ldsodefs.h: Update declaration.
18639
18640         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18641         string for the scope number.
18642
18643 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18644
18645         * nscd/servicescache.c (cache_addserv): Make sure written is always
18646         initialized.
18647
18648 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18649
18650         * sysdeps/i386/i486/bits/atomic.h
18651         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18652         statement expression, so as to suppress "set but not used" warning.
18653         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18654
18655         * string/strncat.c (STRNCAT): Use prototype definition.
18656
18657         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18658         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18659         -Iprograms here.
18660         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18661         (localedef-modules): Add localedef.
18662         (locale-modules): Add locale.
18663
18664         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18665         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18666         to avoid a warning.
18667
18668 2011-08-14  David S. Miller  <davem@davemloft.net>
18669
18670         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18671         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18672
18673 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18674
18675         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18676         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18677         * elf/rtld.c (dl_main): Set l_name of vDSO.
18678         Call _dl_show_scope when DL_DEBUG_SCOPES.
18679         (process_dl_debug): Recognize scopes flag and also set it for all.
18680         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18681         Declare _dl_show_scope.
18682
18683         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18684         (do_dlopen): Pass caller_dlopen to dl_open.
18685         (__libc_dlopen_mode): Initialize caller_dlopen.
18686
18687         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18688         of libc.  Make tolower call locale-independent.  Optimize a bit by
18689         using isdigit instead of isalnum.
18690         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18691
18692 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18693
18694         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18695         was a dependency or dynamically loaded.
18696
18697 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18698
18699         * intl/l10nflist.c: Allow architecture-specific pop function.
18700         * sysdeps/x86_64/l10nflist.c: New file.
18701
18702         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18703         classification.
18704
18705 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18706
18707         * include/dirent.h: Add libc_hidden_proto for scandirat and
18708         scandirat64.  Don't declare __scandirat64.
18709         * dirent/scandirat.c: Add libc_hidden_def.
18710         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18711         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18712
18713 2011-08-10  David S. Miller  <davem@davemloft.net>
18714
18715         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18716         enum.
18717         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18718         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18719         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18720
18721 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18722
18723         * Versions.def [libc]: Add GLIBC_2.15.
18724         * dirent/Makefile (routines): Add scandirat and scandirat64.
18725         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18726         GLIBC_2.15.
18727         * dirent/dirent.h: Declare scandirat and scandirat64.
18728         * dirent/scandirat.c: New file.
18729         * dirent/scandirat64.c: New file.
18730         * sysdeps/wordsize-64/scandirat.c: New file.
18731         * sysdeps/wordsize-64/scandirat64.c: New file.
18732         * dirent/opendir.c: Define opendirat.
18733         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18734         using scandirat.
18735         * dirent/scandir64.c: Adjust for scandir.c change.
18736         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18737         __scandirat64, and __scandir_cancel_handler.
18738         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18739         additional parameter and use openat instead of open (outside of ld.so).
18740         Add new __opendir as wrapper around __opendirat.
18741         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18742         here without requiring old scandirat implementation.
18743
18744 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18745
18746         * dirent/scandir.c (cancel_handler): Renamed to
18747         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18748         defined.  Adjust users.
18749         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18750         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18751
18752 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18753
18754         * string/test-string.h (IMPL): Use __STRING to expand name and then
18755         stringify it.
18756
18757         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18758         of cleanups.
18759
18760 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18761
18762         * string/Makefile: Update.
18763         (strop-tests): Append strncat.
18764         * string/test-wcscmp.c: New file.
18765         New comprehensive test for wcscmp.
18766         * string/test-strcmp.c: Update.
18767         (WIDE): New define.
18768
18769 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18770
18771         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18772         line.
18773
18774 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18775
18776         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18777         encoding to ACE if AI_IDN.
18778
18779 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18780
18781         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18782         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18783
18784 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18785
18786         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18787         Fix overflow bug in strncat.
18788         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18789
18790         * string/test-strncat.c: Update.
18791         Add new tests for checking overflow bugs.
18792
18793 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18794
18795         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18796         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18797         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18798         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18799         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18800         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18801         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18802         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18803         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18804
18805         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18806         (USE_AS_STRCAT): Define.
18807         Add strcat and strncat support.
18808         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18809
18810 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18811
18812         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18813         __n bigger than INT_MAX+1.
18814         (__strncmp_g): Likewise.
18815
18816 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18817
18818         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18819         * libio/stido.h: Likewise.
18820
18821         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18822         (AF_NFC): Define.
18823         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18824         (AF_NFC): Define.
18825
18826         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18827         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18828         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18829         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18830         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18831
18832         [BZ #13021]
18833         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18834         installed.
18835
18836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18837         typo.
18838         (_dl_x86_64_save_sse): Likewise.
18839
18840 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18841
18842         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18843         OSXSAVE.
18844         (_dl_x86_64_save_sse): Likewise.
18845
18846         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18847
18848         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18849
18850 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18851
18852         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18853         change.
18854         (_dl_x86_64_save_sse): Use correct AVX check.
18855
18856 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18857
18858         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18859         bug in strncpy/strncat.
18860         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18861
18862 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18863
18864         * string/tester.c (test_strcat): Add tests for different alignments
18865         of source and destination.
18866         (test_strncat): Likewise.
18867
18868 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18869
18870         [BZ #12852]
18871         * posix/glob.c (glob): Check passed in values before using them in
18872         expressions to avoid some overflows.
18873         (glob_in_dir): Likewise.
18874
18875         [BZ #13007]
18876         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18877         check for AVX enablement so that we don't crash with old kernels and
18878         new hardware.
18879         * elf/tst-audit4.c: Add same checks here.
18880         * elf/tst-audit6.c: Likewise.
18881
18882         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18883
18884 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18885
18886         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18887
18888 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18889
18890         * po/cs.po: Update from translation team.
18891         * po/bg.po: Likewise.
18892
18893 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18894
18895         * misc/sys/cdefs.h: Add support for const attribute.
18896         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18897         to gnu_dev_{major,minor,makedev} functions.
18898
18899 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18900
18901         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18902
18903 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18904
18905         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18906         strlen results.
18907
18908 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18909
18910         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18911         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18912         register in order to avoid conflicts with the soft frame pointer
18913         being held in r11 when necessary.
18914         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18915         (INTERNAL_VSYSCALL_NCS): Likewise.
18916
18917 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18918
18919         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18920         * elf/dl-fini.c (_dl_fini): Adjust caller.
18921         * elf/dl-close.c (_dl_close_worker): Likewise.
18922         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18923
18924 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18925
18926         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18927         "aux_cache->nlibs < 0".
18928
18929         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18930         in the reload-count case.
18931
18932 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18933
18934         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18935         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18936         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18937         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18938         * sysdeps/x86_64/multiarch/strcat.S: New file.
18939         * sysdeps/x86_64/multiarch/strncat.S: New file.
18940         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18941         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18942         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18943         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18944         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18945         (USE_AS_STRCAT): Define.
18946         Add strcat and strncat support.
18947         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18948         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18949         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18950         * string/strncat.c: Update.
18951         (USE_AS_STRNCAT): Define.
18952         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18953         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18954         and i7.
18955         * sysdeps/x86_64/multiarch/init-arch.h
18956         (bit_Prefer_PMINUB_for_stringop): New.
18957         (index_Prefer_PMINUB_for_stringop): Likewise.
18958         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18959         bit_Prefer_PMINUB_for_stringop.
18960
18961 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18962
18963         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18964         buffer64.
18965         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18966         of casting of buffer.
18967         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18968         buffer32 and buffer64.
18969         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18970         writes instead of casting of buffer.
18971         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18972         buffer32.
18973         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18974         casting of buffer.
18975
18976 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18977
18978         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18979
18980 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18981
18982         * nscd/nscd.c (termination_handler): Don't do anything for a database
18983         if it has not yet been initialized.
18984
18985 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18986
18987         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18988
18989 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18990
18991         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18992
18993 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18994
18995         * po/nl.po: Update from translation team.
18996         * po/sv.po: Likewise.
18997
18998 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18999
19000         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19001         now disallowed by GCC.
19002
19003         * configure.in (use-default-link): Default to yes if a test -shared
19004         link meets our qualifications.
19005         * configure: Regenerated.
19006
19007         * config.make.in (output-format): New variable.
19008         * configure.in: Check for ld --print-output-format support.
19009         * configure: Regenerated.
19010         * Makerules ($(common-objpfx)format.lds)
19011         [$(output-format) != unknown]: Just use $(output-format),
19012         instead of the linker-script munging.
19013
19014 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19015
19016         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19017         of $(common-objpfx)shlib.lds.
19018         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19019
19020         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19021         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19022
19023         * configure.in (-z relro check): Adjust test code to add a large
19024         writable data section after it.
19025         * configure: Regenerated.
19026
19027 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19028
19029         * configure.in (-z relro check): Fix test code to make the variable
19030         truly const.
19031         * configure: Regenerated.
19032
19033 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19034
19035         * nscd/nscd.h (struct traced_file): Define.
19036         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19037         elements.  Add traced_files.
19038         (inotify_fd): Declare.
19039         (register_traced_file): Declare.
19040         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19041         (inotify_fd): Export.
19042         (resolv_conf_descr): Remove.
19043         (nscd_init): Move inotify descriptor creation to main.
19044         Don't register files for notification here.
19045         (register_traced_file): New function.
19046         (invalidate_cache): Don't use reset_res to determine whether to call
19047         res_init, go through the list of registered files.
19048         (main_loop_poll): The inotify descriptors are now stored in the
19049         structures for the traced files.
19050         (main_loop_epoll): Likewise
19051         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19052         to __nss_disable_nscd.
19053         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19054         for a database anymore.  Check the records for all the registered
19055         files instead.
19056         * nss/Makefile (libnss_files-routines): Add files-init.
19057         (libnss_db-routines): Add db-init.
19058         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19059         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19060         * nss/nss_db/db-init.c: New file.
19061         * nss/nss_files/files-init.c: New file.
19062         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19063         __nss_lookup_function.
19064         (__nss_lookup_function): Call nss_load_library.
19065         (nss_load_all_libraries): New function.
19066         (__nss_disable_nscd): Take parameter with callback function for files
19067         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19068         used for the cached services.
19069         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19070         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19071         options for features to all the files in nscd.
19072
19073         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19074
19075 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19076
19077         * csu/elf-init.c (__libc_csu_init): Comment typo.
19078
19079 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19080
19081         * po/pl.po: Update from translation team.
19082         * po/ja.po: Likewise.
19083         * po/ru.po: Likewise.
19084         * po/ko.po: Likewise.
19085         * po/fr.po: Likewise.
19086
19087 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19088
19089         * configure.in (.ctors/.dtors header and trailer check):
19090         Use an empirical test on a built program.
19091         * configure: Regenerated.
19092
19093         * configure.in (-z relro check): Use an empirical test on a built DSO.
19094         Detect, but do not require, on ia64.
19095         * configure: Regenerated.
19096
19097         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19098         Update tests that use readelf to use $READELF instead.
19099         * configure: Regenerated.
19100
19101 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19102
19103         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19104         if the result is not used.
19105
19106 2011-07-05  Andreas Jaeger  <aj@suse.de>
19107
19108         [BZ#9696]
19109         * stdlib/tst-strtod.c: Add testcase.
19110
19111 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19114         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19115         The latter has a higher limit.  Take additional parameter to pass to
19116         the new function.
19117         (__pathconf): Pass file to __statfs_link_max.
19118         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19119         __statfs_link_max.
19120         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19121         __statfs_link_max.
19122
19123         [BZ #12868]
19124         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19125         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19126         Handle Lustre.
19127         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19128         (__statfs_filesize_max): Likewise.
19129         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19130
19131 2011-07-05  Andreas Jaeger  <aj@suse.de>
19132
19133         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19134
19135 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19136
19137         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19138         `status' variable.
19139         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19140         Likewise.
19141
19142 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19143
19144         * Makefile (strop-tests): Add strncat.
19145         * string/test-strncat.c: New file.
19146
19147 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19148
19149         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19150
19151 2011-06-21  Andreas Jaeger  <aj@suse.de>
19152
19153         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19154         Copy rule from iconvdata/Makefile.
19155
19156 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19157
19158         [BZ #12922]
19159         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19160         but no long options are defined, just return 'W'.
19161
19162 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19163
19164         [BZ #9696]
19165         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19166
19167 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19168
19169         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19170         netgroups to read.
19171         (innetgr): Likewise.
19172
19173 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19174
19175         * config.make.in (install_root): Default to $(DESTDIR).
19176
19177 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19178
19179         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19180
19181 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19182
19183         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19184
19185         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19186         containing directory rather than embedding absolute directory names.
19187
19188         * scripts/check-local-headers.sh: Rewritten using awk.
19189         Match by word, not by line.  Print error messages for matches.
19190         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19191
19192         * Makerules [shlib-lds-flags empty]:
19193         ($(common-objpfx)libc_pic.opts): New target.
19194         ($(common-objpfx)libc_pic.os.clean): New target.
19195         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19196
19197         * config.make.in (OBJCOPY): New variable.
19198         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19199         * configure: Regenerated.
19200
19201         * config.make.in (use-default-link): New variable.
19202         * configure.in (use_default_link): Grok --with-default-link to set it.
19203         * configure: Regenerated.
19204         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19205         (shlib-lds, shlib-lds-flags): Define to empty.
19206
19207         * Makerules (shlib-lds): New variable.
19208         (shlib-lds-flags): New variable.
19209         (build-shlib, build-moduile, build-module-asneeded): Use it.
19210         ($(common-objpfx)libc.so): Use $(shlib-lds).
19211         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19212         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19213
19214         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19215         DT_FLAGS/DT_FLAGS_1 with zero flags.
19216
19217         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19218         linker script munging.
19219
19220 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19221
19222         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19223         as 128-bit value.
19224         * crypt/sha512.c (sha512_process_block): Perform total addition using
19225         128-bit if possible.
19226         (__sha512_finish_ctx): Likewise.
19227         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19228         as 64-bit value.
19229         * crypt/sha256.c (SWAP64): Define.
19230         (sha256_process_block): Perform total addition using 64-bit if
19231         possible.
19232         (__sha256_finish_ctx): Likewise.
19233
19234 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19235
19236         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19237         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19238         * nscd/hstcache.c (cache_addhst): Likewise.
19239         * nscd/grpcache.c (cache_addgr): Likewise.
19240         * nscd/aicache.c (addhstaiX): Likewise
19241         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19242
19243 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19244
19245         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19246         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19247         * nscd/hstcache.c (cache_addhst): Likewise.
19248         * nscd/grpcache.c (cache_addgr): Likewise.
19249         * nscd/aicache.c (addhstaiX): Likewise
19250
19251 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19252
19253         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19254         domain only when needed.
19255
19256 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19257
19258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19259         is always restored.
19260
19261 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19262
19263         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19264         are re-adding the entry.
19265         * nscd/servicescache.c (cache_addserv): Likewise.
19266
19267 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19268
19269         * sysdeps/generic/dl-irel.h: fix protection against multiple
19270         inclusions.
19271         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19272
19273 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19274
19275         [BZ #12935]
19276         * malloc/memusage.sh: Fix quoting in message.
19277         * debug/xtrace.sh: Likewise.
19278
19279         * configure.in: Remove support for --experimental-malloc option, make
19280         it the default.
19281         * config.make.in: Likewise.
19282         * malloc/Makefile: Likewise.
19283
19284 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19285
19286         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19287         two-byte characters.
19288
19289 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19290
19291         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19292         AC_CACHE_CHECK invocation.
19293         * configure: Regenerated.
19294
19295         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19296
19297 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19298
19299         [BZ #12350]
19300         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19301         bit from old_res_options.
19302
19303         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19304
19305         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19306         value type for setfct.
19307
19308 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19309
19310         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19311         __gettimeofday instead of gettimeofday.
19312
19313 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19314
19315         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19316
19317 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19318
19319         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19320
19321         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19322         info.
19323
19324 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19325
19326         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19327         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19328         strcpy-sse2-unaligned strncpy-sse2-unaligned
19329         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19330         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19331         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19332         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19333         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19334         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19335         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19336         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19337         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19338         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19339         (STRCPY): Support SSE2 and SSSE3 versions.
19340
19341 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19342
19343         [BZ #12874]
19344         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19345         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19346         kernels which artificially limit size of requests.
19347
19348 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19349
19350         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19351         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19352         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19353         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19354         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19355         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19356         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19357         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19358         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19359         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19360         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19361         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19362         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19363         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19364         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19365         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19366         Enable unaligned load optimization for Intel Core i3, i5 and i7
19367         processors.
19368         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19369         Define.
19370         (index_Fast_Unaligned_Load): Define.
19371         (HAS_FAST_UNALIGNED_LOAD): Define.
19372
19373 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19374
19375         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19376
19377 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19378
19379         [BZ #12907]
19380         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19381         until it is clear that the information is realy needed.
19382         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19383
19384 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19385
19386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19387
19388 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19389
19390         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19391         /sys/devices/system/cpu/online if it is usable.
19392
19393         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19394         reading the information from the /proc filesystem to once a second.
19395
19396 2011-06-21  Andreas Jaeger  <aj@suse.de>
19397
19398         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19399         NULL after inclusion of kernel headers.
19400
19401 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19402
19403         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19404         calls to internal_setent.
19405
19406         [BZ #12885]
19407         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19408         addresses using gethostbyname4_r ignore IPv4 addresses.
19409
19410         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19411         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19412
19413         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19414
19415 2011-06-20  David S. Miller  <davem@davemloft.net>
19416
19417         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19418         inclusions.
19419         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19420
19421         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19422         (elf_irel): Use it.
19423         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19424         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19425         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19426         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19427         * sysdeps/x86_64/dl-irel.h: Likewise.
19428
19429         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19430         * elf/dl-sym.c: Likewise.
19431
19432 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19433
19434         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19435         need to dereference resplen2.
19436
19437 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19438
19439         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19440
19441 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19442
19443         * Makeconfig: Define vardbdir and inst_vardbdir.
19444         * nss/Makefile: Add rules to install db-Makefile.
19445
19446         * nss/nss_db/db-XXX.c: Cleanup.
19447
19448         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19449         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19450         GLIBC_PRIVATE.
19451         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19452         * nss/makedb.c: Implement -g option to specify that value strings
19453         are generated and should not be added to table iterated over for
19454         get*ent calls.
19455         * nss/nss_db/db-initgroups.c: New file.
19456
19457         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19458         interface.
19459
19460         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19461         (internal_getgrouplist): Adjust to name change.
19462         Update use_initgroups_entry if this is not the first call.
19463         * nss/databases.def: Add initgroups entry.
19464
19465         * nss/makedb.c (compute_tables): Check result of multiple hash table
19466         sizes to minimize maximum chain length.
19467
19468 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19469
19470         * Versions.def: Add entry for libnss_db.
19471         * shlib-versions: Likewise.
19472         * nss/Makefile: Add rules to build libnss_db.
19473         * nss/Versions: Add libnss_db information.  Organize libnss_files
19474         entries better.
19475         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19476         makedb progra.  Some minor improvements to generate smaller files.
19477         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19478         here from...
19479         * nss/makedb.c: ...here.
19480         Improve database format to be smaller and require less memory at
19481         runtime.
19482         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19483         db anymore.
19484         * nss/nss_db/db-netgrp.c: Likewise.
19485         * nss/nss_db/db-open.c: Likewise.
19486         * nss/nss_files/flies-XXX.x: Adjust comments.
19487         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19488         * nss/nss_files/files-grp.c: Likewise.
19489         * nss/nss_files/files-hosts.c: Likewise.
19490         * nss/nss_files/files-network.c: Likewise.
19491         * nss/nss_files/files-proto.c: Likewise.
19492         * nss/nss_files/files-pwd.c: Likewise.
19493         * nss/nss_files/files-rpc.c: Likewise.
19494         * nss/nss_files/files-service.c: Likewise.
19495         * nss/nss_files/files-sgrp.c: Likewise.
19496         * nss/nss_files/files-spwd.c: Likewise.
19497         * nss/nss_db/db-alias.c: Removed.
19498         * nss/nss_db/dummy-db.h: Removed.
19499
19500 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19501
19502         * nss/makedb.c: Rewritten to not use database library.
19503         * nss/Makefile: Update to build new makedb program.
19504
19505 2011-06-14  Andreas Jaeger  <aj@suse.de>
19506
19507         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19508         memset declaration.
19509
19510 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19511
19512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19513         tmpbuf.
19514
19515 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19516
19517         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19518         * elf/Makefile ($(objpfx)ld.so): Likewise.
19519
19520         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19521         Don't list ld.so twice in dependencies.
19522
19523         * posix/bug-regex31.c: Include <stdlib.h>.
19524
19525         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19526
19527         * nis/nss_compat/compat-spwd.c
19528         (getspent_next_nss_netgr): Remove unused variable.
19529         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19530
19531         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19532         nonmembers" output to use the right array.
19533
19534         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19535
19536         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19537
19538         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19539         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19540         * catgets/gencat.c (read_input_file): Likewise.
19541         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19542
19543         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19544         variable definition inside #if's controlling its use.
19545
19546         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19547
19548         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19549
19550         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19551
19552         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19553         unreachable code.
19554
19555         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19556
19557         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19558         * configure: Regenerated.
19559
19560         * Makerules: Revert last change.
19561         * elf/Makefile: Likewise.
19562
19563 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19564
19565         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19566         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19567         (reloc-link): Likewise.
19568
19569 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19570
19571         * elf/Makefile: Add rules to build pldd.
19572         * elf/pldd.c: New file.
19573         * elf/pldd-xx.c: New file.
19574
19575 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19576
19577         * version.h: Update for 2.15 development version.
19578
19579 2011-06-07  David S. Miller  <davem@davemloft.net>
19580
19581         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19582         ifuncs.
19583         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19584         elf_machine_lazy_rel): Likewise.
19585         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19586         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19587         elf_machine_lazy_rel): Likewise.
19588         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19589         dl_hwcap via passed in argument.
19590         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19591         Likewise.
19592
19593 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19594
19595         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19596
19597 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19598
19599         [BZ #12849]
19600         * manual/fdl-1.1.texi: New file, verbatim from:
19601         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19602         * manual/lgpl-2.1.texi: New file, verbatim from:
19603         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19604         * manual/Makefile (licenses): New variable, list those new file names.
19605         (texis): Use it.
19606         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19607
19608         * manual/fdl.texi: File removed.
19609         * manual/lesser.texi: File removed.
19610         * manual/libc.texinfo (Copying, Documentation License):
19611         Use new @include file names, put @appendix directive before @include.
19612
19613 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19614
19615         [BZ #12841]
19616         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19617         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19618         (mq_open): Add __NTH.
19619
19620 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19621
19622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19623         Assume Intel Core i3/i5/i7 processor if AVX is available.
19624
19625 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19626
19627         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19628         typo.
19629
19630 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19631
19632         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19633         memory.  Use alloca_account.  Fix memory leak when retrying.
19634
19635 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19636
19637         * version.h (RELEASE): Bump for 2.14 release.
19638         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19639
19640         * config.make.in (RANLIB): Remove entry.
19641
19642 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19643
19644         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19645         (libc.pot): Work around missing support for .ksh extension in xgettext.
19646
19647         [BZ #12684]
19648         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19649         if both request failed.
19650         (send_dg): In case of server errors clear resplen or *resplen2.
19651
19652         [BZ #12454]
19653         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19654         when there are multiple maps.
19655         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19656         (_dl_fini): Remove test here.
19657
19658         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19659
19660 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19661
19662         [BZ #12350]
19663         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19664         bit from old_res_options.
19665         (gaih_inet): Likewise.
19666
19667         [BZ #11099]
19668         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19669         as signed.
19670
19671         * resolv/res_init.c (res_setoptions): Make the code more compact.
19672
19673         [BZ #11558]
19674         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19675         set RES_USEVC.
19676
19677         [BZ #11634]
19678         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19679
19680         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19681
19682         [BZ #11781]
19683         * malloc/malloc.h: Declare malloc hook variables as volatile.
19684
19685         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19686         in last patch.
19687
19688         [BZ #11799]
19689         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19690         raise in the comment.
19691         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19692         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19693         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19694
19695 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19696
19697         [BZ #12811]
19698         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19699         grow the buffers more if it already has to be sufficient.
19700         (build_wcs_upper_buffer): Likewise.
19701         * posix/regexec.c (check_matching): Likewise.
19702         (clean_state_log_if_needed): Likewise.
19703         (extend_buffers): Don't enlarge buffers beyond size of the input
19704         buffer.
19705         Patches mostly by Emil Wojak <emil@wojak.eu>.
19706         * posix/bug-regex32.c: New file.
19707         * posix/Makefile (tests): Add bug-regex32.
19708
19709         * locale/findlocale.c (_nl_find_locale): Return right away if
19710         _nl_explode_name failed.
19711         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19712
19713         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19714
19715         * debug/xtrace.sh: Unify messages.
19716         * malloc/memusage.sh: Likewise.
19717
19718         [BZ #12813]
19719         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19720         time symbol from vDSO.  Substitute with vsyscall if not available.
19721         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19722         __vdso_time.
19723
19724         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19725         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19726         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19727         Add sendmmsg and internal_sendmmsg.
19728         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19729         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19730         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19731
19732         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19733         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19734         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19735
19736 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19737
19738         [BZ #12813]
19739         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19740         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19741         available.
19742         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19743         __vdso_getcpu.
19744
19745         [BZ #12814]
19746         * iconvdata/Makefile (tests): Add bug-iconv9.
19747         * iconvdata/bug-iconv9.c: New file.
19748
19749 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19750
19751         [BZ #12814]
19752         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19753
19754 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19755
19756         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19757         (struct user_regs_struct): Change intcs field back to cs.
19758
19759 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19760
19761         * po/ja.po: Update from translation team.
19762
19763 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19764
19765         [BZ #12795]
19766         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19767         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19768
19769 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19770
19771         * stdlib/longlong.h: Update from GCC.
19772
19773 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19774
19775         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19776         parameter name.
19777         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19778         Add parameter name.
19779         (__sysconf): Pass it down.
19780
19781 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19782
19783         [BZ #12671]
19784         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19785         some situations.
19786         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19787         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19788         add in in __libc_use_alloca calls.  Adjust callers.
19789         (glob): Use malloc in some situations.
19790
19791         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19792         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19793         pltexit.
19794
19795 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19796
19797         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19798         and CLOCK_BOOTTIME_ALARM.
19799
19800         [BZ #12782]
19801         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19802         is returned.
19803
19804         * string/_strerror.c (__strerror_r): Print negative errors as signed
19805         numbers.
19806
19807         [BZ #12777]
19808         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19809         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19810         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19811
19812         * configure.in: Fix typo in redirection and correct removal of test
19813         files in two cases.
19814
19815         [BZ #12788]
19816         * locale/setlocale.c (new_composite_name): Fix test to check for
19817         identical name of all categories.
19818
19819         [BZ #12792]
19820         * libio/filedoalloc.c (local_isatty): New function.
19821         (_IO_file_doallocate): Use local_isatty.
19822         * stdio-common/perror.c (perror): In case a new stream is used
19823         forward the stream error.
19824         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19825         error flag.
19826
19827 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19828
19829         [BZ #11869]
19830         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19831         alloca.
19832         * include/alloca.h (extend_alloca_account): Define.
19833
19834         [BZ #11857]
19835         * posix/regex.h: Fix comments with documentation of user-accessible
19836         fields after compilation and describe correct free'ing of pattern
19837         after re_compile_pattern.
19838         Patch by Reuben Thomas <rrt@sc3d.org>.
19839
19840 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19841
19842         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19843         and -mno-altivec to prevent the compiler from using Altivec and/or
19844         VSX instructions when the corresponding registers are not available.
19845
19846 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19847
19848         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19849
19850 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19851
19852         * libio/freopen.c (freopen): Use __dup2, not dup2.
19853         * libio/freopen64.c (freopen64): Likewise.
19854
19855 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19856
19857         [BZ #12775]
19858         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19859         * math/Makefile (tests): Add test-powl.
19860         (CFLAGS-test-powl.c): Define.
19861         * math/test-powl.c: New file.
19862
19863 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19864
19865         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19866
19867 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19868
19869         [BZ #11837]
19870         * iconvdata/gb18030.c: Update to GB18020-2005.
19871
19872 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19873
19874         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19875         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19876         Patch by Aharon Robbins <arnold@skeeve.com>.
19877
19878         [BZ #11892]
19879         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19880         on the stack.
19881
19882         [BZ #11895]
19883         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19884         through underflows.
19885
19886         [BZ #12766]
19887         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19888         point to strings before performing equality test for error_one_per_line
19889         mode.
19890
19891         [BZ #11697]
19892         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19893
19894         [BZ #11820]
19895         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19896         (struct user_fpregs_struct): Avoid __uint*_t types.
19897
19898         [BZ #6420]
19899         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19900         symbol info.  Use it instead of calling _dl_addr locally.
19901         (lock_and_info): New function.
19902         (tr_freehook): Call lock_and_info and pass symbol info as additional
19903         parameter to tr_where.
19904         (tr_mallochook): Likewise.
19905         (tr_reallochook): Likewise.
19906         (tr_memalignhook): Likewise.
19907
19908         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19909         used and couldn't be at all thread-safe.
19910
19911 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19912
19913         * libio/freopen.c (freopen): Don't close old file descriptor
19914         before the new one is opened.  Instead dup the new file descriptor
19915         to the old one after the new stream is created.
19916         * libio/freopen64.c (freopen64): Likewise.
19917         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19918         * libio/fileops.c (_IO_new_file_close_it): Handle new
19919         _IO_FLAGS2_NOCLOSE flag.
19920         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19921         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19922         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19923         _IO_FLAGS2_NOCLOSE flag.
19924         * include/unistd.h: Add hidden_proto for dup3.
19925         Define __have_dup3.
19926         * io/dup3.c: Define hidden symbol.
19927         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19928
19929         [BZ #7101]
19930         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19931         when an incomplete long option is used.
19932         * posix/tst-getopt_long1.c: New file.
19933         * posix/Makefile (tests): Add tst-getopt_long1.
19934
19935         [BZ #10138]
19936         * scripts/config.guess: Update from autoconf-2.68.
19937         * scripts/config.sub: Likewise.
19938
19939         [BZ #10157]
19940         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19941         tests into ...
19942         (has_cpuclock): ...this.  New function.
19943         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19944         macro here based on has_cpuclock code.
19945
19946         [BZ #10149]
19947         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19948         First byte (not low byte) is now always NUL.
19949         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19950
19951         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19952         Use non-cancelable interfaces.
19953
19954         [BZ #9809]
19955         * locale/iso-639.def: Add entry for Sorani.
19956
19957         [BZ #11901]
19958         * include/stdlib.h: Move include protection to the right place.
19959         Define abort_msg_s.  Declare __abort_msg with it.
19960         * stdlib/abort.c (__abort_msg): Adjust type.
19961         * assert/assert.c (__assert_fail_base): New function.  Majority
19962         of code from __assert_fail.  Allocate memory for __abort_msg with
19963         mmap.
19964         (__assert_fail): Now call __assert_fail_base.
19965         * assert/assert-perr.c: Remove bulk of implementation.  Use
19966         __assert_fail_base.
19967         * include/assert.hL Declare __assert_fail_base.
19968         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19969         mmap.
19970         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19971
19972 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19973
19974         [BZ #11952]
19975         [BZ #12453]
19976         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19977         until all modules are registered in the DTV.
19978         * elf/Makefile: Add rules to build and run tst-tls19.
19979         * elf/tst-tls19.c: New file.
19980         * elf/tst-tls19mod1.c: New file.
19981         * elf/tst-tls19mod2.c: New file.
19982         * elf/tst-tls19mod3.c: New file.
19983         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19984
19985         [BZ #12083]
19986         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19987         correctly.
19988
19989         [BZ #12601]
19990         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19991         two-byte sequence errors.
19992         * iconvdata/Makefile (tests): Add bug-iconv8.
19993         * iconvdata/bug-iconv8.c: New file.
19994
19995         [BZ #12626]
19996         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19997         buf2 definition.
19998
19999         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20000
20001         [BZ #12432]
20002         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20003         (dummy_getcfa): New function.
20004         (init): Get _Unwind_GetCFA address, use dummy if not found.
20005         (backtrace_helper): In recursion check, also check whether CFA changes.
20006         (__backtrace): Completely initialize arg.
20007
20008         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20009         storing incomplete byte sequence in state object.  Avoid testing for
20010         guaranteed too small input if we know there is enough data available.
20011
20012 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20013
20014         * Makeconfig (+link-pie): Indent.
20015         * Rules (binaries-pie): Define if $(have-fpie) and
20016         $(build-shared).
20017         (binaries-shared): Also filter out $(binaries-pie).
20018         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20019         * nscd/Makefile (others-pie): Add nscd.
20020         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20021         ($(objpfx)nscd): Remove command override.
20022         * login/Makefile (others-pie): Add pt_chown.
20023         ($(objpfx)pt_chown): Remove command override.
20024         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20025         remove command overrides.
20026
20027 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20028
20029         * libio/tst_putwc.c: Fix error messages.
20030
20031         [BZ #12724]
20032         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20033         currently writing and seek to current position when not.
20034         * libio/Makefile (tests): Add bug-fclose1.
20035         * libio/bug-fclose1.c: New file.
20036
20037 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20038
20039         [BZ #12511]
20040         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20041         don't set DF_1_NODELETE here.
20042         (do_lookup_x): When entering new entry test for copy relocation
20043         and if necessary set DF_1_NODELETE flag.
20044         * elf/tst-unique4.cc: New file.
20045         * elf/tst-unique4.h: New file.
20046         * elf/tst-unique4lib.cc: New file.
20047         * elf/Makefile: Add rules to build and run tst-unique4.
20048         Patch by Piotr Bury <pbury@goahead.com>.
20049
20050 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20051
20052         [BZ #12052]
20053         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20054
20055         [BZ #12625]
20056         * misc/mntent_r.c (addmntent): Flush the stream after the output
20057
20058         [BZ #12393]
20059         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20060         (is_trusted_path_normalize): Skip initial colon.  Append slash
20061         to empty buffer.  Duplicate is_trusted_path code but allow
20062         constructed patch to be prefix.
20063         (is_dst): Allow $ORIGIN followed by /.
20064         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20065         Correct testing of result of is_trusted_path_normalize
20066         (decompose_rpath): Fix warning.
20067
20068 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20069
20070         [BZ #11257]
20071         * grp/initgroups.c (internal_getgrouplist): When we found the service
20072         list through the initgroups entry in nsswitch.conf do not always
20073         continue on a successful lookup.  Don't always use the
20074         __nss_group_database value if it is set.
20075         * nss/nsswitch.conf (initgroups): Change action for successful db
20076         lookup to continue for compatibility.
20077
20078 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20079
20080         [BZ #11532]
20081         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20082         and CP774 modules.
20083         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20084         and CP774 modules.
20085         * iconvdata/tst-tables.sh: Likewise.
20086         * iconvdata/cp770.c: New file.
20087         * iconvdata/cp771.c: New file.
20088         * iconvdata/cp772.c: New file.
20089         * iconvdata/cp773.c: New file.
20090         * iconvdata/cp774.c: New file.
20091         * iconvdata/testdata/CP770: New file.
20092         * iconvdata/testdata/CP770..UTF8: New file.
20093         * iconvdata/testdata/CP771: New file.
20094         * iconvdata/testdata/CP771..UTF8: New file.
20095         * iconvdata/testdata/CP772: New file.
20096         * iconvdata/testdata/CP772..UTF8: New file.
20097         * iconvdata/testdata/CP773: New file.
20098         * iconvdata/testdata/CP773..UTF8: New file.
20099         * iconvdata/testdata/CP774: New file.
20100         * iconvdata/testdata/CP774..UTF8: New file.
20101
20102         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20103         END CHARMAP line.
20104         * iconvdata/gen-8bit-gap.sh: Likewise.
20105         * iconvdata/gen-8bit.sh: Likewise.
20106
20107         * locale/iso-639.def: Add ary entry.
20108
20109         [BZ #11258]
20110         * locale/C-translit.h.in: Add U20A1 transliteration.
20111
20112         [BZ #12178]
20113         * locale/iso-639.def: Add wae entry.
20114         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20115
20116         [BZ #12545]
20117         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20118         for n.
20119
20120         [BZ #12711]
20121         * locale/C-translit.h.in: Add entry for U20B9.
20122         Patch by pravin.d.s@gmail.com.
20123
20124 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20125
20126         [BZ #12713]
20127         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20128         ENAMETOOLONG use generic getcwd.
20129         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20130         in rtld.  Use *stat64.
20131         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20132         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20133         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20134         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20135         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20136         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20137         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20138         __fstatat64 macros.
20139         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20140         * dirent/rewinddir.c: Add libc_hidden_def.
20141         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20142         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20143
20144         * include/dirent.h (__alloc_dir): Add flags parameter.
20145         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20146         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20147         __alloc_dir.
20148         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20149         from fdopendir if O_CLOEXEC is already set.
20150
20151 2011-03-15  Alan Modra  <amodra@gmail.com>
20152
20153         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20154         l_tls_firstbyte_offset non-zero.  Save padding offset in
20155         l_tls_firstbyte_offset for later use.
20156         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20157         freeing static tls block.
20158
20159 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20160
20161         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20162         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20163         being defined by the kernel headers.
20164
20165 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20166
20167         [BZ #12734]
20168         * resolv/resolv.h: Define RES_NOTLDQUERY.
20169         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20170         no-tld-query and set RES_NOTLDQUERY.
20171         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20172         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20173         modern BIND to search name as TLD unless forbidden.
20174
20175 2011-05-07  Petr Baudis  <pasky@suse.cz>
20176             Ulrich Drepper  <drepper@gmail.com>
20177
20178         [BZ #12393]
20179         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20180         (is_trusted_path): ...to here.
20181         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20182         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20183         using is_trusted_path_normalize() in setuid scripts.
20184
20185 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20186
20187         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20188         __BEGIN/__END_DECLS.
20189
20190 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20191
20192         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20193         NSS_STATUS_NOTFOUND if no record was found.
20194
20195 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20196
20197         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20198         (headers-not-in-tirpc): Remove rpc/netdb.h
20199         * resolv/netdb.h: Revert last change.
20200
20201 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20202
20203         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20204         circular dependency between libgcc.a and libc.a.
20205
20206 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20207
20208         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20209         * nis/Makefile: Don't install rpcsvc/*.
20210         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20211         instead of <rpc/types.h>.
20212         (MAXHOSTNAMELEN): Define.
20213
20214 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20215
20216         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20217
20218 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20219
20220         [BZ #12714]
20221         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20222         gethostbyname4_r when IPv6 results are possible.
20223
20224 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20225
20226         [BZ #12723]
20227         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20228         _PC_PIPE_BUF handling.
20229
20230 2011-04-30  Bruno Haible  <bruno@clisp.org>
20231
20232         [BZ #12717]
20233         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20234         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20235         to 'int'.
20236         * inet/getnameinfo.c (getnameinfo): Likewise.
20237
20238 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20239
20240         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20241         to groups setting in database lookup.
20242         * nss/nsswitch.conf: Add initgroups entry.
20243
20244 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20245
20246         [BZ #12685]
20247         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20248         mode string.
20249         Patch by Eric Blake <eblake@redhat.com>.
20250
20251 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20252
20253         * sunrpc/Makefile (need-export-routines): Add svc_run.
20254         (routines): Remove svc_run.
20255         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20256         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20257         * sunrpc/svc_run.c (svc_run): Likewise.
20258         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20259
20260 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20261
20262         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20263         problem in reallocation in last patch.
20264
20265 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20266
20267         * sunrpc/Makefile: Move inclusion of Rules.
20268
20269 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20270
20271         * nss/nss_files/files-initgroups.c: New file.
20272         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20273         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20274         _nss_files_initgroups_dyn.
20275
20276 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20277
20278         * elf/elf.h (R_ARM_IRELATIVE): Define.
20279
20280 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20281
20282         * po/ru.po: Update from translation team.
20283
20284 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20285
20286         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20287         dependencies.
20288
20289 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20290
20291         [BZ #12653]
20292         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20293         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20294         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20295         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20296         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20297
20298 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20299
20300         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20301         differing bytes.
20302         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20303         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20304         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20305
20306 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20307
20308         [BZ #12420]
20309         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20310         storing it.
20311         * stdlib/bug-getcontext.c: New file.
20312         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20313
20314 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20315
20316         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20317         instructions into .machine "z9-109".
20318         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20319         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20320
20321 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20322
20323         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20324         between environment variables and auxiliary vector.
20325
20326 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20327
20328         * Makefile: Add rules to build linkobj/libc.so.
20329         * include/libc-symbols.h: Define libc_hidden_nolink.
20330         * include/rpc/auth.h: Mark functions which are to be hidden.
20331         * include/rpc/auth_des.h: Likewise.
20332         * include/rpc/auth_unix.h: Likewise.
20333         * include/rpc/clnt.h: Likewise.
20334         * include/rpc/des_crypt.h: Likewise.
20335         * include/rpc/key_prot.h: Likewise.
20336         * include/rpc/pmap_clnt.h: Likewise.
20337         * include/rpc/pmap_prot.h: Likewise.
20338         * include/rpc/pmap_rmt.h: Likewise.
20339         * include/rpc/rpc_msg.h: Likewise.
20340         * include/rpc/svc.h: Likewise.
20341         * include/rpc/svc_auth.h: Likewise.
20342         * include/rpc/xdr.h: Likewise.
20343         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20344         * nss/Makefile: Likewise.
20345         * sunrpc/Makefile: Don't install headers.  Build library with normal
20346         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20347         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20348         for the compat linking library.  Remove use of INTDEF/INTUSE.
20349         * sunrpc/auth_none.c: Likewise.
20350         * sunrpc/auth_unix.c: Likewise.
20351         * sunrpc/authdes_prot.c: Likewise.
20352         * sunrpc/authuxprot.c: Likewise.
20353         * sunrpc/clnt_gen.c: Likewise.
20354         * sunrpc/clnt_perr.c: Likewise.
20355         * sunrpc/clnt_raw.c: Likewise.
20356         * sunrpc/clnt_simp.c: Likewise.
20357         * sunrpc/clnt_tcp.c: Likewise.
20358         * sunrpc/clnt_udp.c: Likewise.
20359         * sunrpc/clnt_unix.c: Likewise.
20360         * sunrpc/des_crypt.c: Likewise.
20361         * sunrpc/des_soft.c: Likewise.
20362         * sunrpc/get_myaddr.c: Likewise.
20363         * sunrpc/key_call.c: Likewise.
20364         * sunrpc/key_prot.c: Likewise.
20365         * sunrpc/netname.c: Likewise.
20366         * sunrpc/pm_getmaps.c: Likewise.
20367         * sunrpc/pm_getport.c: Likewise.
20368         * sunrpc/pmap_clnt.c: Likewise.
20369         * sunrpc/pmap_prot.c: Likewise.
20370         * sunrpc/pmap_prot2.c: Likewise.
20371         * sunrpc/pmap_rmt.c: Likewise.
20372         * sunrpc/publickey.c: Likewise.
20373         * sunrpc/rpc_cmsg.c: Likewise.
20374         * sunrpc/rpc_common.c: Likewise.
20375         * sunrpc/rpc_dtable.c: Likewise.
20376         * sunrpc/rpc_prot.c: Likewise.
20377         * sunrpc/rpc_thread.c: Likewise.
20378         * sunrpc/rtime.c: Likewise.
20379         * sunrpc/svc.c: Likewise.
20380         * sunrpc/svc_auth.c: Likewise.
20381         * sunrpc/svc_authux.c: Likewise.
20382         * sunrpc/svc_raw.c: Likewise.
20383         * sunrpc/svc_run.c: Likewise.
20384         * sunrpc/svc_simple.c: Likewise.
20385         * sunrpc/svc_tcp.c: Likewise.
20386         * sunrpc/svc_udp.c: Likewise.
20387         * sunrpc/svc_unix.c: Likewise.
20388         * sunrpc/svcauth_des.c: Likewise.
20389         * sunrpc/xcrypt.c: Likewise.
20390         * sunrpc/xdr.c: Likewise.
20391         * sunrpc/xdr_array.c: Likewise.
20392         * sunrpc/xdr_float.c: Likewise.
20393         * sunrpc/xdr_intXX_t.c: Likewise.
20394         * sunrpc/xdr_mem.c: Likewise.
20395         * sunrpc/xdr_rec.c: Likewise.
20396         * sunrpc/xdr_ref.c: Likewise.
20397         * sunrpc/xdr_sizeof.c: Likewise.
20398         * sunrpc/xdr_stdio.c: Likewise.
20399
20400 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20401
20402         [BZ #12650]
20403         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20404         * sysdeps/ia64/dl-tls.h: Likewise.
20405         * sysdeps/powerpc/dl-tls.h: Likewise.
20406         * sysdeps/s390/dl-tls.h: Likewise.
20407         * sysdeps/sh/dl-tls.h: Likewise.
20408         * sysdeps/sparc/dl-tls.h: Likewise.
20409         * sysdeps/x86_64/dl-tls.h: Likewise.
20410         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20411
20412 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20413
20414         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20415         rpath element also skip the following colon.
20416         (expand_dynamic_string_token): Add is_path parameter and pass
20417         down to DL_DST_REQUIRED and _dl_dst_substitute.
20418         (decompose_rpath): Call expand_dynamic_string_token with
20419         non-zero is_path.  Ignore empty rpaths.
20420         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20421         with zero is_path.
20422
20423 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20424
20425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20426         Make cancelable.
20427
20428 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20429
20430         [BZ #12655]
20431         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20432         Patch by Filipe David Manana <fdmanana@apache.org>.
20433
20434 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20435
20436         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20437         Maintain aligned stack.
20438         (CHECK_RSP): Remove unused macro.
20439
20440 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20441
20442         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20443         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20444
20445 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20446
20447         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20448
20449         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20450
20451 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20452
20453         [BZ #12518]
20454         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20455         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20456         * sysdeps/x86_64/memmove.c: New file.
20457         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20458         (memcpy): Renamed to ...
20459         (__new_memcpy): This.
20460         (memcpy): Provide GLIBC_2_14 memcpy.
20461         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20462         (memcpy): Provide GLIBC_2_2_5 memcpy.
20463
20464 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20465
20466         [BZ #12631]
20467         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20468
20469 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20470
20471         * misc/syncfs.c: New file.
20472         * misc/Makefile (routines): Add syncfs.
20473         * posix/unistd.h: Declare syncfs.
20474         * sysdeps/unix/syscalls.list: Add syncfs.
20475
20476 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20477
20478         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20479         open_by_handle_at.
20480         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20481         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20482         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20483         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20484         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20485         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20486         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20487
20488 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20489
20490         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20491         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20492         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20493         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20494         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20495         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20496         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20497
20498         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20499         sync_file_range.c with -fexceptions.
20500         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20501         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20502         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20503         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20504         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20505         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20506         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20507         sync_file_range as cancellation point
20508         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20509         now a wrapper around __call_sync_file_range with cancellation handling.
20510         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20511         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20512         function name to __call_sync_file_range.
20513         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20514         Add call_sync_file_range.
20515
20516 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20517
20518         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20519         bits/timex.h.
20520
20521 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20522
20523         * iconv/iconv.h: Fix typo in comment.
20524         * io/fcntl.h: Likewise.
20525         * libio/stdio.h: Likewise.
20526         * posix/spawn.h: Likewise.
20527         * posix/unistd.h: Likewise.
20528         * stdlib/stdlib.h: Likewise.
20529         * time/time.h: Likewise.
20530         * wcsmbs/wchar.h: Likewise.
20531
20532         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20533         open_by_handle): Add.
20534         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20535         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20536         Augment a few comments.
20537         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20538         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20539         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20540         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20541         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20542         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20543         open_by_handle.
20544
20545         * io/fcntl.h (AT_EMPTY_PATH): Define.
20546
20547 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20548
20549         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20550         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20551         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20552         to...
20553         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20554         * Versions.def: Add GLIBC_2.14.
20555         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20556         Export.
20557
20558 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20559
20560         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20561         round counter.
20562         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20563
20564 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20565
20566         [BZ #12597]
20567         * string/test-strncmp.c (do_page_test): New function.
20568         (check2): Likewise.
20569         (test_main): Call check2.
20570         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20571
20572 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20573
20574         [BZ #12587]
20575         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20576         Handle cache information in CPU leaf 4.
20577         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20578
20579 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20580
20581         [BZ #12583]
20582         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20583         character representation.
20584         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20585
20586 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20587
20588         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20589         END(__isnan) to END(__isnanf) to match function entry point/label
20590         EALIGN(__isnanf,...).
20591
20592 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20593
20594         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20595
20596 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20597
20598         [BZ #12510]
20599         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20600         copy from the symbol referenced in the relocation to initialize the
20601         used variable.
20602         Patch by Piotr Bury <pbury@goahead.com>.
20603         * elf/Makefile: Add rules to build and tst-unique3.
20604         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20605         * elf/tst-unique3.cc: New file.
20606         * elf/tst-unique3.h: New file.
20607         * elf/tst-unique3lib.cc: New file.
20608         * elf/tst-unique3lib2.cc: New file.
20609
20610         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20611
20612 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20613
20614         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20615         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20616         to _start.
20617
20618 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20619
20620         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20621         to-be-loaded object along a path to loader is ld.so.
20622
20623 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20624             Ulrich Drepper  <drepper@gmail.com>
20625
20626         * sysdeps/x86_64/memset.S: After aligning destination, code
20627         branches to different locations depending on the value of
20628         misalignment, when multiarch is enabled. Fix this.
20629
20630 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20631
20632         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20633         Set _x86_64_preferred_memory_instruction for AMD processsors.
20634         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20635         Set bit_Prefer_SSE_for_memop for AMD processors.
20636
20637 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20638
20639         * libio/fmemopen.c (fmemopen): Optimize a bit.
20640
20641 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20642
20643         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20644
20645 2011-03-03  Roland McGrath  <roland@redhat.com>
20646
20647         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20648
20649 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20650
20651         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20652         __bzero_ultra1 instead of __memset_ultra1.
20653
20654 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20655             Ulrich Drepper  <drepper@gmail.com>
20656
20657         [BZ #12509]
20658         * include/link.h (struct link_map): Add l_orig_initfini.
20659         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20660         returning unsuccessfully.
20661         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20662         close of a file loaded at startup, restore the original l_initfini
20663         list.
20664         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20665         list, store the pointer.
20666         * elf/Makefile ($(objpfx)noload-mem): New rule.
20667         (noload-ENV): Define.
20668         (tests): Add $(objpfx)noload-mem.
20669         * elf/noload.c: Include <memcheck.h>.
20670         (main): Call mtrace.  Close all opened handles.
20671
20672 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20673
20674         [BZ #12454]
20675         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20676         dependencies are missing.
20677
20678 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20679
20680         Fix __if_freereq crash: Unlike the generic version which uses free,
20681         Hurd needs munmap.
20682         * sysdeps/mach/hurd/ifreq.h: New file.
20683
20684 2011-01-27  Petr Baudis  <pasky@suse.cz>
20685             Ulrich Drepper  <drepper@gmail.com>
20686
20687         [BZ 12445]#
20688         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20689         to extend_alloca().
20690         * stdio-common/bug23.c: New file.
20691         * stdio-common/Makefile (tests): Add bug23.
20692
20693 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20694             Ulrich Drepper  <drepper@gmail.com>
20695
20696         [BZ #12489]
20697         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20698         before performing relro protection.  At old place add assertion
20699         to make sure nothing changed.
20700
20701 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20702             Glauber de Oliveira Costa  <glommer@gmail.com>
20703
20704         * elf/elf.h: Add new ARM TLS relocs.
20705
20706 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20707
20708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20709         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20710         cast from r3.
20711         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20712         'tests' variable.
20713         * sysdeps/wordsize-64/tst-writev.c: New file.
20714
20715 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20716
20717         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20718         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20719         insns in _dl_start to prevent a TOC reference before relocs are
20720         resolved.
20721
20722 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20723
20724         [BZ #12469]
20725         * Makeconfig: Remove RANLIB definition.
20726         * Makerules: Don't use RANLIB.
20727         * aclocal.m4: Remove ranlib test.
20728         * configure.in: No need to check for ranlib.
20729         * elf/rtld-Rules: Don't use RANLIB.
20730
20731 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20732
20733         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20734         protection macro.
20735         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20736         inclusion protection macro.
20737
20738         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20739         SIGRTMIN and SIGRTMAX and print information in that case only when
20740         SIGRTMIN is defined.
20741
20742 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20743
20744         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20745         arginfo fn returning -1.
20746
20747         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20748         and thousands string is zero terminated.
20749
20750 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20751
20752         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20753         sysdeps/unix/sysv/linux/bits/socket.h.
20754
20755 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20756
20757         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20758         (__CPU_COUNT): Remove old macros.
20759         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20760         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20761         (__CPU_ALLOC, __CPU_FREE): Add macros.
20762         (__sched_cpualloc, __sched_cpufree): Add declarations.
20763
20764 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20765
20766         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20767         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20768         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20769         (readdhstai): Return value of addhstaiX call.
20770         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20771         (addgrbyX): Return value returned by cache_addgr.
20772         (readdgrbyname): Return value returned by addgrbyX.
20773         (readdgrbygid): Likewise.
20774         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20775         (addpwbyX): Return value returned by cache_addpw.
20776         (readdpwbyname): Return value returned by addhstbyX.
20777         (readdpwbyuid): Likewise.
20778         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20779         (addservbyX): Return value returned by cache_addserv.
20780         (readdservbyname): Return value returned by addservbyX:
20781         (readdservbyport): Likewise.
20782         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20783         (addhstbyX): Return value returned by cache_addhst.
20784         (readdhstbyname): Return value returned by addhstbyX.
20785         (readdhstbyaddr): Likewise.
20786         (readdhstbynamev6): Likewise.
20787         (readdhstbyaddrv6): Likewise.
20788         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20789         (readdinitgroups): Return value returned by addinitgroupsX.
20790         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20791         (prune_cache): Keep track of timeout value of re-added entries.
20792         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20793         * nscd/nscd.h: Adjust prototypes of readd* functions.
20794
20795 2011-02-04  Roland McGrath  <roland@redhat.com>
20796
20797         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20798         (nis_stats): Likewise.
20799         * nis/nis_modify.c (nis_modify): Likewise.
20800         * nis/nis_remove.c (nis_remove): Likewise.
20801         * nis/nis_add.c (nis_add): Likewise.
20802
20803         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20804
20805         * posix/fnmatch_loop.c: Add some consts.
20806
20807         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20808
20809 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20810
20811         [BZ #12460]
20812         * config.make.in (config-cflags-novzeroupper): Define.
20813         * configure.in: Substitute libc_cv_cc_novzeroupper.
20814         * elf/Makefile (AVX-CFLAGS): Define.
20815         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20816         (CFLAGS-tst-auditmod4a.c): Likewise.
20817         (CFLAGS-tst-auditmod4b.c): Likewise.
20818         (CFLAGS-tst-auditmod6b.c): Likewise.
20819         (CFLAGS-tst-auditmod6c.c): Likewise.
20820         (CFLAGS-tst-auditmod7b.c): Likewise.
20821         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20822
20823 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20824
20825         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20826         function to the callback.
20827         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20828
20829 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20830
20831         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20832         of errno.
20833
20834 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20835
20836         [BZ #11724]
20837         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20838         of constructors.
20839         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20840         of destructors.
20841         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20842
20843         [BZ #11724]
20844         * elf/Makefile: Add rules to build and run new test.
20845         * elf/tst-initorder.c: New file.
20846         * elf/tst-initorder.exp: New file.
20847         * elf/tst-initordera1.c: New file.
20848         * elf/tst-initordera2.c: New file.
20849         * elf/tst-initordera3.c: New file.
20850         * elf/tst-initordera4.c: New file.
20851         * elf/tst-initorderb1.c: New file.
20852         * elf/tst-initorderb2.c: New file.
20853         * elf/tst-order-a1.c: New file.
20854         * elf/tst-order-a2.c: New file.
20855         * elf/tst-order-a3.c: New file.
20856         * elf/tst-order-a4.c: New file.
20857         * elf/tst-order-b1.c: New file.
20858         * elf/tst-order-b2.c: New file.
20859         * elf/tst-order-main.c: New file.
20860         New test case by George Gensure <werkt0@gmail.com>.
20861
20862 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20863
20864         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20865         decoding ACE if AI_CANONIDN.
20866
20867 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20868
20869         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20870
20871 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20872
20873         * version.h (RELEASE): Bump for 2.13 release.
20874         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20875
20876         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20877
20878         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20879         MADV_NOHUGEPAGE.
20880         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20881         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20882         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20883         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20884         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20885         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20886
20887         * posix/getconf.c: Update copyright year.
20888         * catgets/gencat.c: Likewise.
20889         * csu/version.c: Likewise.
20890         * debug/catchsegv.sh: Likewise.
20891         * debug/xtrace.sh: Likewise.
20892         * elf/ldconfig.c: Likewise.
20893         * elf/ldd.bash.in: Likewise.
20894         * elf/sprof.c (print_version): Likewise.
20895         * iconv/iconv_prog.c: Likewise.
20896         * iconv/iconvconfig.c: Likewise.
20897         * locale/programs/locale.c: Likewise.
20898         * locale/programs/localedef.c: Likewise.
20899         * malloc/memusage.sh: Likewise.
20900         * malloc/mtrace.pl: Likewise.
20901         * nscd/nscd.c (print_version): Likewise.
20902         * nss/getent.c: Likewise.
20903
20904         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20905         PF_CAIF, and PF_ALG.
20906         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20907
20908 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20909
20910         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20911         (modules-names): Use them.
20912         (ifunc-test-modules, ifunc-pie-tests): Define.
20913         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20914         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20915         (test-extras): Likewise.
20916         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20917         $(compile-command.c).
20918         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20919         (all-built-dso): Define.
20920         (check-textrel.out, check-execstack.out): Depend on it.
20921
20922         * configure.in: Don't override --enable-multi-arch.
20923
20924 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20925
20926         [BZ #6812]
20927         * nscd/hstcache.c (tryagain): Define.
20928         (cache_addhst): Return tryagain not notfound for temporary errors.
20929         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20930         failed.
20931
20932 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20933
20934         [BZ #10563]
20935         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20936         to make the syscall.
20937         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20938
20939         [BZ #12378]
20940         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20941         and fall back to matching as normal character if the string ends before
20942         the matching ']' is found.  This is what POSIX requires.
20943         * posix/testfnm.c: Adjust test result.
20944         * posix/globtest.sh: Adjust test result.  Add new test.
20945         * posix/tst-fnmatch.input: Likewise.
20946         * posix/tst-fnmatch2.c: Add new test.
20947
20948 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20949
20950         * elf/Makefile (check-execstack): Revert last change.  Depend on
20951         check-execstack.h.
20952         (check-execstack.h): New target.
20953         (generated): Add check-execstack.h.
20954         * elf/check-execstack.c: Include "check-execstack.h".
20955         (main): Revert last change.
20956         (handle_file): Return zero if GNU_STACK is absent and
20957         DEFAULT_STACK_PERMS doesn't include PF_X.
20958
20959 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20960
20961         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20962         in child fails because the descriptor is already closed.
20963         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20964         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20965         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20966
20967         [BZ #12397]
20968         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20969         syscall.
20970
20971         [BZ #10484]
20972         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20973         temporary buffer used to handle multi lookups locally.
20974         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20975
20976 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20977
20978         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20979         loader is ld.so.
20980
20981 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20982
20983         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20984         alignment for SSE2.
20985
20986 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20987
20988         [BZ #12394]
20989         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20990         characters.  When rounding increased number of integer digits recompute
20991         number of groups.
20992         * stdio-common/tst-grouping.c: New file.
20993         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20994
20995 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20996
20997         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20998         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20999
21000         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21001         void.
21002         * bits/select.h: Likewise.
21003
21004 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21005
21006         * po/ja.po: Update from translation team.
21007
21008 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21009
21010         [BZ #11155]
21011         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21012         implementation just like for lxstat, fxstatat, et al.
21013
21014 2010-12-27  Jim Meyering  <meyering@redhat.com>
21015
21016         [BZ #12348]
21017         * posix/regexec.c (build_trtable): Return failure indication upon
21018         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21019
21020 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21021
21022         [BZ #12201]
21023         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21024         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21025         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21026         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21027
21028         [BZ #12207]
21029         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21030
21031         [BZ #12204]
21032         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21033         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21034
21035 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21036
21037         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21038         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21039         script has SORT_BY_INIT_PRIORITY.
21040         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21041         NO_CTORS_DTORS_SECTIONS is defined.
21042         * elf/soinit.c: Likewise.
21043         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21044         NO_CTORS_DTORS_SECTIONS is defined.
21045         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21046         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21047         * sysdeps/sh/init-first.c: Likewise.
21048         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21049
21050 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21051
21052         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21053         always use the slow path.
21054
21055 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21056
21057         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21058         similar rule which adds the sysdep directories to the header search in
21059         order to pick up the correct platform stackinfo.h.
21060         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21061         perform test if it is, otherwise return successfully without testing.
21062         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21063         DEFAULT_STACK_PERMS define in stackinfo.h.
21064         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21065         defined in stackinfo.h.
21066         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21067         DEFAULT_STACK_PERMS defined in stackinfo.h.
21068         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21069         * sysdeps/ia64/stackinfo.h: Likewise.
21070         * sysdeps/s390/stackinfo.h: Likewise.
21071         * sysdeps/sh/stackinfo.h: Likewise.
21072         * sysdeps/sparc/stackinfo.h: Likewise.
21073         * sysdeps/x86_64/stackinfo.h: Likewise.
21074         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21075         PF_X for powerpc64.  Retain PF_X for powerpc32.
21076
21077 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21078
21079         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21080         accurately.
21081         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21082         GETDENTS_64BIT_ALIGNED.
21083
21084 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21085
21086         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21087
21088 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21089
21090         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21091         _GNU_SOURCE.
21092
21093         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21094         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21095         Remove __restrict.
21096         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21097         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21098
21099 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21100
21101         [BZ #11655]
21102         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21103         are initialized.
21104
21105 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21106
21107         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21108
21109 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21110
21111         * po/it.po: Update from translation team.
21112
21113 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21114
21115         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21116         unused codes.
21117
21118 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21119
21120         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21121
21122 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21123
21124         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21125         specially.
21126         (gaih_getanswer_slice): Likewise.
21127
21128 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21129
21130         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21131
21132 2010-05-31  Petr Baudis  <pasky@suse.cz>
21133
21134         [BZ #11149]
21135         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21136         silently even in the chroot mode.
21137
21138 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21139
21140         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21141         last patch a bit.  Pretty printing
21142
21143 2010-05-31  Petr Baudis <pasky@suse.cz>
21144
21145         [BZ #10085]
21146         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21147         initialization of skip_initgroups_dyn.
21148
21149 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21150
21151         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21152         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21153
21154 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21155
21156         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21157
21158 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21159
21160         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21161         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21162         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21163         ($(objpfx)tst-fnmatch-mem): New rule.
21164         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21165         * posix/tst-fnmatch.c (main): Call mtrace.
21166
21167 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21168
21169         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21170         Support Intel processor model 6 and model 0x2c.
21171
21172 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21173
21174         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21175           signed comparison.
21176
21177 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21178
21179         [BZ #12205]
21180         * string/test-strncasecmp.c (check_result): New function.
21181         (do_one_test): Use it.
21182         (check1): New function.
21183         (test_main): Use it.
21184         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21185         Support strcasecmp and strncasecmp.
21186
21187 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21188
21189         [BZ #12194]
21190         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21191         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21192
21193 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21194
21195         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21196         IFUNC support.
21197         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21198         memset-x86-64.
21199         * sysdeps/x86_64/multiarch/bzero.S: New file.
21200         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21201         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21202         * sysdeps/x86_64/multiarch/memset.S: New file.
21203         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21204         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21205         Set bit_Prefer_SSE_for_memop for Intel processors.
21206         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21207         Define.
21208         (index_Prefer_SSE_for_memop): Define.
21209         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21210
21211 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21212
21213         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21214         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21215
21216 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21217
21218         [BZ #12191]
21219         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21220         (__x86_64_raw_data_cache_size_half): Likewise.
21221         (__x86_64_raw_shared_cache_size): Likewise.
21222         (__x86_64_raw_shared_cache_size_half): Likewise.
21223
21224         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21225         (__x86_64_raw_data_cache_size_half): Likewise.
21226         (__x86_64_raw_shared_cache_size): Likewise.
21227         (__x86_64_raw_shared_cache_size_half): Likewise.
21228         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21229         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21230         and __x86_64_raw_shared_cache_size_half.  Round
21231         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21232         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21233         to multiple of 256 bytes.
21234
21235 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21236
21237         [BZ #12167]
21238         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21239         of inacessible symlinks.  Verify result of symlink before returning it.
21240         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21241         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21242
21243 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21244
21245         * math/math.h (isinf): Fix typo in comment.
21246
21247 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21248
21249         * po/da.po: Update from translation team.
21250
21251 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21252
21253         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21254         is added to the list.
21255
21256 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21257             Ulrich Drepper  <drepper@gmail.com>
21258
21259         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21260         the global list here.  Move code to...
21261         (_dl_add_to_namespace_list): ...here.  New function.
21262         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21263         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21264         * elf/dl-load.c (lose): Don't remove the element from the list.
21265         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21266         (_dl_map_object): Likewise.
21267
21268 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21269
21270         [BZ #12159]
21271         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21272         into all bytes of SSE register.
21273         Patch by Richard Li <richardpku@gmail.com>.
21274
21275 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21276
21277         [BZ #12140]
21278         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21279         perturbing.
21280
21281 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21282
21283         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21284         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21285         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21286         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21288         submachine.
21289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21290
21291 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21292
21293         * include/dlfcn.h (__RTLD_SECURE): Define.
21294         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21295         mode & __RTLD_SECURE instead.
21296         (open_path): Rename preloaded parameter to secure.
21297         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21298         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21299         * elf/dl-deps.c (openaux): Likewise.
21300         * elf/rtld.c (struct map_args): Remove is_preloaded.
21301         (map_doit): Don't use it.
21302         (dl_main): Likewise.
21303         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21304         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21305
21306 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21307
21308         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21309         (sysd-rules-targets): Remove duplicates.
21310         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21311         rtld-%.$o dependency.
21312
21313 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21314
21315         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21316         _dl_map_object do it.
21317
21318 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21319
21320         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21321         fast fma builtins, define the macros in the C99 standard.
21322         (FP_FAST_FMAF): Likewise.
21323         (FP_FAST_FMAL): Likewise.
21324         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21325
21326         * bits/mathdef.h: Update copyright year.
21327         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21328
21329 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21330
21331         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21332         builtins, define the macros in the C99 standard.
21333         (FP_FAST_FMAF): Likewise.
21334         (FP_FAST_FMAL): Likewise.
21335         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21336         multiply/add.
21337         (FP_FAST_FMAF): Likewise.
21338
21339 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21340
21341         [BZ #3268]
21342         * math/libm-test.inc (fma_test): Some new testcases.
21343         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21344         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21345         y and infinite z.  Do multiplication by C already in long double.
21346         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21347         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21348         y and infinite z.  Do bitwise or of inexact bit into u.d.
21349         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21350         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21351         * sysdeps/i386/fpu/s_fma.S: Removed.
21352         * sysdeps/i386/fpu/s_fmal.S: Removed.
21353
21354 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21355
21356         [BZ #3268]
21357         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21358         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21359         computation is not scheduled after fetestexcept.  Fix value
21360         of minimum denormal long double.
21361
21362 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21363
21364         [BZ #3268]
21365         * math/libm-test.inc (fma_test): Add some more tests.
21366         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21367         correctly.
21368
21369 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21370
21371         * scripts/data/localplt-s390-linux-gnu.data: New file.
21372         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21373
21374 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21375
21376         [BZ #3268]
21377         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21378         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21379         instead of dbl-64.
21380         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21381         inlines.
21382         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21383         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21384         if one of x and y is very large and the other is subnormal.
21385         * sysdeps/s390/fpu/s_fmaf.c: New file.
21386         * sysdeps/s390/fpu/s_fma.c: New file.
21387         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21388         * sysdeps/powerpc/fpu/s_fma.S: New file.
21389         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21390         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21391         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21392
21393 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21394
21395         [BZ #3268]
21396         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21397         fma tests.
21398         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21399         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21400         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21401         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21402         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21403         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21404         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21405
21406 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21407
21408         [BZ #12078]
21409         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21410         * posix/bug-regex31.input: Add test case.
21411
21412 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21413
21414         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21415         * posix/bug-regex31.input: New file.
21416
21417         [BZ #12078]
21418         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21419         (parse_sub_exp): Fix last change, use postorder.
21420
21421         * posix/bug-regex31.c: New file.
21422         * posix/Makefile: Add rules to build and run bug-regex31.
21423
21424         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21425
21426         [BZ #12078]
21427         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21428
21429         [BZ #12108]
21430         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21431         to have entries in sys_siglist.
21432
21433         [BZ #12093]
21434         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21435         be NULL.
21436
21437 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21438
21439         [BZ #3268]
21440         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21441         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21442         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21443         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21444         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21445         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21446         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21447         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21448         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21449         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21450         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21451         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21452         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21453         * math/ftestexcept.c (fetestexcept): Likewise.
21454         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21455         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21456         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21457         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21458         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21459         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21460         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21461
21462 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21463
21464         [BZ #12107]
21465         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21466         newline.
21467
21468 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21469
21470         * string/bug-strstr1.c: New file.
21471         * string/Makefile: Add rules to build and run bug-strstr1.
21472
21473 2010-10-05  Eric Blake  <eblake@redhat.com>
21474
21475         [BZ #12092]
21476         * string/str-two-way.h (two_way_long_needle): Always clear memory
21477         when skipping input due to the shift table.
21478
21479 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21480
21481         [BZ #12005]
21482         * malloc/mcheck.c: Handle large requests.
21483
21484         [BZ #12077]
21485         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21486         for strncmp and strncasecmp.
21487         * string/stratcliff.c: Add tests for strcmp and strncmp.
21488         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21489
21490 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21491
21492         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21493         __set_fpscr.
21494
21495 2010-09-30  Andreas Jaeger  <aj@suse.de>
21496
21497         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21498         (CGROUP_SUPER_MAGIC): Define.
21499         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21500         Handle btrfs and cgroup file systems.
21501         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21502         Likewise.
21503
21504 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21505
21506         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21507         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21508
21509 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21510
21511         [BZ #12067]
21512         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21513         trying to locate the ELF header.
21514
21515 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21516
21517         [BZ #11611]
21518         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21519         Mask out sign-bit copies when constructing f_fsid.
21520
21521 2010-09-24  Petr Baudis <pasky@suse.cz>
21522
21523         * debug/stack_chk_fail_local.c: Add missing licence exception.
21524         * debug/warning-nop.c: Likewise.
21525
21526 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21527
21528         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21529         implementing getdents64 using getdents syscall, set d_type if
21530         __ASSUME_GETDENTS32_D_TYPE.
21531
21532 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21533
21534         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21535         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21536
21537 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21538
21539         [BZ #12037]
21540         * posix/unistd.h: Undo change of feature selection for ftruncate from
21541         2010-01-11.
21542
21543 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21544
21545         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21546         detection.
21547
21548 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21549
21550         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21551         fanotify_mark.
21552         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21553
21554 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21555
21556         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21557         variables after CHECK_SP call.
21558         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21559
21560 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21561             Ulrich Drepper  <drepper@redhat.com>
21562
21563         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21564         re-relocationg ld.so.
21565         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21566         _dl_init_paths call.
21567         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21568         here anymore.
21569
21570 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21571
21572         * resolv/res_init.c (__res_vinit): Count the default server we added.
21573
21574 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21575             Ulrich Drepper  <drepper@redhat.com>
21576
21577         [BZ #11968]
21578         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21579         (____longjmp_chk): Use %ebx for saving value across system call.
21580         Add unwind info.
21581
21582 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21583
21584         * manual/Makefile: Don't mix pattern rules with normal rules.
21585
21586 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21587
21588         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21589         operation.
21590         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21591         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21592         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21593         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21594         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21595         Likewise.
21596
21597 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21598
21599         [BZ #11979]
21600         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21601         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21602
21603 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21604
21605         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21606         * sysdeps/x86_64/addmul_1.S: Likewise.
21607         * sysdeps/x86_64/lshift.S: Likewise.
21608         * sysdeps/x86_64/mul_1.S: Likewise.
21609         * sysdeps/x86_64/rshift.S: Likewise.
21610         * sysdeps/x86_64/sub_n.S: Likewise.
21611         * sysdeps/x86_64/submul_1.S: Likewise.
21612
21613 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21614
21615         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21616         Define __sched_param instead of SCHED_* and sched_param when
21617         <bits/sched.h> is included with __need_schedparam defined.
21618         * bits/sched.h [__need_schedparam]
21619         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21620         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21621         (__defined_schedparam): Define to 1.
21622         (__sched_param): New structure, identical to sched_param.
21623         (__need_schedparam): Undefine.
21624
21625 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21626
21627         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21628         (epoll_create1): Declare.
21629
21630         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21631
21632 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21633
21634         [BZ #7066]
21635         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21636         shifting retval into place.
21637
21638 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21639
21640         * nis/rpcsvc/nis.h: Update copyright notice.
21641         * nis/rpcsvc/nis.x: Likewise.
21642         * nis/rpcsvc/nis_callback.h: Likewise.
21643         * nis/rpcsvc/nis_callback.x: Likewise.
21644         * nis/rpcsvc/nis_object.x: Likewise.
21645         * nis/rpcsvc/nis_tags.h: Likewise.
21646         * nis/rpcsvc/yp.h: Likewise.
21647         * nis/rpcsvc/yp.x: Likewise.
21648         * nis/rpcsvc/ypupd.h: Likewise.
21649         * nis/yp_xdr.c: Likewise.
21650         * nis/ypupdate_xdr.c: Likewise.
21651
21652         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21653         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21654         (pmap_getport): Use __libc_rpc_getport.
21655         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21656         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21657         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21658
21659 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21660
21661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21662         fanotify_mark.
21663
21664 2010-08-27  Roland McGrath  <roland@redhat.com>
21665
21666         * sysdeps/i386/i686/multiarch/Makefile
21667         (CFLAGS-varshift.c): New variable.
21668
21669 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21670
21671         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21672         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21673
21674         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21675
21676         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21677
21678 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21679
21680         * sysdeps/x86_64/strlen.S: Unroll the loop.
21681         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21682         strlen-sse2 strlen-sse2-bsf.
21683         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21684         __strlen_no_bsf if bit_Slow_BSF is set.
21685         (__strlen_sse42): Removed.
21686         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21687         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21688
21689 2010-08-25  Roland McGrath  <roland@redhat.com>
21690
21691         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21692         * sysdeps/x86_64/multiarch/varshift.c: New file.
21693         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21694         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21695         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21696         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21697
21698 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21699
21700         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21701         strlen-sse2 strlen-sse2-bsf.
21702         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21703         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21704         (__strlen_sse2): Removed.
21705         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21706         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21707         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21708         bit_Slow_BSF for Atom.
21709         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21710         (index_Slow_BSF): Define.
21711         (HAS_SLOW_BSF): Define.
21712
21713 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21714
21715         [BZ #10851]
21716         * resolv/res_init.c (__res_vinit): When no server address at all
21717         is given default to loopback.
21718
21719 2010-08-24  Roland McGrath  <roland@redhat.com>
21720
21721         * configure.in: Remove config-name.h generation.
21722         * configure: Regenerated.
21723         * config-name.in: File removed.
21724         * scripts/config-uname.sh: New file.
21725         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21726         ($(objdir)config-name.h): New target.
21727
21728         * sunrpc/rpc_parse.h: Avoid nested comment.
21729
21730 2010-08-24  Richard Henderson  <rth@redhat.com>
21731             Ulrich Drepper  <drepper@redhat.com>
21732             H.J. Lu  <hongjiu.lu@intel.com>
21733
21734         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21735         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21736         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21737         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21738         _mm_alignr_epi8 with _mm_loadu_si128.
21739         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21740         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21741         (__m128i_shift_right): Removed.
21742         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21743         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21744         * sysdeps/x86_64/multiarch/varshift.h: New file.
21745         * sysdeps/x86_64/multiarch/varshift.S: New file.
21746
21747 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21748
21749         * configure.in: Move assembler checks to before sysdep dir checking.
21750
21751 2010-08-20  Petr Baudis  <pasky@suse.cz>
21752
21753         * LICENSES: Sync the sunrpc license.
21754
21755 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21756
21757         * sunrpc/auth_des.c: Update copyright notice once again.
21758         * sunrpc/auth_none.c: Likewise.
21759         * sunrpc/auth_unix.c: Likewise.
21760         * sunrpc/authdes_prot.c: Likewise.
21761         * sunrpc/authuxprot.c: Likewise.
21762         * sunrpc/bindrsvprt.c: Likewise.
21763         * sunrpc/clnt_gen.c: Likewise.
21764         * sunrpc/clnt_perr.c: Likewise.
21765         * sunrpc/clnt_raw.c: Likewise.
21766         * sunrpc/clnt_simp.c: Likewise.
21767         * sunrpc/clnt_tcp.c: Likewise.
21768         * sunrpc/clnt_udp.c: Likewise.
21769         * sunrpc/clnt_unix.c: Likewise.
21770         * sunrpc/des_crypt.c: Likewise.
21771         * sunrpc/des_soft.c: Likewise.
21772         * sunrpc/get_myaddr.c: Likewise.
21773         * sunrpc/getrpcport.c: Likewise.
21774         * sunrpc/key_call.c: Likewise.
21775         * sunrpc/key_prot.c: Likewise.
21776         * sunrpc/openchild.c: Likewise.
21777         * sunrpc/pm_getmaps.c: Likewise.
21778         * sunrpc/pm_getport.c: Likewise.
21779         * sunrpc/pmap_clnt.c: Likewise.
21780         * sunrpc/pmap_prot.c: Likewise.
21781         * sunrpc/pmap_prot2.c: Likewise.
21782         * sunrpc/pmap_rmt.c: Likewise.
21783         * sunrpc/rpc/auth.h: Likewise.
21784         * sunrpc/rpc/auth_unix.h: Likewise.
21785         * sunrpc/rpc/clnt.h: Likewise.
21786         * sunrpc/rpc/des_crypt.h: Likewise.
21787         * sunrpc/rpc/key_prot.h: Likewise.
21788         * sunrpc/rpc/netdb.h: Likewise.
21789         * sunrpc/rpc/pmap_clnt.h: Likewise.
21790         * sunrpc/rpc/pmap_prot.h: Likewise.
21791         * sunrpc/rpc/pmap_rmt.h: Likewise.
21792         * sunrpc/rpc/rpc.h: Likewise.
21793         * sunrpc/rpc/rpc_des.h: Likewise.
21794         * sunrpc/rpc/rpc_msg.h: Likewise.
21795         * sunrpc/rpc/svc.h: Likewise.
21796         * sunrpc/rpc/svc_auth.h: Likewise.
21797         * sunrpc/rpc/types.h: Likewise.
21798         * sunrpc/rpc/xdr.h: Likewise.
21799         * sunrpc/rpc_clntout.c: Likewise.
21800         * sunrpc/rpc_cmsg.c: Likewise.
21801         * sunrpc/rpc_common.c: Likewise.
21802         * sunrpc/rpc_cout.c: Likewise.
21803         * sunrpc/rpc_dtable.c: Likewise.
21804         * sunrpc/rpc_hout.c: Likewise.
21805         * sunrpc/rpc_main.c: Likewise.
21806         * sunrpc/rpc_parse.c: Likewise.
21807         * sunrpc/rpc_parse.h: Likewise.
21808         * sunrpc/rpc_prot.c: Likewise.
21809         * sunrpc/rpc_sample.c: Likewise.
21810         * sunrpc/rpc_scan.c: Likewise.
21811         * sunrpc/rpc_scan.h: Likewise.
21812         * sunrpc/rpc_svcout.c: Likewise.
21813         * sunrpc/rpc_tblout.c: Likewise.
21814         * sunrpc/rpc_util.c: Likewise.
21815         * sunrpc/rpc_util.h: Likewise.
21816         * sunrpc/rpcinfo.c: Likewise.
21817         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21818         * sunrpc/rpcsvc/key_prot.x: Likewise.
21819         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21820         * sunrpc/rpcsvc/mount.x: Likewise.
21821         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21822         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21823         * sunrpc/rpcsvc/rex.x: Likewise.
21824         * sunrpc/rpcsvc/rstat.x: Likewise.
21825         * sunrpc/rpcsvc/rusers.x: Likewise.
21826         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21827         * sunrpc/rpcsvc/spray.x: Likewise.
21828         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21829         * sunrpc/rtime.c: Likewise.
21830         * sunrpc/svc.c: Likewise.
21831         * sunrpc/svc_auth.c: Likewise.
21832         * sunrpc/svc_authux.c: Likewise.
21833         * sunrpc/svc_raw.c: Likewise.
21834         * sunrpc/svc_run.c: Likewise.
21835         * sunrpc/svc_simple.c: Likewise.
21836         * sunrpc/svc_tcp.c: Likewise.
21837         * sunrpc/svc_udp.c: Likewise.
21838         * sunrpc/svc_unix.c: Likewise.
21839         * sunrpc/svcauth_des.c: Likewise.
21840         * sunrpc/xcrypt.c: Likewise.
21841         * sunrpc/xdr.c: Likewise.
21842         * sunrpc/xdr_array.c: Likewise.
21843         * sunrpc/xdr_float.c: Likewise.
21844         * sunrpc/xdr_mem.c: Likewise.
21845         * sunrpc/xdr_rec.c: Likewise.
21846         * sunrpc/xdr_ref.c: Likewise.
21847         * sunrpc/xdr_sizeof.c: Likewise.
21848         * sunrpc/xdr_stdio.c: Likewise.
21849
21850         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21851         handling.
21852
21853 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21854
21855         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21856
21857 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21858
21859         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21860         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21861         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21862         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21863         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21864         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21865         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21866         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21867         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21868         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21869         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21870         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21871         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21872         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21873
21874 2010-07-26  Anton Blanchard  <anton@samba.org>
21875
21876         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21877         * malloc/arena.c (heap_trim): Likewise.
21878
21879 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21880
21881         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21882         here.  Not...
21883         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21884         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21885
21886 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21887
21888         * sysdeps/i386/elf/Makefile: New file.
21889
21890 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21891
21892         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21893         from fanotify_init.
21894         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21895         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21896
21897 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21898
21899         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21900         of strncasecmp_l.
21901         * sysdeps/multiarch/strcmp.S: Likewise.
21902
21903 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21904
21905         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21906         strncase_l-nonascii.
21907         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21908         Add strncase_l-ssse3.
21909         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21910         * sysdeps/x86_64/strcmp.S: Likewise.
21911         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21912         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21913         * sysdeps/x86_64/strncase.S: New file.
21914         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21915         * sysdeps/x86_64/strncase_l.S: New file.
21916         * string/Makefile (strop-tests): Add strncasecmp.
21917         * string/test-strncasecmp.c: New file.
21918
21919         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21920         warning.
21921
21922         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21923         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21924
21925 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21926
21927         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21928
21929 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21930
21931         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21932         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21933         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21934
21935 2010-05-01  Alan Modra  <amodra@gmail.com>
21936
21937         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21938         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21939         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21940         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21941         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21942         tidying.  Don't tail-call __sigjmp_save for static lib.
21943         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21944         save location.
21945         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21946         (CALL_MCOUNT): Add eh info, and nop after bl.
21947         (TAIL_CALL_SYSCALL_ERROR): New macro.
21948         (PSEUDO_RET): Use it.
21949         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21950         Correct save location of integer regs and cr.
21951         (_dl_profile_resolve): Correct cr save location.  Delete nops
21952         after bl when SHARED.  Reduce cfi size a little by better
21953         placement of cfi directives.
21954         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21955         make a stack frame.  Instead use parm save area as a temp.
21956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21957         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21959         Don't make a stack frame for parent, use parm save area.
21960         Increase child stack frame to 112 bytes.  Don't save unused reg,
21961         and adjust reg usage.  Set up cfi on error recovery and
21962         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21964         (__makecontext): Add dummy nop after jump to exit.
21965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21966         Use correct parm save area and cr save, reduce stack frame.
21967         Correct cfi for possible PSEUDO_RET frame setup.
21968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21969         Branch to local label emitted by PSEUDO_RET rather than
21970         __syscall_error.
21971
21972 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21973
21974         [BZ #11904]
21975         * locale/programs/locale.c (print_assignment): New function.
21976         (show_locale_vars): Use it.
21977
21978 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21979
21980         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21981         field.
21982         (struct statfs64): Likewise.
21983         (_STATFS_F_FLAGS): Define.
21984         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21985         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21986         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21987         (ST_VALID): Define locally.
21988         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21989         __statvfs_getflags, use the provided value.
21990         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21991         __ASSUME_STATFS_F_FLAGS.
21992
21993         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21994
21995         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21996         Add sys/fanotify.h.
21997         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21998         fanotify_mask for GLIBC_2.13.
21999         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22000         fanotify_init and fanotify_mark.
22001         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22002         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22003
22004         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22005         Add prlimit.
22006         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22007         prlimit64 for GLIBC_2.13.
22008         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22009         prlimit64.
22010         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22011         syscall.
22012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22013         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22014         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22015         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22016         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22017         add prlimit alias.
22018         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22019
22020         [BZ #11903]
22021         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22022         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22023
22024         * nss/Makefile: Add rules to build and run tst-nss-test1.
22025         * shlib-versions: Add entry for libnss_test1.
22026         * nss/nss_test1.c: New file.
22027         * nss/tst-nss-test1.c: New file.
22028
22029         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22030         (__nss_configure_lookup): Set appropriate entry in
22031         __nss_configure_lookup to true.
22032         * nss/nsswitch.h: Define enum with indeces of databases in
22033         databases and __nss_database_custom arrays.  Declare
22034         __nss_database_custom.
22035         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22036         to avoid using nscd when custom rules are installed.
22037         * nss/getXXbyYY_r.c: Likewise.
22038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22039
22040         * nss/nss_files/files-parse.c: Whitespace fixes.
22041
22042 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22043
22044         [BZ #11883]
22045         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22046         * posix/fnmatch_loop.c: Likewise.
22047
22048 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22049
22050         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22051         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22052         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22053         * Versions.def [GLIBC_2.13]: Add.
22054
22055 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22056
22057         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22058         Also fail if tpwd after pwuid call is NULL.
22059
22060 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22061
22062         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22063         when converting to ms.
22064
22065 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22066
22067         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22068         EOPNOTSUPP errors with ENOTTY.
22069         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22070         EOPNOTSUPP errors with ENOTTY.
22071
22072 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22073
22074         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22075         Add strcasecmp_l-ssse3.
22076         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22077         strcasecmp.
22078         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22079         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22080         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22081
22082 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22083
22084         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22085
22086         * string/Makefile (strop-tests): Add strcasecmp.
22087         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22088         strcasecmp_l-nonascii.
22089         (gen-as-const-headers): Add locale-defines.sym.
22090         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22091         * sysdeps/x86_64/strcasecmp.S: New file.
22092         * sysdeps/x86_64/strcasecmp_l.S: New file.
22093         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22094         * sysdeps/x86_64/locale-defines.sym: New file.
22095         * string/test-strcasecmp.c: New file.
22096
22097         * string/test-strcasestr.c: Test both ends of the range of characters.
22098         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22099
22100 2010-07-29  Roland McGrath  <roland@redhat.com>
22101
22102         [BZ #11856]
22103         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22104
22105 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22106
22107         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22108         for ld.so.
22109
22110 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22111
22112         * manual/memory.texi (Malloc Tunable Parameters): Document
22113         M_PERTURB.
22114
22115 2010-07-26  Roland McGrath  <roland@redhat.com>
22116
22117         [BZ #11840]
22118         * configure.in (-fgnu89-inline check): Set and substitute
22119         gnu89_inline, not libc_cv_gnu89_inline.
22120         * configure: Regenerated.
22121         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22122
22123 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22124
22125         * string/test-strnlen.c: New file.
22126         * string/Makefile (strop-tests): Add strnlen.
22127         * string/tester.c (test_strnlen): Add a few more test cases.
22128         * string/tst-strlen.c: Better error reporting.
22129
22130         * sysdeps/x86_64/strnlen.S: New file.
22131
22132 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22133
22134         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22135         lower-latency instructions.
22136
22137 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22138
22139         * string/test-strcasestr.c: New file.
22140         * string/test-strstr.c: New file.
22141         * string/Makefile (strop-tests): Add strstr and strcasestr.
22142         * string/str-two-way.h: Don't undefine MAX.
22143         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22144
22145 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22146
22147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22148         strcasestr-nonascii.
22149         (CFLAGS-strcasestr-nonascii.c): Define.
22150         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22151         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22152         Remove unused attribute.
22153
22154 2010-07-20  Roland McGrath  <roland@redhat.com>
22155
22156         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22157         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22158         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22159         like LD_HWCAP_MASK can disable hwcaps.
22160
22161 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22162
22163         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22164
22165 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22166
22167         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22168         call in strcasestr.
22169         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22170         __strcasestr_sse42_nonascii.
22171         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22172         strcasestr-nonascii.c.
22173         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22174
22175 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22176
22177         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22178         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22179         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22180         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22181
22182 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22183
22184         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22185         fcntl.
22186
22187 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22188
22189         [BZ #11577]
22190         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22191         dl_signal_cerror.
22192
22193 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22194
22195         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22196         _PC_PIPE_BUF using F_GETPIPE_SZ.
22197
22198 2010-07-05  Roland McGrath  <roland@redhat.com>
22199
22200         * manual/arith.texi (Rounding Functions): Fix rint description
22201         implicit in round description.
22202
22203 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22204
22205         * elf/Makefile: Fix linking for a few tests to make recent linker
22206         happy.
22207
22208 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22209
22210         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22211         $(common-objpfx)libc_nonshared.a.
22212
22213 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22214
22215         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22216         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22217         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22218         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22219         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22220         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22221         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22222         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22237         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22238         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22239         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22240         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22241         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22242         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22243         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22244         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22245         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22246         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22247         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22248         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22263
22264 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22265
22266         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22267         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22268         * string/memmove.c (memmove): Renamed to ...
22269         (MEMMOVE): ...this.  Default to memmove.
22270         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22271         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22272         (END_CHK): Define.
22273         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22274         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22275         mempcpy-ssse3-back memmove-ssse3-back.
22276         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22277         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22278         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22279         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22280         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22281         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22282         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22283         * sysdeps/x86_64/multiarch/memmove.c: New file.
22284         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22285         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22286         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22287         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22288         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22289         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22290         Define.
22291         (index_Fast_Copy_Backward): Define.
22292         (HAS_ARCH_FEATURE): Define.
22293         (HAS_FAST_REP_STRING): Define.
22294         (HAS_FAST_COPY_BACKWARD): Define.
22295
22296 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22297
22298         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22299         Restore proper fallback handling.
22300
22301 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22302
22303         [BZ #11701]
22304         * posix/group_member.c (__group_member): Correct checking loop.
22305
22306         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22307         OOM in getpwuid_r correctly.  Return error number when the caller
22308         should return, otherwise -1.
22309         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22310         call returning > 0 value.
22311         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22312
22313 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22314
22315         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22316         libc_nonshared.a from targets in modules-names.
22317
22318 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22319
22320         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22321         requires it.
22322
22323 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22324
22325         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22326         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22327         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22328         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22329
22330 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22331
22332         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22333
22334 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22335
22336         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22337         and F_GETPIPE_SZ.
22338         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22339         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22341         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22342         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22343         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22344
22345 2010-06-14  Roland McGrath  <roland@redhat.com>
22346
22347         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22348
22349 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22350
22351         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22352         __REDIRECT followed by __THROW.
22353         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22354         * posix/getopt.h (getopt): Likewise.
22355
22356 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22357
22358         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22359         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22360         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22361         in AT_FLAGS.
22362         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22363         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22364
22365 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22366
22367         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22368
22369 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22370
22371         [BZ #11640]
22372         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22373         Properly check family and model.
22374
22375 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22376
22377         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22378
22379 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22380
22381         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22382
22383 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22384
22385         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22386         symbol reference.
22387
22388 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22389
22390         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22391         symbol reference.
22392
22393 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22394
22395         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22396         and internal_recvmmsg.
22397         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22398         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22399         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22400         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22401
22402         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22403         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22404         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22405
22406 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22407
22408         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22409
22410 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22411
22412         POWER7 optimizations.
22413         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22414         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22415
22416 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22417
22418         * version.h: Update for 2.13 development version.
22419
22420 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22421
22422         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22423         exceptions.  Return 0.
22424
22425 2010-05-07  Roland McGrath  <roland@redhat.com>
22426
22427         * elf/ldconfig.c (main): Add a const.
22428
22429 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22430
22431         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22432         (args_options): Add no-idn option.
22433         (ahosts_keys_int): Add idn_flags to ai_flags.
22434         (parse_option): Handle 'i' option to clear idn_flags.
22435
22436         * malloc/malloc.c (_int_free): Possible race in the most recently
22437         added check.  Only act on the data if no current modification
22438         happened.
22439
22440 See ChangeLog.17 for earlier changes.