Don't generate underflow for very small values in log1pl.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-16  David S. Miller  <davem@davemloft.net>
2
3         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
4         smaller than LDBL_EPSILON/2.0L, just return xm1.
5
6 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * elf/tst-array1.c (init): Set constructor priority to 1000.
9         (fini): Set destructor priority to 1000.
10         * elf/tst-array2dep.c: Likewise.
11
12 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13
14         [BZ #11741]
15         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16         (_IO_new_file_xsputn): Also return EOF if none of the input
17         data was written when overflow failed.
18         * libio/iopadn.c (_IO_padn): Likewise.
19         * libio/iowpadn.c (_IO_wpadn): Likewise.
20         * stdio-common/tst-put-error.c: Add copyright notice.
21         (do_test): Add case for printing padded string.
22         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
23         _IO_padn returned error.
24         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
25         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
26         return EOF.
27
28 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29
30         * libio/libioP.h: Add comment note that the references to C++
31         bits are now obsolete.
32
33 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
34
35         * math/libm-test.inc (check_complex): Use asprintf.
36
37 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
38
39         * debug/pcprofiledump.c (print_version): Update copyright year.
40         * malloc/memusagestat.c (print_version): Likewise.
41
42 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
43
44         [BZ #14831]
45         * elf/Makefile (tests): Add tst-audit8.
46         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
47         ($(objpfx)tst-audit8.out): New target.
48         (tst-audit8-ENV): New variable.
49         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
50         audit if l_reloc_result is NULL.
51         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
52         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
53         * elf/tst-audit8.c: New file.
54
55 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56
57         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
58         * misc/Makefile (CFLAGS-select.c): Define.
59         * posix/Makefile (CFLAGS-pause.c): Define.
60
61 2012-11-13  David S. Miller  <davem@davemloft.net>
62
63         * crypt/Makefile: Move test targets after toplevel Rules
64         inclusion.  Grab any necessary sysdep routines when linking.
65         * crypt/md5.c (md5_process_block): Remove define, we will always
66         name it __md5_process_block.
67         (md5_finish_ctx): Update md5_process_block call.
68         (md5_stream): Likewise.
69         (md5_process_bytes): Likewise.
70         (md5_process_block): Rename to __md5_process_block and move to ...
71         * crypt/md5-block.c: ... here.
72         * crypt/sha256.c (sha256_process_block): Move to ...
73         * crypt/sha256-block.c: ... here.
74         * crypt/sha512.c (sha512_process_block): Move to ...
75         * crypt/sha512-block.c: ... here.
76         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
77         path.
78         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
79         * sysdeps/sparc/sparc64/multiarch/Makefile
80         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
81         crypt subdir.
82         (localedef-aux): Add md5 crypto assembler when in locale subdir.
83         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
84         multiarch changes.
85         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
86         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
87         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
88         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
89         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
90         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
91         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
92         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
93         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
94         file.
95         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
96         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
97         file.
98         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
99
100 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
101
102         * timezone/tzselect.ksh: Update from tzcode git revision
103         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
104         * timezone/zdump.c: Likewise.
105         * timezone/zic.c: Likewise.
106         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
107         in TZVERSION setting, not $(PKGVERSION).
108         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
109         REPORT_BUGS_TO settings.
110
111         [BZ #14838]
112         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
113         macro.
114
115 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
116
117         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
118         detection to immediately after _FP_ROUND().
119         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
120         bits are 0.
121
122 2012-11-11  David S. Miller  <davem@davemloft.net>
123
124         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
125         inttypes.h
126         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
127         __close rather than their public counterparts.
128
129 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
130
131         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
132         file.
133         [UNIX98] (sem_timedwait): Do not expect.
134         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
135         [XPG4 || UNIX98] (sockatmark): Do not expect.
136         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
137         (clock_getcpuclockid): Do not expect.
138         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
139         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
140         Do not expect.
141         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
142         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
143         [UNIX98] (vwscanf): Likewise.
144         [UNIX98] (vswscanf): Likewise.
145
146 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
147
148         * timezone/version.h: Remove file.
149         * timezone/README: Do not refer to version.h.
150         * timezone/Makefile ($(objpfx)zic.o): New dependency on
151         $(objpfx)version.h.
152         ($(objpfx)zdump.o): Likewise.
153         ($(objpfx)version.h): New target.
154
155         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
156         2012i.
157         * timezone/README: Don't mention modification to tzselect.ksh.
158         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
159         work on unmodified tzselect.ksh.  Substitute version numbers in
160         tzselect.ksh.
161
162         * Makefile (format-me): Remove.
163         (INSTALL): Adjust indentation.  Use commands directly instead of
164         using $(format-me).
165
166         * aclocal.m4 (ACX_PKGVERSION): New macro.
167         (ACX_BUGURL): Likewise.
168         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
169         (PKGVERSION): New AC_DEFINE_UNQUOTED.
170         (REPORT_BUGS_TO): Likewise.
171         * configure: Regenerated.
172         * config.h.in (PKGVERSION): New macro.
173         (REPORT_BUGS_TO): Likewise.
174         * config.make.in (PKGVERSION): New variable.
175         (PKGVERSION_TEXI): Likewise.
176         (REPORT_BUGS_TO): Likewise.
177         (REPORT_BUGS_TEXI): Likewise.
178         * Makefile (format-me): Use -I$(common-objpfx)manual.
179         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
180         ($(common-objpfx)manual/%): New target.
181         (manual/%): Remove target.
182         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
183         (print_version): Use PKGVERSION.
184         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
185         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
186         and REPORT_BUGS_TO.
187         ($(objpfx)xtrace): Likewise.
188         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
189         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
190         (print_version): Use PKGVERSION.
191         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
192         (do_version): Use PKGVERSION.
193         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
194         REPORT_BUGS_TO.
195         (common-ldd-rewrite): Likewise.
196         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
197         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
198         (print_version): Use PKGVERSION.
199         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
200         * elf/pldd.c (argp_program_bug_address): Remove variable.
201         (more_help): New function.
202         (argp): Use more_help.
203         (print_version): Use PKGVERSION.
204         * elf/sln.c (main): Use PKGVERSION.
205         (usage): Use REPORT_BUGS_TO.
206         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
207         (top level): Use PKGVERSION.
208         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
209         (print_version): Use PKGVERSION.
210         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
211         (print_version): Use PKGVERSION.
212         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
213         (print_version): Use PKGVERSION.
214         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
215         (print_version): Use PKGVERSION.
216         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
217         (print_version): Use PKGVERSION.
218         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
219         (print_version): Use PKGVERSION.
220         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
221         and BUGURL.
222         ($(objpfx)memusage): Likewise.
223         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
224         (do_version): Use PKGVERSION.
225         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
226         (print_version): Use PKGVERSION.
227         * malloc/mtrace.pl ($PACKAGE): Remove variable.
228         ($PKGVERSION): New variable.
229         ($REPORT_BUGS_TO): Likewise.
230         (usage): Use $REPORT_BUGS_TO.
231         (top level): Use $PKGVERSION.
232         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
233         ($(objpfx)pkgvers.texi): New rule.
234         ($(objpfx)stamp-pkgvers): Likewise.
235         * manual/install.texi: Include pkgvers.texi.
236         (--with-pkgversion): Document new configure option.
237         (--with-bugurl): Likewise.
238         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
239         than necessarily for this particular distribution.  Use
240         REPORT_BUGS_TO for where to report bugs.
241         * INSTALL: Regenerated.
242         * manual/libc.texinfo: Include pkgvers.texi.
243         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
244         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
245         (print_version): Use PKGVERSION.
246         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
247         (print_version): Use PKGVERSION.
248         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
249         (print_version): Use PKGVERSION.
250         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
251         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
252         macro.
253         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
254         (print_version): Use PKGVERSION.
255         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
256         (print_version): Use PKGVERSION.
257         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
258         and PKGVERSION.
259
260         * timezone/checktab.awk: Update from tzcode 2012i.
261         * timezone/ialloc.c: Likewise.
262         * timezone/private.h: Likewise.
263         * timezone/scheck.c: Likewise.
264         * timezone/tzfile.h: Likewise.
265         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
266         (TZVERSION): Hardcode tzcode version number.
267         * timezone/zdump.c: Update from tzcode 2012i.
268         * timezone/zic.c: Likewise.
269         * timezone/version.h: New file.
270         * timezone/README: Describe version.h.  Update upstream location.
271
272         [BZ #14824]
273         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
274         (mktemp): Enable declaration.
275         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
276         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
277         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
278         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
279         Likewise.
280         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
281         Likewise.
282         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
283         Likewise.
284         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
285         Likewise.
286         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
287         Likewise.
288         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
289         Likewise.
290
291         [BZ #14821]
292         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
293         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
294         for copies of such integer values.
295         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
296         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
297
298 2012-11-09  Andreas Jaeger  <aj@suse.de>
299
300         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
301         definitions and declarations that are provided by
302         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
303
304 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
305
306         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
307         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
308         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
309         definition.
310
311 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
312
313         * elf/elf.h: Update comment before AArch64 relocations.
314
315 2012-11-07  David S. Miller  <davem@davemloft.net>
316
317         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
318         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
319         (__start_context): Declare.
320         (__makecontext_ret): Delete.
321         (__makecontext): Hook up __start_context instead of
322         __makecontext_ret.
323         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
324         (sysdep_routines): Add __start_context when in stdlib.
325
326 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
327
328         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
329         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
330         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
331         hardcoded "nm".
332         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
333         (READELF): New variable.  Use it instead of hardcoded "readelf".
334
335 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
336
337         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
338         * sysdeps/x86/Makefile: Here.
339         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
340         * sysdeps/x86/tst-xmmymm.sh: This.
341
342 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
343
344         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
345         expectations.
346         [UNIX98] (pthread_barrier_t): Do not expect.
347         [UNIX98] (pthread_barrierattr_t): Likewise.
348         [UNIX98] (pthread_spinlock_t): Likewise.
349         [UNIX98] (pthread_barrier_destroy): Likewise.
350         [UNIX98] (pthread_barrier_init): Likewise.
351         [UNIX98] (pthread_barrier_wait): Likewise.
352         [UNIX98] (pthread_barrierattr_destroy): Likewise.
353         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
354         [UNIX98] (pthread_barrierattr_init): Likewise.
355         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
356         [UNIX98] (pthread_getcpuclockid): Likewise.
357         [UNIX98] (pthread_mutex_timedlock): Likewise.
358         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
359         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
360         [UNIX98] (pthread_sigmask): Likewise.
361         [UNIX98] (pthread_spin_destroy): Likewise.
362         [UNIX98] (pthread_spin_init): Likewise.
363         [UNIX98] (pthread_spin_lock): Likewise.
364         [UNIX98] (pthread_spin_trylock): Likewise.
365         [UNIX98] (pthread_spin_unlock): Likewise.
366         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
367         Do not expect.
368         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
369         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
370         [XPG3 || XPG4] (pthread_cond_t): Likewise.
371         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
372         [XPG3 || XPG4] (pthread_key_t): Likewise.
373         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
374         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
375         [XPG3 || XPG4] (pthread_once_t): Likewise.
376         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
377         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
378         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
379         [XPG3 || XPG4] (pthread_t): Likewise.
380
381         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
382         not expect.
383         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
384
385         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
386         Change function return type to int.
387
388         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
389         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
390         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
391         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
392         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
393         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
394         [!POSIX] (posix_madvise): Likewise.
395         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
396         && !UNIX98].
397         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
398         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
399         (mode_t): Likewise.
400         (posix_mem_offset): Likewise.
401         (posix_typed_mem_get_info): Likewise.
402         (posix_typed_mem_open): Likewise.
403
404         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
405         Change condition to [XOPEN2K8].
406
407         * conform/conformtest.pl: Preprocess allow-header data with -x c
408         instead of from stdin.
409         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
410         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
411         [C99-based standards] (cerfc): Likewise.
412         [C99-based standards] (cexp2): Likewise.
413         [C99-based standards] (cexpm1): Likewise.
414         [C99-based standards] (clog10): Likewise.
415         [C99-based standards] (clog1p): Likewise.
416         [C99-based standards] (clog2): Likewise.
417         [C99-based standards] (clgamma): Likewise.
418         [C99-based standards] (ctgamma): Likewise.
419         [C99-based standards] (cerff): Likewise.
420         [C99-based standards] (cerfcf): Likewise.
421         [C99-based standards] (cexp2f): Likewise.
422         [C99-based standards] (cexpm1f): Likewise.
423         [C99-based standards] (clog10f): Likewise.
424         [C99-based standards] (clog1pf): Likewise.
425         [C99-based standards] (clog2f): Likewise.
426         [C99-based standards] (clgammaf): Likewise.
427         [C99-based standards] (ctgammaf): Likewise.
428         [C99-based standards] (cerfl): Likewise.
429         [C99-based standards] (cerfcl): Likewise.
430         [C99-based standards] (cexp2l): Likewise.
431         [C99-based standards] (cexpm1l): Likewise.
432         [C99-based standards] (clog10l): Likewise.
433         [C99-based standards] (clog1pl): Likewise.
434         [C99-based standards] (clog2l): Likewise.
435         [C99-based standards] (clgammal): Likewise.
436         [C99-based standards] (ctgammal): Likewise.
437         * conform/data/inttypes.h-data [C99-based standards]: Include
438         stdint.h-data.  Remove all expectations for stdint.h contents.
439         [C99-based standards] (PRI*): Do not allow.
440         [C99-based standards] (SCN*): Likewise.
441         [C99-based standards] (*_t): Likewise.
442         [C99-based-standards] (PRId8): Expect macro.
443         [C99-based-standards] (PRIi8): Likewise.
444         [C99-based-standards] (PRIo8): Likewise.
445         [C99-based-standards] (PRIu8): Likewise.
446         [C99-based-standards] (PRIx8): Likewise.
447         [C99-based-standards] (PRIX8): Likewise.
448         [C99-based-standards] (SCNd8): Likewise.
449         [C99-based-standards] (SCNi8): Likewise.
450         [C99-based-standards] (SCNo8): Likewise.
451         [C99-based-standards] (SCNu8): Likewise.
452         [C99-based-standards] (SCNx8): Likewise.
453         [C99-based-standards] (PRIdLEAST8): Likewise.
454         [C99-based-standards] (PRIiLEAST8): Likewise.
455         [C99-based-standards] (PRIoLEAST8): Likewise.
456         [C99-based-standards] (PRIuLEAST8): Likewise.
457         [C99-based-standards] (PRIxLEAST8): Likewise.
458         [C99-based-standards] (PRIXLEAST8): Likewise.
459         [C99-based-standards] (SCNdLEAST8): Likewise.
460         [C99-based-standards] (SCNiLEAST8): Likewise.
461         [C99-based-standards] (SCNoLEAST8): Likewise.
462         [C99-based-standards] (SCNuLEAST8): Likewise.
463         [C99-based-standards] (SCNxLEAST8): Likewise.
464         [C99-based-standards] (PRIdFAST8): Likewise.
465         [C99-based-standards] (PRIiFAST8): Likewise.
466         [C99-based-standards] (PRIoFAST8): Likewise.
467         [C99-based-standards] (PRIuFAST8): Likewise.
468         [C99-based-standards] (PRIxFAST8): Likewise.
469         [C99-based-standards] (PRIXFAST8): Likewise.
470         [C99-based-standards] (SCNdFAST8): Likewise.
471         [C99-based-standards] (SCNiFAST8): Likewise.
472         [C99-based-standards] (SCNoFAST8): Likewise.
473         [C99-based-standards] (SCNuFAST8): Likewise.
474         [C99-based-standards] (SCNxFAST8): Likewise.
475         [C99-based-standards] (PRId16): Likewise.
476         [C99-based-standards] (PRIi16): Likewise.
477         [C99-based-standards] (PRIo16): Likewise.
478         [C99-based-standards] (PRIu16): Likewise.
479         [C99-based-standards] (PRIx16): Likewise.
480         [C99-based-standards] (PRIX16): Likewise.
481         [C99-based-standards] (SCNd16): Likewise.
482         [C99-based-standards] (SCNi16): Likewise.
483         [C99-based-standards] (SCNo16): Likewise.
484         [C99-based-standards] (SCNu16): Likewise.
485         [C99-based-standards] (SCNx16): Likewise.
486         [C99-based-standards] (PRIdLEAST16): Likewise.
487         [C99-based-standards] (PRIiLEAST16): Likewise.
488         [C99-based-standards] (PRIoLEAST16): Likewise.
489         [C99-based-standards] (PRIuLEAST16): Likewise.
490         [C99-based-standards] (PRIxLEAST16): Likewise.
491         [C99-based-standards] (PRIXLEAST16): Likewise.
492         [C99-based-standards] (SCNdLEAST16): Likewise.
493         [C99-based-standards] (SCNiLEAST16): Likewise.
494         [C99-based-standards] (SCNoLEAST16): Likewise.
495         [C99-based-standards] (SCNuLEAST16): Likewise.
496         [C99-based-standards] (SCNxLEAST16): Likewise.
497         [C99-based-standards] (PRIdFAST16): Likewise.
498         [C99-based-standards] (PRIiFAST16): Likewise.
499         [C99-based-standards] (PRIoFAST16): Likewise.
500         [C99-based-standards] (PRIuFAST16): Likewise.
501         [C99-based-standards] (PRIxFAST16): Likewise.
502         [C99-based-standards] (PRIXFAST16): Likewise.
503         [C99-based-standards] (SCNdFAST16): Likewise.
504         [C99-based-standards] (SCNiFAST16): Likewise.
505         [C99-based-standards] (SCNoFAST16): Likewise.
506         [C99-based-standards] (SCNuFAST16): Likewise.
507         [C99-based-standards] (SCNxFAST16): Likewise.
508         [C99-based-standards] (PRId32): Likewise.
509         [C99-based-standards] (PRIi32): Likewise.
510         [C99-based-standards] (PRIo32): Likewise.
511         [C99-based-standards] (PRIu32): Likewise.
512         [C99-based-standards] (PRIx32): Likewise.
513         [C99-based-standards] (PRIX32): Likewise.
514         [C99-based-standards] (SCNd32): Likewise.
515         [C99-based-standards] (SCNi32): Likewise.
516         [C99-based-standards] (SCNo32): Likewise.
517         [C99-based-standards] (SCNu32): Likewise.
518         [C99-based-standards] (SCNx32): Likewise.
519         [C99-based-standards] (PRIdLEAST32): Likewise.
520         [C99-based-standards] (PRIiLEAST32): Likewise.
521         [C99-based-standards] (PRIoLEAST32): Likewise.
522         [C99-based-standards] (PRIuLEAST32): Likewise.
523         [C99-based-standards] (PRIxLEAST32): Likewise.
524         [C99-based-standards] (PRIXLEAST32): Likewise.
525         [C99-based-standards] (SCNdLEAST32): Likewise.
526         [C99-based-standards] (SCNiLEAST32): Likewise.
527         [C99-based-standards] (SCNoLEAST32): Likewise.
528         [C99-based-standards] (SCNuLEAST32): Likewise.
529         [C99-based-standards] (SCNxLEAST32): Likewise.
530         [C99-based-standards] (PRIdFAST32): Likewise.
531         [C99-based-standards] (PRIiFAST32): Likewise.
532         [C99-based-standards] (PRIoFAST32): Likewise.
533         [C99-based-standards] (PRIuFAST32): Likewise.
534         [C99-based-standards] (PRIxFAST32): Likewise.
535         [C99-based-standards] (PRIXFAST32): Likewise.
536         [C99-based-standards] (SCNdFAST32): Likewise.
537         [C99-based-standards] (SCNiFAST32): Likewise.
538         [C99-based-standards] (SCNoFAST32): Likewise.
539         [C99-based-standards] (SCNuFAST32): Likewise.
540         [C99-based-standards] (SCNxFAST32): Likewise.
541         [C99-based-standards] (PRId64): Likewise.
542         [C99-based-standards] (PRIi64): Likewise.
543         [C99-based-standards] (PRIo64): Likewise.
544         [C99-based-standards] (PRIu64): Likewise.
545         [C99-based-standards] (PRIx64): Likewise.
546         [C99-based-standards] (PRIX64): Likewise.
547         [C99-based-standards] (SCNd64): Likewise.
548         [C99-based-standards] (SCNi64): Likewise.
549         [C99-based-standards] (SCNo64): Likewise.
550         [C99-based-standards] (SCNu64): Likewise.
551         [C99-based-standards] (SCNx64): Likewise.
552         [C99-based-standards] (PRIdLEAST64): Likewise.
553         [C99-based-standards] (PRIiLEAST64): Likewise.
554         [C99-based-standards] (PRIoLEAST64): Likewise.
555         [C99-based-standards] (PRIuLEAST64): Likewise.
556         [C99-based-standards] (PRIxLEAST64): Likewise.
557         [C99-based-standards] (PRIXLEAST64): Likewise.
558         [C99-based-standards] (SCNdLEAST64): Likewise.
559         [C99-based-standards] (SCNiLEAST64): Likewise.
560         [C99-based-standards] (SCNoLEAST64): Likewise.
561         [C99-based-standards] (SCNuLEAST64): Likewise.
562         [C99-based-standards] (SCNxLEAST64): Likewise.
563         [C99-based-standards] (PRIdFAST64): Likewise.
564         [C99-based-standards] (PRIiFAST64): Likewise.
565         [C99-based-standards] (PRIoFAST64): Likewise.
566         [C99-based-standards] (PRIuFAST64): Likewise.
567         [C99-based-standards] (PRIxFAST64): Likewise.
568         [C99-based-standards] (PRIXFAST64): Likewise.
569         [C99-based-standards] (SCNdFAST64): Likewise.
570         [C99-based-standards] (SCNiFAST64): Likewise.
571         [C99-based-standards] (SCNoFAST64): Likewise.
572         [C99-based-standards] (SCNuFAST64): Likewise.
573         [C99-based-standards] (SCNxFAST64): Likewise.
574         [C99-based-standards] (PRIdMAX): Likewise.
575         [C99-based-standards] (PRIiMAX): Likewise.
576         [C99-based-standards] (PRIoMAX): Likewise.
577         [C99-based-standards] (PRIuMAX): Likewise.
578         [C99-based-standards] (PRIxMAX): Likewise.
579         [C99-based-standards] (PRIXMAX): Likewise.
580         [C99-based-standards] (SCNdMAX): Likewise.
581         [C99-based-standards] (SCNiMAX): Likewise.
582         [C99-based-standards] (SCNoMAX): Likewise.
583         [C99-based-standards] (SCNuMAX): Likewise.
584         [C99-based-standards] (SCNxMAX): Likewise.
585         [C99-based-standards] (PRIdPTR): Likewise.
586         [C99-based-standards] (PRIiPTR): Likewise.
587         [C99-based-standards] (PRIoPTR): Likewise.
588         [C99-based-standards] (PRIuPTR): Likewise.
589         [C99-based-standards] (PRIxPTR): Likewise.
590         [C99-based-standards] (PRIXPTR): Likewise.
591         [C99-based-standards] (SCNdPTR): Likewise.
592         [C99-based-standards] (SCNiPTR): Likewise.
593         [C99-based-standards] (SCNoPTR): Likewise.
594         [C99-based-standards] (SCNuPTR): Likewise.
595         [C99-based-standards] (SCNxPTR): Likewise.
596         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
597         allow.
598         * conform/data/stdint.h-data: Update comments to clarify
599         requirements.
600         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
601         type.
602         [C99-based standards] (INT8_MAX): Likewise.
603         [C99-based standards] (INT16_MIN): Likewise.
604         [C99-based standards] (INT16_MAX): Likewise.
605         [C99-based standards] (INT32_MIN): Likewise.
606         [C99-based standards] (INT32_MAX): Likewise.
607         [C99-based standards] (INT64_MIN): Likewise.
608         [C99-based standards] (INT64_MAX): Likewise.
609         [C99-based standards] (UINT8_MAX): Likewise.
610         [C99-based standards] (UINT16_MAX): Likewise.
611         [C99-based standards] (UINT32_MAX): Likewise.
612         [C99-based standards] (UINT64_MAX): Likewise.
613         [C99-based standards] (INT_LEAST8_MIN): Likewise.
614         [C99-based standards] (INT_LEAST8_MAX): Likewise.
615         [C99-based standards] (INT_LEAST16_MIN): Likewise.
616         [C99-based standards] (INT_LEAST16_MAX): Likewise.
617         [C99-based standards] (INT_LEAST32_MIN): Likewise.
618         [C99-based standards] (INT_LEAST32_MAX): Likewise.
619         [C99-based standards] (INT_LEAST64_MIN): Likewise.
620         [C99-based standards] (INT_LEAST64_MAX): Likewise.
621         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
622         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
623         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
624         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
625         [C99-based standards] (INT_FAST8_MIN): Likewise.
626         [C99-based standards] (INT_FAST8_MAX): Likewise.
627         [C99-based standards] (INT_FAST16_MIN): Likewise.
628         [C99-based standards] (INT_FAST16_MAX): Likewise.
629         [C99-based standards] (INT_FAST32_MIN): Likewise.
630         [C99-based standards] (INT_FAST32_MAX): Likewise.
631         [C99-based standards] (INT_FAST64_MIN): Likewise.
632         [C99-based standards] (INT_FAST64_MAX): Likewise.
633         [C99-based standards] (UINT_FAST8_MAX): Likewise.
634         [C99-based standards] (UINT_FAST16_MAX): Likewise.
635         [C99-based standards] (UINT_FAST32_MAX): Likewise.
636         [C99-based standards] (UINT_FAST64_MAX): Likewise.
637         [C99-based standards] (INTPTR_MIN): Likewise.
638         [C99-based standards] (INTPTR_MAX): Likewise.
639         [C99-based standards] (UINTPTR_MAX): Likewise.
640         [C99-based standards] (INTMAX_MIN): Likewise.
641         [C99-based standards] (INTMAX_MAX): Likewise.
642         [C99-based standards] (UINTMAX_MAX): Likewise.
643         [C99-based standards] (PTRDIFF_MIN): Likewise.
644         [C99-based standards] (PTRDIFF_MAX): Likewise.
645         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
646         [C99-based standards] (SIZE_MAX): Likewise.
647         [C99-based standards] (WCHAR_MAX): Likewise.
648         [C99-based standards] (WINT_MAX): Likewise.
649         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
650         constraint on value.
651         [C99-based standards] (WCHAR_MIN): Likewise.
652         [C99-based standards] (WINT_MIN): Likewise.
653         [C99-based standards] (*_t): Allow.
654         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
655         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
656         Include math.h-data and complex.h-data.  Remove all expectations
657         of math.h and complex.h contents.
658         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
659         at end of line.
660         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
661         (struct tm): Expect tag.
662         [C99-based-standards] (wcstof): Expect function.
663         [C99-based-standards] (wcstold): Likewise.
664         [C99-based-standards] (wcstoll): Likewise.
665         [C99-based-standards] (wcstoull): Likewise.
666         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
667         macro-int-constant.  Specify type.
668         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
669         constraint on value.
670         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
671         Specify type.
672         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
673         Specify value.
674         [ISO C standards]: Do not allow headers.
675         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
676         wcs[abcdefghijklmnopqrstuvwxyz]*.
677         [ISO C standards] (*_t): Do not allow.
678         * conform/data/wctype.h-data [C99-based standards] (iswblank):
679         Expect function.
680         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
681         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
682         Specify type.
683         [ISO C standards]: Do not allow headers.
684         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
685         is[abcdefghijklmnopqrstuvwxyz]*.
686         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
687         to[abcdefghijklmnopqrstuvwxyz]*.
688         [ISO C standards] (*_t): Do not allow.
689         * conform/data/stdalign.h-data: New file.
690         * conform/data/stdbool.h-data: Likewise.
691         * conform/data/stdnoreturn.h-data: Likewise.
692
693 2012-11-07  Andreas Jaeger  <aj@suse.de>
694
695         [BZ #14809]
696         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
697         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
698         guards are changed.  Only define if not yet defined, #undef back
699         after including linux/sysctl.h if defined here.
700
701 2012-11-07  Roland McGrath  <roland@hack.frob.com>
702
703         [BZ #14815]
704         * manual/filesys.texi (Directory Entries): Typo fix.
705         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
706
707 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
708
709         * elf/elf.h (EM_AARCH64): New macro.
710         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
711         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
712         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
713         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
714         (R_AARCH64_TLSDESC): Likewise.
715         (NT_ARM_TLS): Likewise.
716         (NT_ARM_HW_BREAK): Likewise.
717         (NT_ARM_HW_WATCH): Likewise.
718
719 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
720
721         [BZ #14811]
722         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
723         (__ieee754_powl): Saturate nonzero exponents with absolute value
724         below 0x1p-79 to +/- 0x1p-79.
725         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
726         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
727         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
728         nonzero exponents with absolute value below 0x1p-32 to +/-
729         0x1p-32.
730         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
731         (__ieee754_powl): Saturate nonzero exponents with absolute value
732         below 0x1p-79 to +/- 0x1p-79.
733         * math/libm-test.inc (pow_test): Add more tests.
734
735 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
736
737         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
738         _dl_s390_cap_flags with kernel. Increase string length.
739         (_dl_s390_platforms): Add z196 and zEC12.
740
741 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
742
743         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
744         Change XOPEN21K to XOPEN2K.
745
746 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
747
748         * string/memmove.c: Use memcpy when possible.
749
750 2012-11-06  Andreas Jaeger  <aj@suse.de>
751
752         * po/eo.po: Update from translation team.
753
754 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
755
756         [BZ #14793]
757         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
758         exponent and small x and y exponents, scale x or y up.  Increase
759         by 2 the exponent used in scaling up.
760         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
761         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
762         * math/libm-test.inc (fma_test): Add more tests.
763         (fma_test_towardzero): Likewise.
764         (fma_test_downward): Likewise.
765         (fma_test_upward): Likewise.
766
767 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
768
769         [BZ #14805]
770         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
771         fenv_t *.
772
773         [BZ #14801]
774         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
775         namespace for names of struct fields.
776         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
777         fenv_t fields.
778         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
779         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
780
781 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
782
783         [BZ #3665]
784         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
785
786 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
787
788         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
789         PTR_DEMANGLE.
790
791         [BZ #5246]
792         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
793         PTR_DEMANGLE.
794
795 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
796
797         [BZ #14797]
798         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
799         definitely overflow as x * y not x * y + z.
800         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
801         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
802         * math/libm-test.inc (fma_test): Add more tests.
803         (fma_test_towardzero): Likewise.
804         (fma_test_downward): Likewise.
805         (fma_test_upward): Likewise.
806
807 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
808
809         [BZ #157]
810
811         * include/stub-tag.h: Remove file.
812         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
813         '#include' of it.
814         * manual/maint.texi (Porting): Don't reference it.
815         * Makerules ($(objpfx)stubs): Likewise.
816         * dirent/closedir.c: Don't include <stub-tag.h>.
817         * dirent/dirfd.c: Likewise.
818         * dirent/fdopendir.c: Likewise.
819         * dirent/getdents.c: Likewise.
820         * dirent/getdents64.c: Likewise.
821         * dirent/opendir.c: Likewise.
822         * dirent/readdir.c: Likewise.
823         * dirent/readdir64.c: Likewise.
824         * dirent/readdir64_r.c: Likewise.
825         * dirent/readdir_r.c: Likewise.
826         * dirent/rewinddir.c: Likewise.
827         * dirent/seekdir.c: Likewise.
828         * dirent/telldir.c: Likewise.
829         * gmon/profil.c: Likewise.
830         * grp/setgroups.c: Likewise.
831         * inet/if_index.c: Likewise.
832         * io/access.c: Likewise.
833         * io/chdir.c: Likewise.
834         * io/chmod.c: Likewise.
835         * io/chown.c: Likewise.
836         * io/close.c: Likewise.
837         * io/dup.c: Likewise.
838         * io/dup2.c: Likewise.
839         * io/dup3.c: Likewise.
840         * io/euidaccess.c: Likewise.
841         * io/faccessat.c: Likewise.
842         * io/fchdir.c: Likewise.
843         * io/fchmod.c: Likewise.
844         * io/fchmodat.c: Likewise.
845         * io/fchown.c: Likewise.
846         * io/fchownat.c: Likewise.
847         * io/fcntl.c: Likewise.
848         * io/flock.c: Likewise.
849         * io/fstatfs.c: Likewise.
850         * io/fstatfs64.c: Likewise.
851         * io/fstatvfs.c: Likewise.
852         * io/fstatvfs64.c: Likewise.
853         * io/futimens.c: Likewise.
854         * io/fxstat.c: Likewise.
855         * io/fxstat64.c: Likewise.
856         * io/fxstatat.c: Likewise.
857         * io/fxstatat64.c: Likewise.
858         * io/getcwd.c: Likewise.
859         * io/isatty.c: Likewise.
860         * io/lchmod.c: Likewise.
861         * io/lchown.c: Likewise.
862         * io/link.c: Likewise.
863         * io/linkat.c: Likewise.
864         * io/lseek.c: Likewise.
865         * io/lseek64.c: Likewise.
866         * io/lxstat64.c: Likewise.
867         * io/mkdir.c: Likewise.
868         * io/mkdirat.c: Likewise.
869         * io/mkfifo.c: Likewise.
870         * io/mkfifoat.c: Likewise.
871         * io/open.c: Likewise.
872         * io/open64.c: Likewise.
873         * io/openat.c: Likewise.
874         * io/openat64.c: Likewise.
875         * io/pipe.c: Likewise.
876         * io/pipe2.c: Likewise.
877         * io/poll.c: Likewise.
878         * io/posix_fadvise.c: Likewise.
879         * io/posix_fadvise64.c: Likewise.
880         * io/posix_fallocate.c: Likewise.
881         * io/posix_fallocate64.c: Likewise.
882         * io/read.c: Likewise.
883         * io/readlink.c: Likewise.
884         * io/readlinkat.c: Likewise.
885         * io/rmdir.c: Likewise.
886         * io/sendfile.c: Likewise.
887         * io/sendfile64.c: Likewise.
888         * io/statfs.c: Likewise.
889         * io/statfs64.c: Likewise.
890         * io/statvfs.c: Likewise.
891         * io/statvfs64.c: Likewise.
892         * io/symlink.c: Likewise.
893         * io/symlinkat.c: Likewise.
894         * io/ttyname.c: Likewise.
895         * io/ttyname_r.c: Likewise.
896         * io/umask.c: Likewise.
897         * io/unlink.c: Likewise.
898         * io/unlinkat.c: Likewise.
899         * io/utime.c: Likewise.
900         * io/utimensat.c: Likewise.
901         * io/write.c: Likewise.
902         * io/xmknod.c: Likewise.
903         * io/xmknodat.c: Likewise.
904         * io/xstat.c: Likewise.
905         * io/xstat64.c: Likewise.
906         * login/getpt.c: Likewise.
907         * login/grantpt.c: Likewise.
908         * login/unlockpt.c: Likewise.
909         * math/e_acoshl.c: Likewise.
910         * math/e_acosl.c: Likewise.
911         * math/e_asinl.c: Likewise.
912         * math/e_atan2l.c: Likewise.
913         * math/e_atanhl.c: Likewise.
914         * math/e_coshl.c: Likewise.
915         * math/e_expl.c: Likewise.
916         * math/e_fmodl.c: Likewise.
917         * math/e_gammal_r.c: Likewise.
918         * math/e_hypotl.c: Likewise.
919         * math/e_j0l.c: Likewise.
920         * math/e_j1l.c: Likewise.
921         * math/e_jnl.c: Likewise.
922         * math/e_lgammal_r.c: Likewise.
923         * math/e_log10l.c: Likewise.
924         * math/e_log2l.c: Likewise.
925         * math/e_logl.c: Likewise.
926         * math/e_powl.c: Likewise.
927         * math/e_rem_pio2l.c: Likewise.
928         * math/e_sinhl.c: Likewise.
929         * math/e_sqrtl.c: Likewise.
930         * math/fclrexcpt.c: Likewise.
931         * math/fedisblxcpt.c: Likewise.
932         * math/feenablxcpt.c: Likewise.
933         * math/fegetenv.c: Likewise.
934         * math/fegetexcept.c: Likewise.
935         * math/fegetround.c: Likewise.
936         * math/feholdexcpt.c: Likewise.
937         * math/fesetenv.c: Likewise.
938         * math/fesetround.c: Likewise.
939         * math/feupdateenv.c: Likewise.
940         * math/fgetexcptflg.c: Likewise.
941         * math/fraiseexcpt.c: Likewise.
942         * math/fsetexcptflg.c: Likewise.
943         * math/ftestexcept.c: Likewise.
944         * math/k_cosl.c: Likewise.
945         * math/k_rem_pio2l.c: Likewise.
946         * math/k_sinl.c: Likewise.
947         * math/k_tanl.c: Likewise.
948         * math/s_asinhl.c: Likewise.
949         * math/s_atanl.c: Likewise.
950         * math/s_cbrtl.c: Likewise.
951         * math/s_erfl.c: Likewise.
952         * math/s_expm1l.c: Likewise.
953         * math/s_log1pl.c: Likewise.
954         * math/s_tanhl.c: Likewise.
955         * misc/acct.c: Likewise.
956         * misc/brk.c: Likewise.
957         * misc/chflags.c: Likewise.
958         * misc/chroot.c: Likewise.
959         * misc/fchflags.c: Likewise.
960         * misc/fgetxattr.c: Likewise.
961         * misc/flistxattr.c: Likewise.
962         * misc/fremovexattr.c: Likewise.
963         * misc/fsetxattr.c: Likewise.
964         * misc/fsync.c: Likewise.
965         * misc/ftruncate.c: Likewise.
966         * misc/futimes.c: Likewise.
967         * misc/futimesat.c: Likewise.
968         * misc/getdomain.c: Likewise.
969         * misc/getdtsz.c: Likewise.
970         * misc/gethostid.c: Likewise.
971         * misc/gethostname.c: Likewise.
972         * misc/getloadavg.c: Likewise.
973         * misc/getpagesize.c: Likewise.
974         * misc/getsysstats.c: Likewise.
975         * misc/getxattr.c: Likewise.
976         * misc/gtty.c: Likewise.
977         * misc/ioctl.c: Likewise.
978         * misc/lgetxattr.c: Likewise.
979         * misc/listxattr.c: Likewise.
980         * misc/llistxattr.c: Likewise.
981         * misc/lremovexattr.c: Likewise.
982         * misc/lsetxattr.c: Likewise.
983         * misc/lutimes.c: Likewise.
984         * misc/madvise.c: Likewise.
985         * misc/mincore.c: Likewise.
986         * misc/mlock.c: Likewise.
987         * misc/mlockall.c: Likewise.
988         * misc/mmap.c: Likewise.
989         * misc/mprotect.c: Likewise.
990         * misc/msync.c: Likewise.
991         * misc/munlock.c: Likewise.
992         * misc/munlockall.c: Likewise.
993         * misc/munmap.c: Likewise.
994         * misc/preadv.c: Likewise.
995         * misc/preadv64.c: Likewise.
996         * misc/ptrace.c: Likewise.
997         * misc/pwritev.c: Likewise.
998         * misc/pwritev64.c: Likewise.
999         * misc/readv.c: Likewise.
1000         * misc/reboot.c: Likewise.
1001         * misc/remap_file_pages.c: Likewise.
1002         * misc/removexattr.c: Likewise.
1003         * misc/revoke.c: Likewise.
1004         * misc/select.c: Likewise.
1005         * misc/setdomain.c: Likewise.
1006         * misc/setegid.c: Likewise.
1007         * misc/seteuid.c: Likewise.
1008         * misc/sethostid.c: Likewise.
1009         * misc/sethostname.c: Likewise.
1010         * misc/setregid.c: Likewise.
1011         * misc/setreuid.c: Likewise.
1012         * misc/setxattr.c: Likewise.
1013         * misc/sstk.c: Likewise.
1014         * misc/stty.c: Likewise.
1015         * misc/swapoff.c: Likewise.
1016         * misc/swapon.c: Likewise.
1017         * misc/sync.c: Likewise.
1018         * misc/syncfs.c: Likewise.
1019         * misc/syscall.c: Likewise.
1020         * misc/truncate.c: Likewise.
1021         * misc/ualarm.c: Likewise.
1022         * misc/usleep.c: Likewise.
1023         * misc/ustat.c: Likewise.
1024         * misc/utimes.c: Likewise.
1025         * misc/vhangup.c: Likewise.
1026         * misc/writev.c: Likewise.
1027         * posix/_exit.c: Likewise.
1028         * posix/alarm.c: Likewise.
1029         * posix/execve.c: Likewise.
1030         * posix/fexecve.c: Likewise.
1031         * posix/fork.c: Likewise.
1032         * posix/fpathconf.c: Likewise.
1033         * posix/getaddrinfo.c: Likewise.
1034         * posix/getegid.c: Likewise.
1035         * posix/geteuid.c: Likewise.
1036         * posix/getgid.c: Likewise.
1037         * posix/getgroups.c: Likewise.
1038         * posix/getlogin.c: Likewise.
1039         * posix/getlogin_r.c: Likewise.
1040         * posix/getpgid.c: Likewise.
1041         * posix/getpid.c: Likewise.
1042         * posix/getppid.c: Likewise.
1043         * posix/getresgid.c: Likewise.
1044         * posix/getresuid.c: Likewise.
1045         * posix/getsid.c: Likewise.
1046         * posix/getuid.c: Likewise.
1047         * posix/glob64.c: Likewise.
1048         * posix/nanosleep.c: Likewise.
1049         * posix/pathconf.c: Likewise.
1050         * posix/pause.c: Likewise.
1051         * posix/posix_madvise.c: Likewise.
1052         * posix/pread.c: Likewise.
1053         * posix/pread64.c: Likewise.
1054         * posix/pwrite.c: Likewise.
1055         * posix/pwrite64.c: Likewise.
1056         * posix/sched_getaffinity.c: Likewise.
1057         * posix/sched_getp.c: Likewise.
1058         * posix/sched_gets.c: Likewise.
1059         * posix/sched_primax.c: Likewise.
1060         * posix/sched_primin.c: Likewise.
1061         * posix/sched_rr_gi.c: Likewise.
1062         * posix/sched_setaffinity.c: Likewise.
1063         * posix/sched_setp.c: Likewise.
1064         * posix/sched_sets.c: Likewise.
1065         * posix/sched_yield.c: Likewise.
1066         * posix/setgid.c: Likewise.
1067         * posix/setlogin.c: Likewise.
1068         * posix/setpgid.c: Likewise.
1069         * posix/setresgid.c: Likewise.
1070         * posix/setresuid.c: Likewise.
1071         * posix/setsid.c: Likewise.
1072         * posix/setuid.c: Likewise.
1073         * posix/sleep.c: Likewise.
1074         * posix/spawni.c: Likewise.
1075         * posix/sysconf.c: Likewise.
1076         * posix/times.c: Likewise.
1077         * posix/wait.c: Likewise.
1078         * posix/wait3.c: Likewise.
1079         * posix/wait4.c: Likewise.
1080         * posix/waitpid.c: Likewise.
1081         * resolv/gai_sigqueue.c: Likewise.
1082         * resource/getpriority.c: Likewise.
1083         * resource/getrlimit.c: Likewise.
1084         * resource/getrusage.c: Likewise.
1085         * resource/nice.c: Likewise.
1086         * resource/setpriority.c: Likewise.
1087         * resource/setrlimit.c: Likewise.
1088         * resource/ulimit.c: Likewise.
1089         * rt/aio_cancel.c: Likewise.
1090         * rt/aio_fsync.c: Likewise.
1091         * rt/aio_read.c: Likewise.
1092         * rt/aio_sigqueue.c: Likewise.
1093         * rt/aio_suspend.c: Likewise.
1094         * rt/aio_write.c: Likewise.
1095         * rt/clock_getres.c: Likewise.
1096         * rt/clock_gettime.c: Likewise.
1097         * rt/clock_nanosleep.c: Likewise.
1098         * rt/clock_settime.c: Likewise.
1099         * rt/lio_listio.c: Likewise.
1100         * rt/mq_close.c: Likewise.
1101         * rt/mq_getattr.c: Likewise.
1102         * rt/mq_notify.c: Likewise.
1103         * rt/mq_open.c: Likewise.
1104         * rt/mq_receive.c: Likewise.
1105         * rt/mq_send.c: Likewise.
1106         * rt/mq_setattr.c: Likewise.
1107         * rt/mq_timedreceive.c: Likewise.
1108         * rt/mq_timedsend.c: Likewise.
1109         * rt/mq_unlink.c: Likewise.
1110         * rt/shm_open.c: Likewise.
1111         * rt/shm_unlink.c: Likewise.
1112         * rt/timer_create.c: Likewise.
1113         * rt/timer_delete.c: Likewise.
1114         * rt/timer_getoverr.c: Likewise.
1115         * rt/timer_gettime.c: Likewise.
1116         * rt/timer_settime.c: Likewise.
1117         * setjmp/__longjmp.c: Likewise.
1118         * setjmp/setjmp.c: Likewise.
1119         * signal/kill.c: Likewise.
1120         * signal/killpg.c: Likewise.
1121         * signal/raise.c: Likewise.
1122         * signal/sigaction.c: Likewise.
1123         * signal/sigaltstack.c: Likewise.
1124         * signal/sigblock.c: Likewise.
1125         * signal/sigignore.c: Likewise.
1126         * signal/sigintr.c: Likewise.
1127         * signal/signal.c: Likewise.
1128         * signal/sigpause.c: Likewise.
1129         * signal/sigpending.c: Likewise.
1130         * signal/sigqueue.c: Likewise.
1131         * signal/sigreturn.c: Likewise.
1132         * signal/sigset.c: Likewise.
1133         * signal/sigsetmask.c: Likewise.
1134         * signal/sigstack.c: Likewise.
1135         * signal/sigsuspend.c: Likewise.
1136         * signal/sigtimedwait.c: Likewise.
1137         * signal/sigvec.c: Likewise.
1138         * signal/sigwait.c: Likewise.
1139         * signal/sigwaitinfo.c: Likewise.
1140         * signal/sysv_signal.c: Likewise.
1141         * socket/accept.c: Likewise.
1142         * socket/accept4.c: Likewise.
1143         * socket/bind.c: Likewise.
1144         * socket/connect.c: Likewise.
1145         * socket/getpeername.c: Likewise.
1146         * socket/getsockname.c: Likewise.
1147         * socket/getsockopt.c: Likewise.
1148         * socket/isfdtype.c: Likewise.
1149         * socket/listen.c: Likewise.
1150         * socket/recv.c: Likewise.
1151         * socket/recvfrom.c: Likewise.
1152         * socket/recvmsg.c: Likewise.
1153         * socket/send.c: Likewise.
1154         * socket/sendmsg.c: Likewise.
1155         * socket/sendto.c: Likewise.
1156         * socket/setsockopt.c: Likewise.
1157         * socket/shutdown.c: Likewise.
1158         * socket/sockatmark.c: Likewise.
1159         * socket/socket.c: Likewise.
1160         * socket/socketpair.c: Likewise.
1161         * stdio-common/ctermid.c: Likewise.
1162         * stdio-common/cuserid.c: Likewise.
1163         * stdio-common/remove.c: Likewise.
1164         * stdio-common/rename.c: Likewise.
1165         * stdio-common/renameat.c: Likewise.
1166         * stdio-common/tempname.c: Likewise.
1167         * stdlib/getcontext.c: Likewise.
1168         * stdlib/makecontext.c: Likewise.
1169         * stdlib/setcontext.c: Likewise.
1170         * stdlib/swapcontext.c: Likewise.
1171         * stdlib/system.c: Likewise.
1172         * streams/fattach.c: Likewise.
1173         * streams/fdetach.c: Likewise.
1174         * streams/getmsg.c: Likewise.
1175         * streams/getpmsg.c: Likewise.
1176         * streams/putmsg.c: Likewise.
1177         * streams/putpmsg.c: Likewise.
1178         * sysdeps/unix/bsd/getpt.c: Likewise.
1179         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1180         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1181         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1183         Likewise.
1184         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1185         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1186         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1187         * sysvipc/msgctl.c: Likewise.
1188         * sysvipc/msgget.c: Likewise.
1189         * sysvipc/msgrcv.c: Likewise.
1190         * sysvipc/msgsnd.c: Likewise.
1191         * sysvipc/semctl.c: Likewise.
1192         * sysvipc/semget.c: Likewise.
1193         * sysvipc/semop.c: Likewise.
1194         * sysvipc/semtimedop.c: Likewise.
1195         * sysvipc/shmat.c: Likewise.
1196         * sysvipc/shmctl.c: Likewise.
1197         * sysvipc/shmdt.c: Likewise.
1198         * sysvipc/shmget.c: Likewise.
1199         * termios/tcdrain.c: Likewise.
1200         * termios/tcflow.c: Likewise.
1201         * termios/tcflush.c: Likewise.
1202         * termios/tcgetattr.c: Likewise.
1203         * termios/tcgetpgrp.c: Likewise.
1204         * termios/tcsendbrk.c: Likewise.
1205         * termios/tcsetattr.c: Likewise.
1206         * termios/tcsetpgrp.c: Likewise.
1207         * time/adjtime.c: Likewise.
1208         * time/clock.c: Likewise.
1209         * time/getitimer.c: Likewise.
1210         * time/gettimeofday.c: Likewise.
1211         * time/setitimer.c: Likewise.
1212         * time/settimeofday.c: Likewise.
1213         * time/stime.c: Likewise.
1214         * time/time.c: Likewise.
1215
1216 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1217
1218         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1219         /usr/old/bin.
1220
1221         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1222         instead of spaces.
1223         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1224
1225 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1226
1227         [BZ #14796]
1228         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1229         FE_TONEAREST before applying Dekker multiplication and Knuth
1230         addition.  Clear inexact exceptions and check for exact zero
1231         results afterwards.
1232         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1233         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1234         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1235         * math/libm-test.inc (fma_test): Add more tests.
1236         (fma_test_towardzero): Likewise.
1237         (fma_test_downward): Likewise.
1238         (fma_test_upward): Likewise.
1239         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1240         function.
1241         (libc_fesetround): New macro.
1242         (libc_fesetroundf): Likewise.
1243         (libc_fesetroundl): Likewise.
1244         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1245         function.
1246         (libc_fesetround_387): Likewise.
1247         (libc_fesetroundf): New macro.
1248         (libc_fesetround): Likewise.
1249         (libc_fesetroundl): Likewise.
1250         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1251         function.
1252         (libc_fesetroundf): New macro.
1253         (libc_fesetround): Likewise.
1254         (libc_fesetroundl): Likewise.
1255         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1256         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1257         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1258         libm_hidden_ver.
1259         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1260         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1261         libm_hidden_def.
1262         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1263         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1264         libm_hidden_ver.
1265         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1266         libm_hidden_def.
1267
1268         [BZ #3439]
1269         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1270         integer constant usable in #if and use that to give value to enum
1271         constant.
1272         (FE_DIVBYZERO): Likewise.
1273         (FE_UNDERFLOW): Likewise.
1274         (FE_OVERFLOW): Likewise.
1275         (FE_INVALID): Likewise.
1276         (FE_INVALID_SNAN): Likewise.
1277         (FE_INVALID_ISI): Likewise.
1278         (FE_INVALID_IDI): Likewise.
1279         (FE_INVALID_ZDZ): Likewise.
1280         (FE_INVALID_IMZ): Likewise.
1281         (FE_INVALID_COMPARE): Likewise.
1282         (FE_INVALID_SOFTWARE): Likewise.
1283         (FE_INVALID_SQRT): Likewise.
1284         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1285         (FE_TONEAREST): Likewise.
1286         (FE_TOWARDZERO): Likewise.
1287         (FE_UPWARD): Likewise.
1288         (FE_DOWNWARD): Likewise.
1289         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1290         (FE_DIVBYZERO): Likewise.
1291         (FE_OVERFLOW): Likewise.
1292         (FE_UNDERFLOW): Likewise.
1293         (FE_INEXACT): Likewise.
1294         (FE_TONEAREST): Likewise.
1295         (FE_DOWNWARD): Likewise.
1296         (FE_UPWARD): Likewise.
1297         (FE_TOWARDZERO): Likewise.
1298         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1299         (FE_UNDERFLOW): Likewise.
1300         (FE_OVERFLOW): Likewise.
1301         (FE_DIVBYZERO): Likewise.
1302         (FE_INVALID): Likewise.
1303         (FE_TONEAREST): Likewise.
1304         (FE_TOWARDZERO): Likewise.
1305         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1306         (FE_OVERFLOW): Likewise.
1307         (FE_UNDERFLOW): Likewise.
1308         (FE_DIVBYZERO): Likewise.
1309         (FE_INEXACT): Likewise.
1310         (FE_TONEAREST): Likewise.
1311         (FE_TOWARDZERO): Likewise.
1312         (FE_UPWARD): Likewise.
1313         (FE_DOWNWARD): Likewise.
1314         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1315         (FE_DIVBYZERO): Likewise.
1316         (FE_OVERFLOW): Likewise.
1317         (FE_UNDERFLOW): Likewise.
1318         (FE_INEXACT): Likewise.
1319         (FE_TONEAREST): Likewise.
1320         (FE_DOWNWARD): Likewise.
1321         (FE_UPWARD): Likewise.
1322         (FE_TOWARDZERO): Likewise.
1323
1324 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1325
1326         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1327
1328 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1329
1330         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1331         commands.  Quote $PWD.
1332         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1333         -x" by "export".
1334         (remove_newlines): Remove.
1335
1336 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1337
1338         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1339         * stdlib/stdlib.h (atof): Moved to ...
1340         * include/bits/stdlib-float.h: Here.  New file.
1341         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1342         * stdlib/bits/stdlib-float.h: New file.
1343         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1344         -mno-sse -mno-mmx.
1345         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1346         <xmmintrin.h>.
1347
1348 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1349
1350         * conform/conformtest.pl (@headers): Add fenv.h.
1351         * conform/data/fenv.h-data: New file.
1352         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1353         include of <math/fenv.h>.
1354
1355         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1356         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1357         && !UNIX98].  Enables tests for XOPEN2K8.
1358         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1359         POSIX2008]: Likewise.
1360
1361         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1362         (struct rusage): Do not expect type or its members.
1363
1364         [BZ #3439]
1365         * math/math.h (FP_NAN): Define macro to integer constant usable in
1366         #if and use that to give value to enum constant.
1367         (FP_INFINITE): Likewise.
1368         (FP_ZERO): Likewise.
1369         (FP_SUBNORMAL): Likewise.
1370         (FP_NORMAL): Likewise.
1371
1372 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1373
1374         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1375         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1376         arguments.
1377
1378 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1379
1380         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1381         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1382         autoconf-time if not.
1383         * configure.in: Remove AC_PREREQ.
1384
1385 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1386
1387         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1388         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1389         of the internal implementation.
1390
1391 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1392
1393         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1394         except include of <misc/sys/syslog.h>.
1395
1396 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1397
1398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1399         function returns with a NULL context exit with zero.
1400
1401 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1402
1403         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1404
1405 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1406
1407         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1408         (run_program_cmd): This.
1409         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1410         (tst_langinfo): New variable.  Use it.
1411
1412 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1413
1414         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1415         floating point opcodes.
1416
1417 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1418
1419         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1420         variable.
1421
1422         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1423
1424         * sysdeps/mach/hurd/powerpc: Remove directory.
1425         * sysdeps/mach/powerpc: Likewise.
1426
1427 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1428
1429         * scripts/check-local-headers.sh: Ignore c++ headers.
1430
1431 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1432
1433         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1434         __libc_cleanup_region_start argument.
1435
1436 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1437
1438         [BZ #14784]
1439         [BZ #14785]
1440         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1441         x * y using scaling, not as x * y + z.
1442         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1443         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1444         * math/libm-test.inc (fma_test): Add more tests.
1445         (fma_test_towardzero): Likewise.
1446         (fma_test_downward): Likewise.
1447         (fma_test_upward): Likewise.
1448
1449 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1450
1451         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1452
1453 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1454
1455         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1456         New variable.
1457
1458 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1459
1460         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1461
1462 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1463
1464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1465         Fix sort order.
1466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1467         Likewise.
1468
1469 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1470
1471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1472         Fix the order of the list for glibc 2.17.
1473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1474         Likewise.
1475
1476 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1477
1478         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1479
1480 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1481
1482         [BZ #14610]
1483         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1484         for low part of x being zero before using __atanl (y).
1485         * math/libm-test.inc (atan2_test): Add another test.
1486
1487         * manual/install.texi (Configuring and compiling): Document
1488         general use of test-wrapper and test-wrapper-env.
1489         * INSTALL: Regenerated.
1490
1491         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1492         (__fma): Do not extract and scale down low bits on after-rounding
1493         systems when result rounded to normal precision would have normal
1494         exponent.
1495         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1496         (__fmal): Do not extract and scale down low bits on after-rounding
1497         systems when result rounded to normal precision would have normal
1498         exponent.
1499         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1500         (__fmal): Do not extract and scale down low bits on after-rounding
1501         systems when result rounded to normal precision would have normal
1502         exponent.
1503         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1504         macro.
1505         (fma_test): Add more tests.
1506         (fma_test_towardzero): Likewise.
1507         (fma_test_downward): Likewise.
1508         (fma_test_upward): Likewise.
1509
1510 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1511
1512         * sysdeps/i386/tininess.h: Renamed to ...
1513         * sysdeps/x86/tininess.h: This.
1514         * sysdeps/x86_64/tininess.h: Removed.
1515
1516 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1517
1518         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1519         input.  Use $(build-program-cmd).
1520         ($(objpfx)tst-array1-static.out): Likewise.
1521         ($(objpfx)tst-array2.out): Likewise.
1522         ($(objpfx)tst-array3.out): Likewise.
1523         ($(objpfx)tst-array4.out): Likewise.
1524         ($(objpfx)tst-array5.out): Likewise.
1525         ($(objpfx)tst-array5-static.out): Likewise.
1526
1527 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1528
1529         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1530         if defined.
1531
1532         * nss/nsswitch.h (nss_interface_function): Provide new
1533         macro for use with NSS functions.
1534         * grp/initgroups.c: Use new macro.
1535         * nss/getXXbyYY.c: Likewise.
1536         * nss/getXXbyYY_r.c: Likewise.
1537         * nss/getXXent.c: Likewise.
1538         * nss/getXXent_r.c: Likewise.
1539         * sysdeps/posix/getaddrinfo.c: Likewise.
1540
1541 2012-10-30  Andreas Jaeger  <aj@suse.de>
1542
1543         * po/ru.po: Update Russion translation from translation project.
1544
1545 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #14152]
1548         [BZ #14783]
1549         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1550         result and shift together with sticky bit instead of replicating
1551         round-to-nearest rounding.
1552         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1553         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1554         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1555         missing underflow exceptions.
1556         (fma_test_towardzero): Add more tests.
1557         (fma_test_downward): Likewise.
1558         (fma_test_upward): Likewise.
1559
1560         [BZ #14047]
1561         * sysdeps/generic/tininess.h: New file.
1562         * sysdeps/i386/tininess.h: Likewise.
1563         * sysdeps/sh/tininess.h: Likewise.
1564         * sysdeps/x86_64/tininess.h: Likewise.
1565         * stdlib/tst-strtod-underflow.c: Likewise.
1566         * stdlib/tst-tininess.c: Likewise.
1567         * stdlib/strtod_l.c: Include <tininess.h>.
1568         (round_and_return): Do not set errno for exact underflow cases.
1569         Force an underflow exception when setting errno for underflow.
1570         Determine underflow based on rounding to normal precision if
1571         TININESS_AFTER_ROUNDING.
1572         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1573         ERANGE for exact underflow cases.
1574         * stdlib/Makefile (tests): Add tst-tininess and
1575         tst-strtod-underflow.
1576         ($(objpfx)tst-tininess): Use $(link-libm).
1577         ($(objpfx)tst-strtod-underflow): Likewise.
1578
1579 2012-10-30  Andreas Jaeger  <aj@suse.de>
1580
1581         [BZ#14767]
1582         * elf/Makefile (tests): Remove conditional for have-initfini-array
1583         since this is now always required and the variable does not exist
1584         anymore.
1585         (tests-static): Likewise.
1586         (modules-names): Likewise.
1587
1588         * po/eo.po: Add Esperanto translation from translation project.
1589
1590         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1591         merged with constructor/destructor.
1592         (init_array): Likewise.
1593         * elf/tst-array2dep.c (fini_array): Likewise.
1594         (init_array): Likewise.
1595
1596 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1597
1598         * manual/message.texi: Delete @cartouche tags.
1599
1600 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1601
1602         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1603         EOPNOTSUPP.
1604         * sysdeps/mach/hurd/fsync.c: Likewise.
1605
1606         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1607         [_POSIX_REALTIME_SIGNALS]: Change condition to
1608         [_POSIX_REALTIME_SIGNALS > 0].
1609
1610 2012-10-27  Andreas Jaeger  <aj@suse.de>
1611
1612         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1613         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1614         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1615         [__WORDSIZE != 64]: Likewise.
1616
1617 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1618
1619         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1620         *  iconvdata/tst-tables.sh: Likewise.
1621
1622 2012-10-25  David S. Miller  <davem@davemloft.net>
1623
1624         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1625         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1626         of strtoull.
1627
1628         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1629         ifunc-impl-list.c
1630         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1631         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1632         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1633         file.
1634
1635 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1636
1637         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1638         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1639         __getdirentries.
1640
1641 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1642             Jim Blandy  <jimb@codesourcery.com>
1643
1644         * scripts/cross-test-ssh.sh: New file.
1645         * manual/install.texi (Configuring and compiling): Document use of
1646         cross-test-ssh.sh.
1647         * INSTALL: Regenerated.
1648
1649 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1650
1651         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1652         EOPNOTSUPP.
1653
1654 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1655
1656         * Makeconfig (run-program-prefix): Fix comment.
1657
1658 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1659             Jim Blandy  <jimb@codesourcery.com>
1660
1661         * Makeconfig (test-wrapper): New variable,
1662         (test-wrapper-env): Likewise.
1663         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1664         (run-built-tests): Define to yes.
1665         (run-program-prefix): Use $(test-wrapper).
1666         (built-program-cmd): Likewise.
1667         * Rules (make-test-out): Use $(test-wrapper-env) and
1668         $(host-built-program-cmd).
1669         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1670         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1671         tst-pathopt.sh.
1672         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1673         $(test-wrapper-env) to tst-rtld-load-self.sh.
1674         ($(objpfx)order2.out): Use $(test-wrapper).
1675         ($(objpfx)tst-initorder.out): Likewise.
1676         ($(objpfx)tst-initorder2.out): Likewise.
1677         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1678         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1679         (test_wrapper_env): New variable.  Use it to run ld.so.
1680         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1681         Use it to run ld.so.
1682         (test_wrapper_env): Likewise.
1683         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1684         $(test-wrapper) to run-iconv-test.sh.
1685         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1686         (ICONV): Use $test_wrapper.
1687         * posix/Makefile ($(objpfx)globtest.out): Pass
1688         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1689         globtest.sh, not $(run-program-prefix).
1690         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1691         (test_wrapper): Likewise.
1692         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1693         set together with run_via_rtld_prefix.
1694         (run_program_prefix): Define in terms of test_wrapper and
1695         run_via_rtld_prefix.
1696
1697 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1698
1699         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1700         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1701         Targets removed.
1702
1703         [BZ #14743]
1704         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1705         Declare __clock_getres, __clock_gettime, __clock_settime,
1706         __clock_nanosleep, and __clock_getcpuclockid.
1707         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1708         Remove librt_hidden_def (clock_gettime).
1709         * sysdeps/unix/clock_gettime.c: Likewise.
1710         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1711         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1712         * rt/clock_getres.c: Define __clock_getres as an alias.
1713         * sysdeps/posix/clock_getres.c: Likewise.
1714         * rt/clock_settime.c: Define __clock_settime as an alias.
1715         * sysdeps/unix/clock_settime.c: Likewise.
1716         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1717         * sysdeps/unix/clock_nanosleep.c: Likewise.
1718         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1719         * rt/clock-compat.c: New file.
1720         * rt/Makefile (librt-routines): Add clock-compat and move
1721         $(clock-routines) to ...
1722         (routines): ... here, new variable.
1723         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1724         Don't add get_clockfreq here.
1725         * rt/Versions (libc: GLIBC_2.17): New version set.
1726         Add clock_* symbols here.
1727         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1728         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1729         (GLIBC_2.17): Add clock_* symbols.
1730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1731         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1732         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1734         Likewise.
1735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1736         Likewise.
1737         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1738         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1739         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1741         * NEWS: Mention the move.
1742
1743         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1744         Use __open, __read, __close rather than their public counterparts.
1745         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1746         (__get_clockfreq_via_cpuinfo): Likewise.
1747         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1748         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1749
1750         * config.h.in (HAVE_IFUNC): New #undef.
1751         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1752         was successful.
1753         * configure: Regenerated.
1754
1755 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1756
1757         * configure.in: Move READELF check to start of file.
1758         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1759         libc_cv_asm_gnu_indirect_function in the process.
1760         * configure: Regenerated.
1761
1762 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1763
1764         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1765         send the output to /dev/null.
1766         (libc_cv_cc_with_libunwind): Likewise.
1767         (libc_cv_as_noexecstack): Likewise.
1768         * configure: Regenerate.
1769
1770 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1771
1772         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1773
1774         * posix/globtest.sh (TMPDIR): Do not set.
1775         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1776         (testout): Likewise.
1777
1778 2012-10-24  Andreas Jaeger  <aj@suse.de>
1779
1780         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1781         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1782         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1783         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1784         posix_fadvise64, posix_fallocate64.
1785
1786         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1787         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1788         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1789         Likewise.
1790         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1791         Likewise.
1792         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1793
1794         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1795         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1796         <bits/fcntl-linux.h>.
1797         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1798
1799         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1800         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1801         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1802         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1803         [__WORDSIZE != 64]: Likewise.
1804
1805 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1806
1807         * Makeconfig (run-built-tests): New variable.
1808         * Rules [$(cross-compiling) = yes]: Change condition to
1809         [$(run-built-tests) = no].
1810         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1811         to [$(run-built-tests) = yes].
1812         * elf/Makefile [$(cross-compiling) = no]: Likewise
1813         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1814         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1815         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1816         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1817         * io/Makefile [$(cross-compiling) = no]: Likewise.
1818         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1819         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1820         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1821         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1822         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1823         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1824         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1825         * string/Makefile [$(cross-compiling) = no]: Likewise.
1826
1827         * posix/Makefile ($(objpfx)globtest.out): Pass
1828         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1829         $(rtld-installed-name).
1830         * posix/globtest.sh (elf_objpfx): Remove variable.
1831         (rtld_installed_name): Likewise.
1832         (library_path): Likewise.
1833         (run_program_prefix): New variable.  Use for running globtest
1834         binary.
1835
1836 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1837             Joseph Myers  <joseph@codesourcery.com>
1838
1839         * Makeconfig (host-built-program-cmd): New variable.
1840         * elf/Makefile (tst-stackguard1-ARGS): Use
1841         $(host-built-program-cmd).
1842         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1843         (tst-spawn-ARGS): Likewise.
1844         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1845
1846 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1847             Jim Blandy  <jimb@codesourcery.com>
1848
1849         * Makeconfig (run-via-rtld-prefix): New variable.
1850         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1851         (built-program-cmd): Likewise.
1852
1853 2012-10-22  Andreas Jaeger  <aj@suse.de>
1854
1855         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1856         __O_RSYNC if it exists, otherwise to O_SYNC.
1857
1858 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1859             Joseph Myers  <joseph@codesourcery.com>
1860
1861         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1862         /dev/null.
1863         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1864         from /dev/null
1865         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1866         /dev/null.
1867
1868 2012-10-22  Andreas Jaeger  <aj@suse.de>
1869
1870         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1871         Define always.
1872         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1873
1874         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1875         bits/fcntl-linux.h.
1876
1877         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1878         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1879
1880         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1881         to __O_LARGEFILE.
1882         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1883         to __O_LARGEFILE.
1884
1885 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1886             Joseph Myers  <joseph@codesourcery.com>
1887
1888         * config.make.in (NM): New variable.
1889
1890 2012-10-21  Andreas Jaeger  <aj@suse.de>
1891
1892         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1893         definitions and declarations that are provided by
1894         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1895
1896 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1897
1898         [BZ #14683]
1899         * elf/Makefile (tests-static): Add tst-leaks1-static.
1900         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1901         ($(objpfx)tst-leaks1-static): New rule.
1902         ($(objpfx)tst-leaks1-static-mem): Likewise.
1903         (tst-leaks1-static-ENV): New macro.
1904         * elf/dl-open.c (dl_open_worker): Check the main application
1905         only if SHARED is defined.
1906         * elf/tst-leaks1-static.c: New file.
1907
1908 2012-10-20  Andreas Jaeger  <aj@suse.de>
1909
1910         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1911         generic values for Linux.
1912         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1913         and declarations that are provided by <bits/fcntl-linux.h> and
1914         include <bits/fcntl-linux.h>.
1915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1916         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1917
1918 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1919
1920         * io/fcntl.h: Move include of <bits/types.h> to the top and
1921         include it unconditionally.
1922
1923 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1924
1925         * wcsmbs/Makefile (tests-ifunc): New variable.
1926         (tests): Add $(tests-ifunc).
1927         * wcsmbs/test-wcschr-ifunc.c: New file.
1928         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1929         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1930         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1931         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1932         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1933
1934         * string/Makefile (tests-ifunc): New variable.
1935         (tests): Add $(tests-ifunc).
1936         * string/test-memccpy.c (TEST_NAME): New macro.
1937         * string/test-memchr.c (TEST_NAME): Likewise.
1938         * string/test-memcmp.c (TEST_NAME): Likewise.
1939         * string/test-memcpy.c (TEST_NAME): Likewise.
1940         * string/test-memmem.c (TEST_NAME): Likewise.
1941         * string/test-memmove.c (TEST_NAME): Likewise.
1942         * string/test-memset.c (TEST_NAME): Likewise.
1943         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1944         * string/test-stpcpy.c (TEST_NAME): Likewise.
1945         * string/test-stpncpy.c (TEST_NAME): Likewise.
1946         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1947         * string/test-strcasestr.c (TEST_NAME): Likewise.
1948         * string/test-strcat.c (TEST_NAME): Likewise.
1949         * string/test-strchr.c (TEST_NAME): Likewise.
1950         * string/test-strcmp.c(TEST_NAME): Likewise.
1951         * string/test-strcpy.c (TEST_NAME): Likewise.
1952         * string/test-strcspn.c (TEST_NAME): Likewise.
1953         * string/test-strlen.c (TEST_NAME): Likewise.
1954         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1955         * string/test-strncmp.c (TEST_NAME): Likewise.
1956         * string/test-strncpy.c (TEST_NAME): Likewise.
1957         * string/test-strnlen.c (TEST_NAME): Likewise.
1958         * string/test-strpbrk.c (TEST_NAME): Likewise.
1959         * string/test-strrchr.c (TEST_NAME): Likewise.
1960         * string/test-strspn.c (TEST_NAME): Likewise.
1961         * string/test-strstr.c (TEST_NAME): Likewise.
1962         * string/test-bcopy-ifunc.c: New file.
1963         * string/test-bzero-ifunc.c: Likewise.
1964         * string/test-memccpy-ifunc.c: Likewise.
1965         * string/test-memchr-ifunc.c: Likewise.
1966         * string/test-memcmp-ifunc.c: Likewise.
1967         * string/test-memcpy-ifunc.c: Likewise.
1968         * string/test-memmem-ifunc.c: Likewise.
1969         * string/test-memmove-ifunc.c: Likewise.
1970         * string/test-mempcpy-ifunc.c: Likewise.
1971         * string/test-memset-ifunc.c: Likewise.
1972         * string/test-rawmemchr-ifunc.c: Likewise.
1973         * string/test-stpcpy-ifunc.c: Likewise.
1974         * string/test-stpncpy-ifunc.c: Likewise.
1975         * string/test-strcasecmp-ifunc.c: Likewise.
1976         * string/test-strcasestr-ifunc.c: Likewise.
1977         * string/test-strcat-ifunc.c: Likewise.
1978         * string/test-strchr-ifunc.c: Likewise.
1979         * string/test-strchrnul-ifunc.c: Likewise.
1980         * string/test-strcmp-ifunc.c: Likewise.
1981         * string/test-strcpy-ifunc.c: Likewise.
1982         * string/test-strcspn-ifunc.c: Likewise.
1983         * string/test-strlen-ifunc.c: Likewise.
1984         * string/test-strncasecmp-ifunc.c: Likewise.
1985         * string/test-strncat-ifunc.c: Likewise.
1986         * string/test-strncmp-ifunc.c: Likewise.
1987         * string/test-strncpy-ifunc.c: Likewise.
1988         * string/test-strnlen-ifunc.c: Likewise.
1989         * string/test-strpbrk-ifunc.c: Likewise.
1990         * string/test-strrchr-ifunc.c: Likewise.
1991         * string/test-strspn-ifunc.c: Likewise.
1992         * string/test-strstr-ifunc.c: Likewise.
1993
1994         * debug/Makefile (tests-ifunc): New variable.
1995         (tests): Add $(tests-ifunc).
1996         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1997         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1998         * debug/test-stpcpy_chk-ifunc.c: New file.
1999         * debug/test-strcpy_chk-ifunc.c: Likewise.
2000
2001 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2002
2003         [BZ #13601]
2004         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2005         header is not read in.
2006
2007 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2010         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2011         directly.  Pass built executable to script as
2012         $(built-program-cmd).
2013         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2014         $testprogram without using LD_LIBRARY_PATH and $ldso.
2015
2016         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2017         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2018         $(rtld-installed-name).
2019         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2020         (rtld_installed_name): Likewise.
2021         (library_path): Likewise.
2022         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2023         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2024         $(run-program-prefix) to tst-tables.sh.
2025         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2026         it to run tst-table-from and tst-table-to.
2027         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2028         Pass it to tst-table.sh.
2029         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2030         $(run-program-prefix) to tst-gettext.sh.
2031         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2032         tst-translit.sh.
2033         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2034         tst-gettext2.sh.
2035         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2036         to run tst-gettext.
2037         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2038         to run tst-gettext2.
2039         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2040         to run tst-translit.
2041         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2042         $(run-program-prefix) to tst-mtrace.sh.
2043         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2044         to run tst-mtrace.
2045         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2046         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2047         $(rtld-installed-name).
2048         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2049         (rtld_installed_name): Likewise.
2050         (run_program_prefix): New variable.  Use it to run wordexp-test.
2051
2052         * Makeconfig (ARCH): Remove all definitions.
2053         (machine): Likewise.
2054         [ARCH]: Remove conditional code.
2055         [!objdir]: Give error.
2056         [!objdir] (objpfx): Remove.
2057         [!objdir] (common-objpfx): Likewise.
2058         [!objdir] (common-objdir): Likewise.
2059         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2060         AC_CONFIG_FILES call.
2061         * configure: Regenerated.
2062
2063         [BZ #13888]
2064         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2065         or TMPDIR.
2066         (testout): Likewise.
2067
2068         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2069         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2070         $(rtld-installed-name).
2071         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2072         (rtld_installed_name): Likwise.
2073         (runit): Remove function.
2074         (run_getconf): New variable,  Use it for running getconf binary.
2075
2076 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2077
2078         [BZ #14716]
2079         * string/test-memmem.c (check_result): New function.
2080         (do_one_test): Use it.
2081         (check1): New function.
2082         (test_main): Use it.
2083
2084 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2085
2086         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2087
2088 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2089
2090         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2091         (_G_LSEEK64): Likewise.
2092         (_G_MMAP64): Likewise.
2093         (_G_FSTAT64): Likewise.
2094         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2095         (_G_LSEEK64): Likewise.
2096         (_G_MMAP64): Likewise.
2097         (_G_FSTAT64): Likewise.
2098         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2099         unconditional.  Call __mmap64 directly.
2100         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2101         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2102         __lseek64 directly.
2103         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2104         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2105         __mmap64 directly.
2106         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2107         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2108         __lseek64 directly.
2109         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2110         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2111         __lseek64 directly.
2112         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2113         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2114         __lseek64 directly.
2115         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2116         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2117         __fxstat64 directly.
2118         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2119         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2120         unconditional.
2121         (freopen64) [!_G_OPEN64]: Remove conditional code.
2122         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2123         unconditional.
2124         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2125         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2126         unconditional.
2127         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2128         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2129         unconditional.
2130         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2131         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2132         unconditional.
2133         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2134         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2135         unconditional.
2136         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2137         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2138         unconditional.
2139         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2140         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2141         unconditional.
2142         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2143
2144 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2145
2146         [BZ #12140]
2147         * manual/memory.texi (Malloc Tunable Parameters): Add note
2148         about free list pointers overwriting some perturb bytes.
2149         Wording suggested by Roland McGrath.
2150
2151 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2152
2153         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2154         (lgamma_test): Likewise.
2155         (tgamma_test): Likewise.
2156
2157 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2158
2159         [BZ #14700]
2160         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2161         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2162
2163 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2164
2165         * NEWS: Mention BZ #14716.
2166         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2167         when removing AVAILABLE1_USES_J macro.
2168
2169 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2170
2171         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2172         (__bswap_64): __uint64_t for unsigned 64-bit int.
2173
2174 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2175
2176         * include/string.h (memmem): Declare libc hidden alias.
2177         * string/memmem.c (memmem): Define libc hidden alias.
2178         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2179         __read, __close instead of open, read, close.
2180
2181 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2182
2183         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2184         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2185         global and hidden.
2186         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2187         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2188         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2189         Likewise.
2190         (__rawmemchr_sse2): Likewise.
2191         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2192         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2193         (__strchr_sse2): Likewise.
2194         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2195         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2196         (__strcasecmp_sse2): Likewise.
2197         (__strncasecmp_sse2): Likewise.
2198         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2199         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2200         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2201         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2202         (__strrchr_sse2): Likewise.
2203         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2204         ifunc-impl-list.c.
2205         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2206         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2207         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2208         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2209         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2210         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2211         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2212         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2213         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2214         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2215         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2216         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2217         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2218         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2219         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2220         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2221         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2222         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2223         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2224         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2225         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2226         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2227         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2228         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2229         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2230         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2231         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2232         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2233         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2234         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2235
2236         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2237         global and hidden.
2238         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2239         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2240         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2241         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2242         Likewise.
2243         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2244         Likewise.
2245         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2246         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2247         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2248         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2249         ifunc-impl-list.c.
2250         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2251         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2252         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2253         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2254         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2255         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2256         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2257         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2258         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2259         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2260         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2261         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2262         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2263         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2264         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2265         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2266         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2267         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2268         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2269         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2270         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2271         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2272         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2273         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2274         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2275         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2276         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2277         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2278         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2279         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2280         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2281         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2282         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2283         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2284         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2285         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2286         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2287         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2288         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2289         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2290         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2291
2292         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2293         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2294         * include/ifunc-impl-list.h: New file.
2295         * misc/ifunc-impl-list.c: Likewise.
2296         * misc/Makefile (routines): Add ifunc-impl-list.
2297         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2298         * string/test-string.h: Include <ifunc-impl-list.h>.
2299         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2300         impl_array): New variables.
2301         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2302         are defined.
2303         (test_init): Call __libc_ifunc_impl_list to initialize
2304         func_list if TEST_IFUNC and TEST_NAME are defined.
2305
2306         * string/Makefile (strop-tests): Add bcopy and bzero.
2307         * string/test-bcopy.c: New file.
2308         * string/test-bzero.c: Likewise.
2309         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2310         defined.
2311         * string/test-memset.c: Support bzero test if TEST_BZERO is
2312         defined.
2313         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2314         __libc_memmove.
2315         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2316         __libc_memset.
2317         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2318         of memset.
2319
2320 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2321
2322         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2323         * configure: Regenerated.
2324
2325         * Makeconfig (+link-static-before-libc): Don't include
2326         $(link-static-libc).
2327
2328         * libio/libio.h (_IO_pos_t): Remove.
2329
2330 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2331
2332         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2333         McGrath.
2334
2335 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2336
2337         * crypt/crypt-entry.c: Include fips-private.h.
2338         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2339         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2340         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2341         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2342
2343 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2344
2345         * crypt/crypt-private.h: Include stdbool.h.
2346         (_ufc_setup_salt_r): Return bool.
2347         * crypt/crypt-entry.c: Include errno.h.
2348         (__crypt_r): Return NULL with EINVAL for bad salt.
2349         * crypt/crypt_util.c (bad_for_salt): New.
2350         (_ufc_setup_salt_r): Check that salt is long enough and within
2351         the specified alphabet.
2352         * crypt/badsalttest.c: New file.
2353         * crypt/Makefile (tests): Add it.
2354         ($(objpfx)badsalttest): New.
2355
2356 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2357
2358         * NEWS: Add entry for BZ #14602.
2359
2360 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2361
2362         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2363         type-generic.
2364         * math/libm-test.inc: Update comment listing what functions and
2365         macros are tested.
2366         (isgreater_test): New function.
2367         (isgreaterequal_test): Likewise.
2368         (isless_test): Likewise.
2369         (islessequal_test): Likewise.
2370         (islessgreater_test): Likewise.
2371         (isunordered_test): Likewise.
2372         (main): Call the new functions.
2373
2374 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2375
2376         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2377         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2378         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2379         * sysdeps/i386/configure: Regenerated.
2380         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2381         * sysdeps/mach/configure: Regenerated.
2382         * sysdeps/mach/hurd/configure: Regenerated.
2383         * sysdeps/powerpc/configure: Regenerated.
2384         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2385         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2386         * sysdeps/s390/s390-32/configure: Regenerated.
2387         * sysdeps/s390/s390-64/configure: Regenerated.
2388         * sysdeps/sh/configure: Regenerated.
2389         * sysdeps/sparc/configure: Regenerated.
2390         * sysdeps/unix/sysv/linux/configure: Regenerated.
2391         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2392         * sysdeps/x86_64/configure: Regenerated.
2393
2394         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2395         defined.  Don't check if MAP is NULL.
2396
2397 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2398
2399         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2400         (_G_stat64): Likewise.
2401         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2402         (_G_stat64): Likewise.
2403         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2404         instead of struct _G_stat64.
2405         * libio/fileops.c (mmap_remap_check): Likewise.
2406         (decide_maybe_mmap): Likewise.
2407         (_IO_new_file_seekoff): Likewise.
2408         (_IO_file_stat): Likewise.
2409         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2410         _G_off64_t.
2411         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2412         instead of struct _G_stat64.
2413         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2414
2415 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2416
2417         [BZ #14602]
2418         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2419         Replace with ...
2420         (CHECK_EOL): New macro.
2421         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2422         CHECK_EOL.
2423         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2424         Replace with CHECK_EOL.
2425         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2426         Replace with CHECK_EOL.
2427
2428 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2429
2430         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2431         type-generic.
2432         * math/libm-test.inc: Update comment listing what functions and
2433         macros are tested.
2434         (finite_test): New function.
2435         (isinf_test): Likewise.
2436         (isnan_test): Likewise.
2437         (fpclassify_test): Test subnormal input.
2438         (isfinite_test): Likewise.
2439         (isnormal_test): Likewise.
2440         (main): Call the new functions.
2441
2442 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2443
2444         [BZ #14660]
2445         * Makerules (%.dynsym): Force C locale when running
2446         $(OBJDUMP) --dynamic-syms.
2447
2448 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2449
2450         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2451         <stdint.h>.
2452
2453 2012-10-06  David S. Miller  <davem@davemloft.net>
2454
2455         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2456         upper 32-bits of the length value in %o2 since we use branch-on-register
2457         tests which consider the entire 64-bit register.
2458
2459 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2460
2461         * string/test-strstr.c (check2): Add a test for page boundary.
2462
2463 2012-10-05  David S. Miller  <davem@davemloft.net>
2464
2465         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2466         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2467         file.
2468         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2469         sysdep_routines.
2470         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2471         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2472         and bzero when HWCAP_SPARC_CRYPTO is present.
2473
2474 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2475
2476         [BZ #14602]
2477         * string/test-strstr.c (check2): New function.
2478         (test_main): Call check2.
2479
2480         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2481         and bug-strchr1.
2482         * string/bug-strcasestr1.c (do_test): Moved to ...
2483         * string/test-strcasestr.c (check1): Here.  New function.
2484         (do_one_test): Break out result checking code into ...
2485         (check_result): This.  New function.
2486         (do_one_test): Call check_result.
2487         (test_main): Call check1.
2488         * string/bug-strchr1.c (do_test): Moved to ...
2489         * string/test-strchr.c (check1): Here.  New function.
2490         (do_one_test): Break out result checking code into ...
2491         (check_result): This.  New function.
2492         (do_one_test): Call check_result.
2493         (test_main): Call check1.
2494         * string/bug-strstr1.c (main): Moved to ...
2495         * string/test-strchr.c (check1): Here.  New function.
2496         (do_one_test): Break out result checking code into ...
2497         (check_result): This.  New function.
2498         (do_one_test): Call check_result.
2499         (test_main): Call check1.
2500         * string/bug-strcasestr1.c: Removed.
2501         * string/bug-strchr1.c: Likewise.
2502         * string/bug-strstr1.c: Likewise.
2503
2504         * elf/Makefile (dl-routines): Add hwcaps.
2505         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2506         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2507         (_dl_important_hwcaps): Moved to ...
2508         * elf/dl-hwcaps.c: Here.  New file.
2509         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2510
2511         [BZ #14557]
2512         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2513         if IS_IN_rtld isn't defined.
2514
2515         * elf/dl-support.c (_dl_sysinfo_map): New.
2516         Include "get-dynamic-info.h" and "setup-vdso.h".
2517         (_dl_non_dynamic_init): Call setup_vdso.
2518         * elf/dynamic-link.h: Don't include <assert.h>.
2519         (elf_get_dynamic_info): Moved to ...
2520         * elf/get-dynamic-info.h: Here.  New file.
2521         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2522         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2523         * elf/setup-vdso.h: Here.  New file.
2524         * elf/rtld.c: Include "setup-vdso.h".
2525         (dl_main): Call setup_vdso.
2526
2527 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2528
2529         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2530         creal in comment listing functions tested.  List finite, isinf,
2531         isnan, isless, islessequal, isgreater, isgreaterequal,
2532         islessgreater, isunordered, lgamma_r and pow10 as functions and
2533         macros not tested.  Mention which functions not tested are aliases
2534         for other functions.  Fix typo.  Note that signs of NaNs are not
2535         tested.
2536
2537         * scripts/config.guess: Update from config.git.
2538         * scripts/config.sub: Likewise.
2539
2540 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2541
2542         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2543         * misc/madvise.c (madvise): Renamed to __madvise.
2544         Make madvise a weak alias.
2545         * include/sys/mman.h: Declare __madvise.
2546         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2547         * sysdeps/unix/syscalls.list
2548         (madvise): Make __madvise the strong name, and madvise a weak alias.
2549         * sysdeps/unix/sysv/linux/syscalls.list
2550         (madvise, mmap): Remove redundant entries.
2551         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2552         * malloc/malloc.c (mtrim): Likewise.
2553         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2554
2555 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2556
2557         * sysdeps/mach/hurd/dl-cache.c: File removed.
2558         * config.h.in (USE_LDCONFIG): New #undef.
2559         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2560         * configure: Regenerated.
2561         * elf/Makefile (dl-routines): Add dl-cache only under
2562         [$(use-ldconfig) = yes].
2563         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2564         cache on [USE_LDCONFIG].
2565         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2566         [USE_LDCONFIG].
2567         * elf/rtld.c (dl_main): Likewise.
2568
2569 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2570
2571         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2572         _SC_LEVEL4_CACHE_LINESIZE.
2573
2574 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2575
2576         * sysdeps/unix/bsd/confstr.h: File removed.
2577
2578 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2579
2580         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2581         sys/sdt-config.h.
2582
2583 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2584
2585         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2586         Make 'mapoff' field ElfW(Off) rather than off_t.
2587
2588 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2589
2590         * nscd/Makefile: Remove nscd-cflags and all its users.
2591         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2592         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2593
2594         [BZ #10631]
2595         * malloc.c (malloc_printerr): Clarify error message.
2596
2597 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2598
2599         [BZ #14648]
2600         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2601         Set bit_FMA_Usable if FMA is supported.
2602         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2603         macro.
2604         (bit_FMA4_Usable): Updated.
2605         (index_FMA_Usable): New macro.
2606         (CPUID_FMA): Likewise
2607         (HAS_FMA): Defined with bit_FMA_Usable.
2608
2609 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2610
2611         * bits/types.h (__swblk_t): Type removed.
2612         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2613         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2614         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2615         (__SWBLK_T_TYPE): Likewise.
2616         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2617         (__SWBLK_T_TYPE): Likewise.
2618         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2619         (__SWBLK_T_TYPE): Likewise.
2620         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2621         (__SWBLK_T_TYPE): Likewise.
2622
2623 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2624             Honza Horak <hhorak@redhat.com>
2625
2626         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2627         (xdr_mapname): Use YPMAXMAP as maxsize.
2628         (xdr_peername): Use YPMAXPEER as maxsize.
2629         (xdr_keydat): Use YPAXRECORD as maxsize.
2630         (xdr_valdat): Use YPMAXRECORD as maxsize.
2631
2632 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2633
2634         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2635
2636         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2637         * csu/init-first.c: ... here.
2638         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2639         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2640         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2641         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2642         * sysdeps/i386/init-first.c: File removed.
2643         * sysdeps/sh/init-first.c: File removed.
2644
2645 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2646
2647         [BZ #14645]
2648         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2649         if x * y might underflow to zero and z is zero.
2650         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2651         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2652         * math/libm-test.inc (min_subnorm_value): New variable.
2653         (fma_test): Add more tests.
2654         (fma_test_towardzero): Likewise.
2655         (fma_test_downward): Likewise
2656         (fma_test_upward): Likewise.
2657         (initialize): Set min_subnorm_value.
2658
2659 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2660
2661         [BZ #14638]
2662         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2663         0 + 0.
2664         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2665         mode for addition resulting in exact zero.
2666         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2667         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2668         exact 0 + 0.
2669         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2670         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2671         * math/libm-test.inc (fma_test): Add more tests.
2672         (fma_test_towardzero): New function.
2673         (fma_test_downward): Likewise.
2674         (fma_test_upward): Likewise.
2675         (main): Call the new functions.
2676
2677 2012-09-28  David S. Miller  <davem@davemloft.net>
2678
2679         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2680
2681 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2682
2683         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2684         instead of SIGALRM.
2685
2686         * sysdeps/gnu/_G_config.h: Moved to ...
2687         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2688         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2689         * sysdeps/generic/_G_config.h: ... here.
2690
2691         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2692
2693         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2694
2695         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2696         Conditionalize target on [libnss_test1.so-version].
2697
2698         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2699
2700         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2701         (elfobjdir): Move out of conditionals.
2702
2703         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2704         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2705         (__nss_lookup_function): Conditionalize label remove_from_tree on
2706         [!DO_STATIC_NSS || SHARED], matching its only use.
2707
2708 2012-09-28  David S. Miller  <davem@davemloft.net>
2709
2710         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2711         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2712         file.
2713         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2714         sysdep_routines.
2715         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2716         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2717         when HWCAP_SPARC_CRYPTO is present.
2718
2719 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2720
2721         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2722
2723 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2724
2725         [BZ #6530]
2726         * stdio-common/vfprintf.c (process_string_arg): Revert
2727         2000-07-22 change.
2728
2729 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2730
2731         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2732         for testcase.
2733         * stdio-common/tst-sprintf.c: Include <locale.h>
2734         (main): Test sprintf's handling of incomplete multibyte
2735         characters.
2736
2737 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2738
2739         * elf/dl-runtime.c (VERSYMIDX): Removed.
2740         * elf/dl-version.c (VERSYMIDX): Likewise.
2741         * elf/do-rel.h (VERSYMIDX): Likewise.
2742         (VALIDX): Likewise.
2743         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2744         * elf/rtld.c (VALIDX): Likewise.
2745         (ADDRIDX): Likewise.
2746         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2747         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2748         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2749         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2750         (VALIDX): Likewise.
2751         (ADDRIDX): Likewise.
2752
2753 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2754
2755         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2756
2757 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2758
2759         [BZ #11438]
2760         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2761         to global scope.
2762         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2763         addresses are in the same scope as 192.0.2/24.
2764         * posix/gai.conf: Document new scope table defaults.
2765
2766 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2767
2768         [BZ #5298]
2769         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2770         for ftell.  Compute offsets from write pointers instead.
2771         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2772
2773 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2774
2775         [BZ #14543]
2776         * libio/Makefile (tests): New test case tst-fseek.
2777         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2778         combination works in wide mode.
2779         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2780         state when the external buffer state changes.
2781
2782 2012-09-27  David S. Miller  <davem@davemloft.net>
2783
2784         [BZ #14376]
2785         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2786         pass reloc->r_addend in as the 'high' argument to
2787         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2788
2789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2790
2791 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2792
2793         * rt/tst-aio2.c: Include <pthread.h>.
2794         * rt/tst-aio3.c: Likewise.
2795
2796 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2797
2798         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2799
2800 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2801
2802         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2803         contents on [SHARED].
2804
2805 2012-09-26  Marek Polacek  <polacek@redhat.com>
2806
2807         [BZ #14530]
2808         [BZ #13741]
2809         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2810         for C++ and GCC <4.3 as well as for non GCC compilers.
2811
2812 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2813
2814         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2815
2816 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2817
2818         * Makefile.in (all, install): Declare with .PHONY.
2819         Reported by Michael Hope <michael.hope@linaro.org>.
2820
2821 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2822
2823         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2824         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2825         system header.
2826         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2827         Likewise.
2828         (sydep_routines): Add the new and the internal functions.
2829         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2830         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2832         (GLIBC_2.17): Add the new function.
2833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2834         (GLIBC_2.17): Likewise.
2835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2836         (GLIBC_2.17): Likewise.
2837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2838         (GLIBC_2.17): Likewise.
2839         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2840
2841 2012-09-25  Alan Modra  <amodra@gmail.com>
2842
2843         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2844         Add release barrier before setting once_control to say
2845         initialisation is done.  Add hints on lwarx.  Use macro in
2846         place of isync.
2847         (clear_once_control): Add release barrier.
2848
2849 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2850
2851         [BZ #13629]
2852         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2853         specially.
2854         * math/s_clog10.c (__clog10): Likewise.
2855         * math/s_clog10f.c (__clog10f): Likewise.
2856         * math/s_clog10l.c (__clog10l): Likewise.
2857         * math/s_clogf.c (__clogf): Likewise.
2858         * math/s_clogl.c (__clogl): Likewise.
2859         * math/Makefile (libm-calls): Add x2y2m1.
2860         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2861         (__x2y2m1): Likewise.
2862         (__x2y2m1l): Likewise.
2863         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2864         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2865         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2866         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2867         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2868         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2869         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2870         * sysdeps/i386/fpu/libm-test-ulps: Update.
2871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2872
2873         [BZ #14621]
2874         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2875         int as type of variable DEPTH.
2876         (glob): Use size_t instead of int as type of variables NEWCOUNT
2877         and OLD_PATHC.
2878
2879 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2880
2881         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2882         Add s_sincosf-sse2.
2883         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2884         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2885         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2886         macros for using routine as __sincosf_ia32.
2887         Use macro for function declaration and weak_alias.
2888         * sysdeps/i386/fpu/libm-test-ulps: Update.
2889
2890         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2891         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2892
2893         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2894         subnormal argument.
2895         * math/s_cexpf.c (__cexpf): Likewise.
2896         * math/s_csinf.c (__csinf): Likewise.
2897         * math/s_csinhf.c (__csinhf): Likewise.
2898         * math/s_ctanf.c (__ctanf): Likewise.
2899         * math/s_ctanhf.c (__ctanhf): Likewise.
2900         * math/s_ccosh.c (__ccoshf): Likewise.
2901         * math/s_cexp.c (__cexpl): Likewise.
2902         * math/s_csin.c (__csin): Likewise.
2903         * math/s_csinh.c (__csinh): Likewise.
2904         * math/s_ctan.c (__ctan): Likewise.
2905         * math/s_ctanh.c (ctanh): Likewise.
2906         * math/s_ccoshl.c (__ccoshl): Likewise.
2907         * math/s_cexpl.c (__cexpl): Likewise.
2908         * math/s_csinl.c (__csinl): Likewise.
2909         * math/s_csinhl.c (__csinhl): Likewise.
2910         * math/s_ctanl.c (__ctanl): Likewise.
2911         * math/s_ctanhl.c (__ctanhl): Likewise.
2912
2913 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2914
2915         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2916         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2917         (_IO_off_t): Define to __off_t, not _G_off_t.
2918         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2919         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2920         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2921         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2922         type of __dummy and __dummy2 fields.
2923         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2924         (_G_ssize_t): Likewise.
2925         (_G_off_t): Likewise.
2926         (_G_pid_t): Likewise.
2927         (_G_uid_t): Likewise.
2928         (_G_wchar_t): Likewise.
2929         (_G_wint_t): Likewise.
2930         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2931         (_G_ssize_t): Likewise.
2932         (_G_off_t): Likewise.
2933         (_G_pid_t): Likewise.
2934         (_G_uid_t): Likewise.
2935         (_G_wchar_t): Likewise.
2936         (_G_wint_t): Likewise.
2937         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2938         (_G_ssize_t): Likewise.
2939         (_G_off_t): Likewise.
2940         (_G_pid_t): Likewise.
2941         (_G_uid_t): Likewise.
2942         (_G_wchar_t): Likewise.
2943         (_G_wint_t): Likewise.
2944
2945 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2946
2947         * malloc/arena.c: Include malloc-sysdep.h.
2948         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2949         is sufficient to shrink the heap or an unmap is needed.
2950         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2951         new function check_may_shrink_heap.
2952         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2953         new function check_may_shrink_heap.
2954
2955 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2956
2957         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2958         comments.
2959
2960 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2961
2962         * catgets/test-gencat.sh: Add "set -e".
2963         * elf/tst-pathopt.sh: Likewise.
2964         * grp/tst_fgetgrent.sh: Likewise.
2965         * iconvdata/run-iconv-test.sh: Likewise.
2966         * intl/tst-gettext.sh: Likewise.
2967         * intl/tst-gettext2.sh: Likewise.
2968         * intl/tst-gettext4.sh: Likewise.
2969         * intl/tst-gettext6.sh: Likewise.
2970         * intl/tst-translit.sh: Likewise.
2971         * io/ftwtest-sh: Likewise.
2972         * libio/test-freopen.sh: Likewise.
2973         * malloc/tst-mtrace.sh: Likewise.
2974         * posix/globtest.sh: Likewise.
2975         * posix/tst-getconf.sh: Likewise.
2976         * posix/wordexp-tst.sh: Likewise.
2977         * stdio-common/tst-printf.sh: Likewise.
2978         * stdio-common/tst-unbputc.sh: Likewise.
2979         * stdlib/tst-fmtmsg.sh: Likewise.
2980         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2981         * catgets/Makefile: Do not specify -e option when running
2982         testsuite shell scripts.
2983         * elf/Makefile: Likewise.
2984         * grp/Makefile: Likewise.
2985         * iconvdata/Makefile: Likewise.
2986         * intl/Makefile: Likewise.
2987         * io/Makefile: Likewise.
2988         * libio/Makefile: Likewise.
2989         * malloc/Makefile: Likewise.
2990         * posix/Makefile: Likewise.
2991         * stdio-common/Makefile: Likewise.
2992         * stdlib/Makefile: Likewise.
2993         * sysdeps/x86_64/Makefile: Likewise.
2994
2995         * io/ftwtest-sh: Add copyright header.
2996         * posix/globtest.sh: Likewise.
2997         * posix/tst-getconf.sh: Likewise.
2998         * posix/wordexp-tst.sh: Likewise.
2999         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3000
3001 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3002
3003         [BZ #13679]
3004         * Makeconfig (+link): Defined as $(+link-static) if
3005         $(build-shared) isn't yes.
3006         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3007         isn't yes.
3008         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3009
3010         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3011
3012         [BZ #14562]
3013         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3014         new chunk size with MALLOC_ALIGN_MASK.
3015
3016 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3017
3018         [BZ #5044]
3019         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3020         <rounding-mode.h>.
3021         (__printf_fphex): Determine rounding using get_rounding_mode and
3022         round_away.
3023         * stdio-common/tst-printf-round.c (struct hex_test): New
3024         structure.
3025         (hex_tests): New variable.
3026         (test_hex_in_one_mode): New function.
3027         (do_test): Also run tests for hex float output.
3028
3029 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3030
3031         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3032         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3033         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3034         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3035         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3036         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3037         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3038         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3039
3040 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3041
3042         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3043         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3044         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3045         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3046
3047 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3048
3049         [BZ #14579]
3050         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3051         mode only.
3052         * elf/tst-rtld-load-self.sh: New test.
3053         * elf/Makefile: Run it.
3054
3055 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3056
3057         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3058         (tst-writev-ENV): Remove.
3059         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3060
3061 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3062
3063         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3064
3065 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3066
3067         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3068         unconditional.
3069         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3070         Likewise.
3071         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3072         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3073         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3074         Likewise.
3075
3076 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3077
3078         [BZ #14587]
3079         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3080         * config.make.in (have-cpp-asm-debuginfo): Removed.
3081         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3082         * configure: Regenerated.
3083
3084 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3085
3086         [BZ #5044]
3087         * stdio-common/printf_fp.c: Include <stdbool.h> and
3088         <rounding-mode.h>.
3089         (___printf_fp): Determine rounding using get_rounding_mode and
3090         round_away.
3091         * stdio-common/tst-printf-round.c: New file.
3092         * stdio-common/Makefile (tests): Add tst-printf-round.
3093         (link-libm): New variable.
3094         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3095
3096 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3097
3098         [BZ #14576]
3099         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3100         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3101         Likewise.
3102         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3103         Likewise.
3104
3105 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3106
3107         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3108         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3109         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3110         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3111
3112 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3113
3114         [BZ #14518]
3115         * include/rounding-mode.h: New file.
3116         * sysdeps/generic/get-rounding-mode.h: Likewise.
3117         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3118         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3119         (MAX_VALUE): New macro.
3120         (MIN_VALUE): Likewise.
3121         (overflow_value): New function.
3122         (underflow_value): Likewise.
3123         (round_and_return): Use overflow_value and underflow_value to
3124         determine return values in overflow and underflow cases.  Use
3125         round_away to determine rounding depending on rounding mode.
3126         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3127         determine return values in overflow and underflow cases.
3128         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3129         (struct test_results): New structure.
3130         (struct test): Use struct test_results to store expected results
3131         for all rounding modes.
3132         (TEST): Include expected results for all rounding modes.
3133         (test_in_one_mode): New function.
3134         (do_test): Use test_in_one_mode to compute and check results.
3135         Check results for all rounding modes.
3136         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3137         $(link-libm).
3138
3139 2012-12-09  Allan McRae  <allan@archlinux.org>
3140
3141         * sysdeps/i386/fpu/libm-test-ulps: Update
3142
3143 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3144
3145         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3146         (_G_int32_t): Likewise.
3147         (_G_uint16_t): Likewise.
3148         (_G_uint32_t): Likewise.
3149         (_G_HAVE_BOOL): Likewise.
3150         (_G_HAVE_ATEXIT): Likewise.
3151         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3152         (_G_HAVE_IO_FILE_OPEN): Likewise.
3153         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3154         (_G_int32_t): Likewise.
3155         (_G_uint16_t): Likewise.
3156         (_G_uint32_t): Likewise.
3157         (_G_HAVE_BOOL): Likewise.
3158         (_G_HAVE_ATEXIT): Likewise.
3159         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3160         (_G_HAVE_IO_FILE_OPEN): Likewise.
3161         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3162         (_G_int32_t): Likewise.
3163         (_G_uint16_t): Likewise.
3164         (_G_uint32_t): Likewise.
3165         (_G_HAVE_BOOL): Likewise.
3166         (_G_HAVE_ATEXIT): Likewise.
3167         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3168         (_G_HAVE_IO_FILE_OPEN): Likewise.
3169
3170 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3171
3172         * csu/libc-tls.c: Update copyright years.
3173
3174 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3175
3176         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3177         [!_G_USING_THUNKS]: Remove conditional code.
3178         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3179         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3180
3181         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3182         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3183         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3184         (_G_VTABLE_LABEL_PREFIX): Likewise.
3185         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3186         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3187         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3188         (_G_VTABLE_LABEL_PREFIX): Likewise.
3189         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3190         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3191         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3192         (_G_VTABLE_LABEL_PREFIX): Likewise.
3193         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3194
3195 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3196
3197         * libio/Makefile: Include ../Makeconfig before tests.
3198         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3199         only if $(build-shared) is yes.
3200
3201         * iconv/gconv_db.c: Update copyright years.
3202
3203 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3204
3205         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3206         unwind info if defined PIC. Fix special cases description.
3207         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3208
3209         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3210         DP_HI_MASK entry.
3211         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3212
3213 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3214
3215         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3216
3217         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3218         is NULL.
3219
3220         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3221         (LDLIBS-tst-chk4): This.
3222         (LDFLAGS-tst-chk5): Renamed to ...
3223         (LDLIBS-tst-chk5): This.
3224         (LDFLAGS-tst-chk6): Renamed to ...
3225         (LDLIBS-tst-chk6): This.
3226         (LDFLAGS-tst-lfschk4): Renamed to ...
3227         (LDLIBS-tst-lfschk4): This.
3228         (LDFLAGS-tst-lfschk5): Renamed to ...
3229         (LDLIBS-tst-lfschk5): This.
3230         (LDFLAGS-tst-lfschk6): Renamed to ...
3231         (LDLIBS-tst-lfschk6): This.
3232
3233         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3234         on $(common-objpfx)soversions.mk.
3235
3236 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3237
3238         [BZ #10014]
3239         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3240         example host name.
3241
3242 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3243
3244         * malloc/arena.c (arena_get_retry): New function that gets
3245         another arena for the caller to try its request on.
3246         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3247         current arena cannot fulfill the request.
3248         (__libc_memalign): Likewise.
3249         (__libc_memalign): Likewise.
3250         (__libc_pvalloc): Likewise.
3251         (__libc_calloc): Likewise.
3252
3253 2012-09-05  John Tobey  <john.tobey@gmail.com>
3254
3255         [BZ #13542]
3256         * manual/arith.texi (Operations on Complex): Fix description
3257         of carg branch cut.
3258
3259 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3260
3261         [BZ #10014]
3262         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3263         host name.
3264
3265         [BZ #10038]
3266         * manual/memory.texi (Memory): Make order of menu items match
3267         order of sections.
3268
3269 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3270
3271         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3272         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3273         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3274
3275 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         * csu/libc-tls.c (static_dtv): Renamed to ...
3278         (_dl_static_dtv): This.  Make it global.
3279         (_dl_initial_dtv): Removed.
3280         (__libc_setup_tls): Updated.
3281         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3282         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3283         DL_INITIAL_DTV.
3284
3285 2012-09-06  Petr Machata  <pmachata@redhat.com>
3286
3287         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3288         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3289         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3290         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3291
3292 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3293
3294         [BZ #14545]
3295         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3296         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3297         freeing dtv[-1].
3298
3299 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3300
3301         [BZ #14544]
3302         * Makeconfig (link-static-before-libc): Replace $(+prector)
3303         with $(+prectorT).
3304         (link-static-after-libc): Replace $(+postctor) with
3305         $(+postctorT).
3306         (link-bounded): Replace $(+prector)/$(+postctor) with
3307         $(+prectorT)/$(+postctorT).
3308         (+prectorT): New macro.
3309         (+postctorT): Likewise.
3310
3311 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3312
3313         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3314         (round_str): Handle values above the maximum for IBM long double
3315         as inexact.
3316         * stdlib/tst-strtod-round.c (tests): Regenerated.
3317
3318 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3319
3320         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3321         assembler flag.
3322         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3323         zarch_nohighgprs around the zarch optimized routines.
3324         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3325         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3326         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3327         for zarch.
3328
3329 2012-09-05  David S. Miller  <davem@davemloft.net>
3330
3331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3332
3333         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3334         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3335         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3336         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3337         entries.
3338
3339 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3340
3341         * malloc/arena.c: Fold copyright years.
3342         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3343
3344 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3345
3346         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3347
3348 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3349
3350         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3351
3352 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3353
3354         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3355         change internal state upon failure.
3356
3357 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3358
3359         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3360         * malloc/memusage.c (mmap): Likewise.
3361         (mmap64, mremap): Likewise.  Adjust name in comment.
3362
3363 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3364
3365         * libio/fileops.c: Fix typos in comments.
3366         * libio/oldfileops.c: Likewise.
3367         * libio/wfileops.c: Likewise.
3368
3369 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3370
3371         [BZ #1349]
3372         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3373         (tst-malloc-usable-ENV): Set environment for test case.
3374         * malloc/hooks.c (malloc_check_get_size): New function to get
3375         requested size.
3376         * malloc/malloc.c (musable): Use malloc_check_get_size.
3377         * malloc/tst-malloc-usable.c: New test case.
3378
3379 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3380
3381         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3382
3383 2012-09-05  Allan McRae  <allan@archlinux.org>
3384
3385         [BZ #13966]
3386         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3387         determine header location.
3388         * configure: Regenerated.
3389
3390 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3391
3392         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3393         float format.
3394         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3395         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3396         format.
3397         (test): Regenerate.
3398
3399 2012-09-04  David S. Miller  <davem@davemloft.net>
3400
3401         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3402         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3403         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3404
3405 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3406
3407         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3408         failures.
3409
3410         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3411
3412 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3413
3414         [BZ #9914]
3415         * libio/iogetdelim.c: Include <limits.h>.
3416         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3417         + len + 1 would overflow.
3418
3419 2012-09-03  Andreas Jaeger  <aj@suse.de>
3420
3421         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3422         * sysdeps/i386/fpu/libm-test-ulps: Update.
3423
3424 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3425
3426         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3427         Add s_sinf-sse2, s_conf-sse2.
3428
3429         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3430         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3431         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3432         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3433
3434         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3435         for using routine as __sinf_ia32.
3436         Use macro for function declaration and weak_alias.
3437         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3438         for using routine as __cosf_ia32.
3439         Use macro for function declaration and weak_alias.
3440
3441         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3442         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3443
3444         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3445         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3446         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3447
3448         * math/libm-test.inc (cos_test): Add more test cases.
3449         (sin_test): Likewise.
3450         (sincos_test): Likewise.
3451
3452 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3453
3454         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3455         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3456         hidden.
3457         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3458
3459 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3460
3461         [BZ #14538]
3462         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3463         first element of the GOT.
3464         (elf_machine_load_address): Return the difference between
3465         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3466
3467 2012-09-01  Allan McRae  <allan@archlinux.org>
3468
3469         [BZ #13412]
3470         * configure.in (AWK): Require gawk version 3.0 or later.
3471         * configure: Regenerated.
3472
3473 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3474
3475         * sysdeps/unix/sysv/linux/kernel-features.h
3476         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3477         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3478         [__NR_clock_getres]: Make code unconditional.
3479         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3480         (clock_getcpuclockid): Remove code left unreachable by removal of
3481         conditionals.
3482         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3483         code unconditional.
3484         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3485         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3486         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3487         Make code unconditional.
3488         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3489         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3490         * sysdeps/unix/sysv/linux/clock_settime.c
3491         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3492         conditional code.
3493         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3494         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3495
3496 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3497
3498         [BZ #14476]
3499         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3500         scripts/test-installation.pl.
3501
3502         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3503         and $ld_so_version if it is set.
3504
3505 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3506
3507         [BZ #14516]
3508         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3509         failure if reading from procfs failed.
3510         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3511
3512 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3513
3514         * sysdeps/unix/sysv/linux/kernel-features.h
3515         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3516         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3517         Remove conditional code.
3518         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3519         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3520         Remove conditional code.
3521         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3522         * sysdeps/unix/sysv/linux/i386/fxstat.c
3523         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3524         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3525         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3526         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3527         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3528         * sysdeps/unix/sysv/linux/i386/lxstat.c
3529         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3530         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3531         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3532         Remove conditional code.
3533         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3534         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3535         Remove conditional code.
3536         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3537         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3538         <kernel-features.h>.
3539         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3540         Remove.
3541         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3542         Remove conditional code.
3543         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3544         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3545         Remove conditional.
3546
3547 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3548
3549         [BZ #5400]
3550         * NEWS: Add fixed bug number.
3551
3552 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3553
3554         [BZ #14519]
3555         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3556         underflowing exponent in case of negative sign.
3557         * stdlib/tst-strtod-round-data: Add more tests.
3558         * stdlib/tst-strtod-round.c (tests): Regenerated.
3559
3560         [BZ #3479]
3561         * stdlib/strtod_l.c (NDIG): Remove.
3562         (HEXNDIG): Likewise.
3563         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3564         smallest representable value.
3565         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3566         lie within an exact representation of 1/2 ulp of the result.
3567         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3568         unconditionally.
3569         (TENS_P9_IDX): Define unconditionally.
3570         (TENS_P9_SIZE): Likewise.
3571         (TENS_P10_IDX): Likewise.
3572         (TENS_P10_SIZE): Likewise.
3573         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3574         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3575         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3576         entries for 10^2^13 and 10^2^14.
3577         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3578         (TENS_P13_IDX): Define.
3579         (TENS_P13_SIZE): Likewise.
3580         (TENS_P14_IDX): Likewise.
3581         (TENS_P14_SIZE): Likewise.
3582         (_fpioconst_pow10): Change array size to
3583         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3584         unconditional.
3585         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3586         1024]: Add entries for 10^2^13 and 10^2^14.
3587         [LAST_POW10 > _LAST_POW10]: Remove #error.
3588         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3589         (_fpioconst_pow10): Change array size to
3590         FPIOCONST_POW10_ARRAY_SIZE.
3591         * stdlib/gen-fpioconst.c: New file.
3592         * stdlib/gen-tst-strtod-round.c: Likewise.
3593         * stdlib/tst-strtod-round-data: Likewise.
3594         * stdlib/tst-strtod-round.c: Likewise.
3595         * stdlib/Makefile (tests): Add tst-strtod-round.
3596
3597         [BZ #14459]
3598         * stdlib/strtod_l.c: Include <stdint.h>.
3599         (NDEBUG): Do not define.
3600         (round_and_return): Change EXPONENT parameter to type intmax_t.
3601         Rearrange calculations to avoid internal overflow possibilities.
3602         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3603         Rearrange calculations to avoid internal overflow possibilities.
3604         Assert that number fits inside MPNSIZE limbs.
3605         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3606         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3607         calculations and add assertions to avoid internal overflow
3608         possibilities.  Add casts to avoid signed/unsigned operations.
3609         * stdlib/tst-strtod-overflow.c: New file.
3610         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3611
3612 2012-08-25  Marek Polacek  <polacek@redhat.com>
3613
3614         * time/time.h: Fix some typos in comments.
3615
3616 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3617
3618         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3619         * posix/tst-rfc3484-2.c: Likewise.
3620         * posix/tst-rfc3484-3.c: Likewise.
3621
3622 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3623
3624         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3625         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3626
3627 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3628
3629         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3630         #include of fxstatat64.c.
3631
3632 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3633
3634         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3635         * shadow/getspent_r.c: Likewise.
3636         * shadow/getspnam.c: Likewise.
3637         * shadow/getspnam_r.c: Likewise.
3638         * gshadow/getsgent.c: Likewise.
3639         * gshadow/getsgent_r.c: Likewise.
3640         * gshadow/getsgnam.c: Likewise.
3641         * gshadow/getsgnam_r.c: Likewise.
3642         * inet/getnetbyad.c: Likewise.
3643         * inet/getnetbyad_r.c: Likewise.
3644         * inet/getnetbynm.c: Likewise.
3645         * inet/getnetbynm_r.c: Likewise.
3646         * inet/getnetent.c: Likewise.
3647         * inet/getnetent_r.c: Likewise.
3648         * inet/getproto.c: Likewise.
3649         * inet/getproto_r.c: Likewise.
3650         * inet/getprtent.c: Likewise.
3651         * inet/getprtent_r.c: Likewise.
3652         * inet/getprtname.c: Likewise.
3653         * inet/getprtname_r.c: Likewise.
3654         * inet/getrpcbyname.c: Likewise.
3655         * inet/getrpcbyname_r.c: Likewise.
3656         * inet/getrpcbynumber.c: Likewise.
3657         * inet/getrpcbynumber_r.c: Likewise.
3658         * inet/getrpcent.c: Likewise.
3659         * inet/getrpcent_r.c: Likewise.
3660         * inet/getaliasent.c: Likewise.
3661         * inet/getaliasent_r.c: Likewise.
3662         * inet/getaliasname.c: Likewise.
3663         * inet/getaliasname_r.c: Likewise.
3664         * nscd/getgrgid_r.c: Likewise.
3665         * nscd/getgrnam_r.c: Likewise.
3666         * nscd/gethstbyad_r.c: Likewise.
3667         * nscd/gethstbynm3_r.c: Likewise.
3668         * nscd/getpwnam_r.c: Likewise.
3669         * nscd/getpwuid_r.c: Likewise.
3670         * nscd/getsrvbynm_r.c: Likewise.
3671         * nscd/getsrvbypt_r.c: Likewise.
3672         * nscd/gai.c: Likewise.
3673
3674         * configure.in (build_nscd): New substituted variable, set
3675         by --disable-build-nscd and defaults to $use_nscd.
3676         * configure: Regenerated.
3677         * config.make.in (build-nscd): New substituted variable.
3678         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3679         Change conditional to require [$(build-nscd) = yes] as well.
3680         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3681
3682         [BZ# 13696]
3683         * configure.in (use_nscd): New substituted variable, set by
3684         --disable-nscd.  If enabled, define USE_NSCD.
3685         * configure: Regenerated.
3686         * config.h.in: Add USE_NSCD.
3687         * config.make.in (use-nscd): New substituted variable.
3688         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3689         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3690         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3691         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3692         (CFLAGS-getgrnam_r.c): Likewise.
3693         (CFLAGS-initgroups.c): Likewise.
3694         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3695         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3696         Variables removed.
3697         * inet/getnetgrent_r.c
3698         (nscd_setnetgrent): New function, broken out of ...
3699         (setnetgrent): ... here.  Call it.
3700         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3701         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3702         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3703         * nscd/Makefile (routines, aux): Move definitions after include of
3704         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3705         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3706         Conditionalize on [USE_NSCD].
3707         (is_nscd, nscd_init_cb): Likewise.
3708         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3709         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3710         * nss/nss_db/db-init.c: Likewise.
3711         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3712         [USE_NSCD].
3713         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3714         (make_request): Use it.
3715         (cache_valid_p): New function.
3716         (__check_pf): Use it.
3717         * NEWS: Add item for --disable-nscd.
3718
3719 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3720
3721         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3722         to support sed >= 4.2.1-20-ga9bf076.
3723         * configure: Regenerated.
3724
3725 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3726
3727         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3728         Conditionalize whole body on [IREL].
3729
3730 2012-08-22  Jeff Law <law@redhat.com>
3731
3732         [BZ #14505]
3733         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3734         if the family is PF_UNSPEC.
3735
3736 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3737
3738         * Makerules (lib-version): Rename from V.
3739         (install-lib-nosubdir): Change V to lib-version.
3740
3741 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3742
3743         [BZ #14252]
3744         * powerpc32/power6/wcschr.c: New file.
3745         * powerpc32/power6/wcscpy.c: New file.
3746         * powerpc32/power6/wcsrchr.c: New file.
3747         * powerpc64/power6/wcschr.c: New file.
3748         * powerpc64/power6/wcscpy.c: New file.
3749         * powerpc64/power6/wcsrchr.c: New file.
3750
3751 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3752
3753         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3754         (two_way_short_needle): Use it.
3755         * string/strstr.c (AVAILABLE1_USES_J): Define.
3756         * string/strcasestr.c: Likewise.
3757
3758         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3759         array references.
3760         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3761
3762         [BZ #11607]
3763         * NEWS: Add an entry.
3764         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3765         define their defaults.
3766         (two_way_short_needle): Detect end-of-string on-the-fly.
3767         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3768         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3769         * string/bug-strcasestr1.c: New test.
3770         * string/Makefile: Run it.
3771
3772 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3773
3774         [BZ #11607]
3775         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3776         the first character.
3777
3778 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3779
3780         * csu/elf-init.c (__libc_csu_irel): Function removed.
3781         * csu/libc-start.c (apply_irel): New function.
3782         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3783
3784 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3785
3786         * sysdeps/unix/sysv/linux/kernel-features.h
3787         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3788         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3789         <kernel-features.h>.
3790         [__NR_fadvise64_64]: Make code unconditional.
3791         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3792         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3793         !__NR_fadvise64_64)]: Likewise.
3794         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3795         !__NR_fadvise64_64))]: Likewise.
3796         [__NR_fadvise64]: Make code unconditional.
3797         [!__NR_fadvise64]: Remove conditional code.
3798         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3799         <kernel-features.h>.
3800         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3801         unconditional.
3802         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3803         conditional code.
3804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3805         not include <kernel-features.h>.
3806         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3807         unconditional.
3808         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3809         conditional code.
3810         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3811         include <kernel-features.h>.
3812         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3813         unconditional.
3814         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3815         conditional code.
3816
3817 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3818
3819         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3820         slight instruction rearrangements per scrollpipe analysis.
3821         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3822
3823 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3824
3825         * manual/syslog.texi (syslog; vsyslog, closelog):
3826         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3827         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3828
3829         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3830         DSOCAPS to match condition on defining it.
3831
3832 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3833
3834         * sysdeps/unix/sysv/linux/kernel-features.h
3835         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3837         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3838         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3840         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3841         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3843         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3844         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3845
3846         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3847         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3848
3849         * sysdeps/unix/sysv/linux/kernel-features.h
3850         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3851         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3852         unconditional.
3853         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3854         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3855         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3856         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3857         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3858         Make code unconditional.
3859         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3860         (__mmap64) [!__NR_mmap2]: Likewise.
3861         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3862         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3863         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3864         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3865         [__NR_mmap2]: Make code unconditional.
3866         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3867         (__mmap64) [!__NR_mmap2]: Likewise.
3868
3869 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3870
3871         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3872
3873 2012-08-18  Andreas Jaeger  <aj@suse.de>
3874
3875         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3876
3877 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3878
3879         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3880         * include/unistd.h (__have_sock_cloexec): Likewise.
3881         (__have_pipe2): Likewise.
3882         (__have_dup3): Likewise.
3883
3884 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3885
3886         [BZ #9685]
3887         * include/unistd.h (__have_pipe2): Change define into an extern int.
3888         (__have_dup3): Likewise.
3889         * socket/have_sock_cloexec.c: Include fcntl.h.
3890         (__have_pipe2): New variable.
3891         (__have_dup3): Likewise.
3892
3893 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3894
3895         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3896
3897 2012-08-17  Marek Polacek  <polacek@redhat.com>
3898
3899         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3900         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3901
3902 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3903
3904         * configure.in: Add AC_SUBST for sysheaders.
3905         * configure: Regenerated.
3906         * config.make.in (sysheaders): New substituted variable.
3907
3908         * sysdeps/unix/mkfifo.c: Moved ...
3909         * sysdeps/posix/mkfifo.c: ... here.
3910         * sysdeps/unix/mkfifoat.c: Moved ...
3911         * sysdeps/posix/mkfifoat.c: ... here.
3912
3913         * sysdeps/unix/utime.c: Moved ...
3914         * sysdeps/posix/utime.c: ... here.
3915
3916         * sysdeps/unix/time.c: Moved ...
3917         * sysdeps/posix/time.c: ... here.
3918         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3919         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3920
3921         * sysdeps/unix/nice.c: Moved ...
3922         * sysdeps/posix/nice.c: ... here.
3923
3924         * sysdeps/unix/alarm.c: Moved ...
3925         * sysdeps/posix/alarm.c: ... here.
3926
3927         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3928
3929 2012-08-17  Jeff Law <law@redhat.com>
3930
3931         * intl/Makefile (codeset_mo): New variable.
3932         ($(codeset_mo)): New target.
3933         (tst-codeset.out): Depend on that.  Remove explicit rule.
3934         (tst-gettext3.out, tst-gettext5.out): Likewise.
3935         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3936         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3937         * intl/tst-codeset.sh: Remove.
3938         * intl/tst-gettext3.sh: Likewise.
3939         * intl/tst-gettext5.sh: Likewise.
3940
3941 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3942
3943         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3944         * sysdeps/unix/syscalls.list: ... here.
3945
3946         * sysdeps/posix/getaddrinfo.c
3947         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3948         (gaiconf_init, gaiconf_reload): Use them.
3949         [!_STATBUF_ST_NSEC]
3950         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3951         Define using time_t rather than struct timespec.
3952
3953         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3954         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3955         Macros removed.
3956         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3957         [!NO_THREADS].
3958         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3959         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3960         Likewise.
3961
3962         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3963         __libc_cleanup_push argument.
3964
3965         * bits/param.h: New file.
3966         * misc/sys/param.h: New file.
3967         * include/sys/param.h: New file.
3968         * misc/Makefile (headers): Add bits/param.h.
3969         * sysdeps/generic/sys/param.h: File removed.
3970         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3971         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3972         * sysdeps/mach/hurd/bits/param.h: New file.
3973         * sysdeps/mach/hurd/sys/param.h: File removed.
3974
3975         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3976         last change.
3977
3978         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3979         [_IO_MTSAFE_IO].
3980         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3981         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3982         New macros.
3983
3984         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3985         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3986         rather than -D_IO_MTSAFE_IO conditionally.
3987         * stdio-common/Makefile (CPPFLAGS): Likewise.
3988         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3989         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3990         Use $(libio-mtsafe).
3991         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3992         of -D_IO_MTSAFE_IO.
3993         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3994         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3995         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3996         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3997         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3998         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3999         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4000         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4001         (CFLAGS-fread_u_chk.c): Likewise.
4002         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4003         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4004         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4005         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4006         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4007         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4008         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4009         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4010         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4011
4012         * libio/Makefile: Test [$(libc-reentrant) = yes]
4013         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4014
4015         * Makeconfig
4016         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4017         * sysdeps/pthread/configure: File removed.
4018         * sysdeps/pthread/Makeconfig: New file.
4019         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4020         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4021
4022 2012-08-16  Gary Benson  <gbenson@redhat.com>
4023
4024         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4025         unmapping the first object in a namespace.
4026
4027 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4028
4029         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4030         (__internal_setnetgrent): ... this.  Add internal_function to
4031         definition.  Add libc_hidden_def.
4032         (setnetgrent): Update caller.
4033         (internal_endnetgrent): Renamed to ...
4034         (__internal_endnetgrent): ... this.  Add internal_function to
4035         definition.  Add libc_hidden_def.
4036         (endnetgrent): Update caller.
4037         (internal_getnetgrent_r): Renamed to ...
4038         (__internal_getnetgrent_r): ... this.  Add internal_function to
4039         definition.  Add libc_hidden_def.
4040         (__getnetgrent_r): Update caller.
4041         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4042
4043 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4044
4045         * stdlib/longlong.h: Update from GCC.
4046
4047 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4048
4049         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4050         on _QL, which is set by umul_ppmm but never used.
4051         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4052         variables, which are set by GMP macros but never used.
4053         * stdio-common/_itowa.c (_itowa): Likewise.
4054         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4055         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4056
4057 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4058
4059         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4060         struct La_sh_regs is not constant.
4061         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4062         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4063         and struct La_sparc64_regs are not constant.
4064
4065 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4066
4067         * sysdeps/unix/sysv/linux/kernel-features.h
4068         (__ASSUME_POSIX_TIMERS): Remove.
4069         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4070         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4071         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4072         Make code unconditional.
4073         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4074         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4075         Make code unconditional.
4076         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4077         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4078         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4079         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4080         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4081         Make code unconditional.
4082         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4083         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4084         (__libc_missing_posix_timers): Remove.
4085
4086 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4087
4088         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4089         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4090
4091         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4092
4093         * elf/dl-sym.c: Include <stdlib.h>.
4094
4095         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4096         constants, which avoids warnings in 32-bit builds.
4097
4098         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4099         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4100
4101         * misc/lseek.c: File moved to ...
4102         * io/lseek.c: ... here.
4103
4104         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4105
4106         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4107         shifting LEN more than 31 bits at once.
4108
4109 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4110
4111         [BZ #14195]
4112         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4113         segmentation fault for a case of two empty input strings.
4114         * string/test-strncasecmp.c (check1): Renamed to...
4115         (bz12205): ...this.
4116         (bz14195): Add new testcase for two empty input strings and N > 0.
4117         (test_main): Call new testcase, adapt for renamed function.
4118
4119 2012-08-15  Andreas Jaeger  <aj@suse.de>
4120
4121         [BZ #14090]
4122         * crypt/md5test2.c: New test, based on test supplied by Serge
4123         Belyshev <belyshev@depni.sinp.msu.ru>.
4124         * crypt/Makefile (xtests): Add md5test-giant..
4125         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4126
4127 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         [BZ #14090]
4130         * crypt/md5.c (md5_process_block): Don't assume the buffer
4131         length is less than 2**32.
4132         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4133         length is less than 2**64.
4134
4135 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4136
4137         * string/str-two-way.h: Include <sys/param.h>.
4138         (MAX): Macro removed.
4139
4140         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4141         Move #define and #undef of memmove to just before and after
4142         including <string.h>.
4143
4144         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4145         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4146         and after including <string.h>.  Move declarations of
4147         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4148         to before #include "string/memmove.c".
4149
4150         * include/dirent.h: Declare __getdirentries.
4151
4152         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4153         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4154
4155 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4156
4157         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4158         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4159         * sysdeps/i386/configure: Regenerated.
4160         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4161         STABS_CURRENT_FILE, and STABS_FUN.
4162         (END): Remove call to STABS_FUN_END.
4163         (STABS_CURRENT_FILE1): Delete.
4164         (STABS_CURRENT_FILE): Likewise.
4165         (STABS_FUN): Likewise.
4166         (STABS_FUN_END): Likewise.
4167         (STABS_FUN2): Likewise.
4168         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4169         * sysdeps/x86_64/configure: Regenerated.
4170
4171 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4172
4173         * elf/dl-open.c: Include <atomic.h>.
4174         * elf/dl-lookup.c: Likewise.
4175
4176 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4177
4178         * sysdeps/unix/sysv/linux/kernel-features.h
4179         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4180         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4181         unconditionally.
4182         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4183         unconditionally.
4184         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4185         condition on __ASSUME_CLONE_THREAD_FLAGS.
4186
4187 2012-08-14  Andreas Jaeger  <aj@suse.de>
4188
4189         * sysdeps/i386/fpu/libm-test-ulps: Update.
4190
4191 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4192
4193         * include/atomic.h (atomic_exchange_and_add): Split into ...
4194         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4195         New atomic macros.
4196
4197 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4198
4199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4200
4201 2012-08-13  Jeff Law <law@redhat.com>
4202
4203         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4204         null byte in the output string.
4205
4206 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4207
4208         * sysdeps/unix/sysv/linux/kernel-features.h
4209         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4210         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4211         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4212         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4213         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4214         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4215         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4216
4217 2012-08-09  Jeff Law <law@redhat.com>
4218
4219         [BZ #13939]
4220         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4221         When avoid_arena is set, don't retry in the that arena.  Pick the
4222         next one, whatever it might be.
4223         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4224         (arena_lock): Pass in new parameter to arena_get2.
4225         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4226         arena_get2.
4227         (__libc_malloc): Unify retrying after main arena failure with
4228         __libc_memalign version.
4229         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4230
4231 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4232
4233         [BZ #14166]
4234         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4235         to __redirect_strstr.
4236         (__strstr_sse42): Use typeof __redirect_strstr.
4237         (__strstr_ia32): Likewise.
4238         (__libc_strstr): New prototype.
4239         (strstr): Renamed to ...
4240         (__libc_strstr): This.
4241         (strstr): New strong alias of __libc_strstr.
4242         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4243         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4244         __redirect_time.
4245         Include <time.h>.
4246         (__libc_time): New prototype.
4247         (time_ifunc): Replace time with __libc_time.
4248         (time): New strong alias and hidden definition of __libc_time.
4249         (__GI_time): Remove strong alias.
4250         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4251         Include <stddef.h>.
4252         (memmove): Redefined to __redirect_memmove.
4253         (__memmove_sse2): Use typeof __redirect_memmove.
4254         (__memmove_ssse3): Likewise.
4255         (__memmove_ssse3_back): Likewise.
4256         (__libc_memmove): New prototype.
4257         (memmove): Renamed to ...
4258         (__libc_memmove): This.
4259         (memmove): New strong alias of __libc_memmove.
4260
4261 2012-08-08  Mark Salter  <msalter@redhat.com>
4262
4263         * elf/elf.h
4264         (R_MN10300_TLS_GD): Define.
4265         (R_MN10300_TLS_LD): Likewise.
4266         (R_MN10300_TLS_LDO): Likewise.
4267         (R_MN10300_TLS_GOTIE): Likewise.
4268         (R_MN10300_TLS_IE): Likewise.
4269         (R_MN10300_TLS_LE): Likewise.
4270         (R_MN10300_TLS_DTPMOD): Likewise.
4271         (R_MN10300_TLS_DTPOFF): Likewise.
4272         (R_MN10300_TLS_TPOFF): Likewise.
4273         (R_MN10300_SYM_DIFF): Likewise.
4274         (R_MN10300_ALIGN): Likewise.
4275         (R_MN10300_NUM): Update.
4276
4277 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4278
4279         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4280         Remove.
4281
4282 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4283
4284         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4285
4286         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4287         sysdeps/unix -> sysdeps/posix move.
4288         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4289
4290 2012-08-07      Allan McRae     <allan@archlinux.org>
4291
4292         [BZ #14303]
4293         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4294         (SUNOS_CPP): Likewise.
4295         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4296         not found.
4297         (open_input): Call CPP using execvp.
4298
4299 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4300
4301         * sysdeps/unix/sysv/linux/kernel-features.h
4302         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4303         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4304         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4305         (__ASSUME_WAITID_SYSCALL): Likewise.
4306         * sysdeps/unix/sysv/linux/dl-execstack.c
4307         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4308         code unconditional.
4309         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4310         conditional code.
4311         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4312         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4313         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4314         code.
4315         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4316         unconditional.
4317         [__ASSUME_WAITID_SYSCALL]: Likewise.
4318         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4319
4320 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4321
4322         * sysdeps/unix/closedir.c: Renamed to ...
4323         * sysdeps/posix/closedir.c: ... here.
4324         * sysdeps/unix/dirfd.c: Renamed to ...
4325         * sysdeps/posix/dirfd.c: ... here.
4326         * sysdeps/unix/dirstream.h: Renamed to ...
4327         * sysdeps/posix/dirstream.h: ... here.
4328         * sysdeps/unix/fdopendir.c: Renamed to ...
4329         * sysdeps/posix/fdopendir.c: ... here.
4330         * sysdeps/unix/opendir.c: Renamed to ...
4331         * sysdeps/posix/opendir.c: ... here.
4332         * sysdeps/unix/readdir.c: Renamed to ...
4333         * sysdeps/posix/readdir.c: ... here.
4334         * sysdeps/unix/readdir_r.c: Renamed to ...
4335         * sysdeps/posix/readdir_r.c: ... here.
4336         * sysdeps/unix/rewinddir.c: Renamed to ...
4337         * sysdeps/posix/rewinddir.c: ... here.
4338         * sysdeps/unix/seekdir.c: Renamed to ...
4339         * sysdeps/posix/seekdir.c: ... here.
4340         * sysdeps/unix/telldir.c: Renamed to ...
4341         * sysdeps/posix/telldir.c: ... here.
4342         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4343         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4344         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4345         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4346
4347         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4348         * bits/fcntl.h: ... here.
4349
4350         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4351         not 0.
4352         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4353         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4354         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4355         (struct flock): Move l_start, l_len to the beginning.
4356         Use __pid_t for l_pid.
4357         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4358         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4359         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4360         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4361         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4362         [__USE_LARGEFILE64] (struct flock64): New type.
4363         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4364
4365         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4366         * bits/dirent.h: ... here.
4367
4368         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4369         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4370
4371 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4372
4373         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4374         Change from 2.6.0 to 2.6.16.
4375         * sysdeps/unix/sysv/linux/configure: Regenerated.
4376         * sysdeps/unix/sysv/linux/kernel-features.h
4377         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4378         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4379         version.
4380         (__ASSUME_UTIMES): Likewise.
4381         (__ASSUME_CLONE_STOPPED): Remove.
4382         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4383         architectures, not kernel version.
4384         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4385         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4386         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4387         (__ASSUME_WAITID_SYSCALL): Likewise.
4388         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4389         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4390         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4391         refer to older versions.
4392
4393 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4394
4395         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4396         Define alphasort64 as an alias.
4397         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4398         Define versionsort64 as an alias.
4399         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4400         Define scandir64 as an alias.
4401         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4402         Define scandirat64 as an alias.
4403         * dirent/alphasort64.c (alphasort64):
4404         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4405         * dirent/versionsort64.c: Likewise.
4406         * dirent/scandir64.c: Likewise.
4407         * dirent/scandirat64.c: Likewise.
4408         * sysdeps/wordsize-64/alphasort.c: File removed.
4409         * sysdeps/wordsize-64/alphasort64.c: File removed.
4410         * sysdeps/wordsize-64/scandir.c: File removed.
4411         * sysdeps/wordsize-64/scandir64.c: File removed.
4412         * sysdeps/wordsize-64/scandirat.c: File removed.
4413         * sysdeps/wordsize-64/scandirat64.c: File removed.
4414         * sysdeps/wordsize-64/versionsort.c: File removed.
4415         * sysdeps/wordsize-64/versionsort64.c: File removed.
4416         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4417         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4418         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4419         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4420         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4421         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4422         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4423         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4424
4425         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4426         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4427         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4428         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4429         [defined __arch64__ || defined __sparcv9]
4430         (__INO_T_MATCHES_INO64_T): New macro.
4431         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4432         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4433         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4434         * sysdeps/unix/sysv/linux/bits/dirent.h
4435         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4436         (_DIRENT_MATCHES_DIRENT64): New macro.
4437
4438         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4439         Define lockf64 as an alias.
4440         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4441         Define fseeko64 as an alias.
4442         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4443         Define ftello64 as an alias.
4444         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4445         Define _IO_fgetpos64 and fgetpos64 as aliases.
4446         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4447         Define _IO_fsetpos64 and fsetpos64 as aliases.
4448         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4449         Conditionalize body on this.
4450         * libio/fseeko64.c: Likewise.
4451         * libio/ftello64.c: Likewise.
4452         * libio/iofgetpos64.c: Likewise.
4453         * libio/iofsetpos64.c: Likewise.
4454         * sysdeps/wordsize-64/lockf.c: File removed.
4455         * sysdeps/wordsize-64/lockf64.c: File removed.
4456         * sysdeps/wordsize-64/fseeko.c: File removed.
4457         * sysdeps/wordsize-64/fseeko64.c: File removed.
4458         * sysdeps/wordsize-64/ftello.c: File removed.
4459         * sysdeps/wordsize-64/ftello64.c: File removed.
4460         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4461         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4462         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4463         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4464         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4465         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4466         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4467         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4468         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4469         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4470         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4471         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4472         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4473         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4474
4475         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4476         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4477         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4478         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4479         [defined __arch64__ || defined __sparcv9]
4480         (__OFF_T_MATCHES_OFF64_T): New macro.
4481         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4482         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4483         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4484         (__OFF_T_MATCHES_OFF64_T): New macro.
4485
4486 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4487
4488         * stdlib/secure-getenv.c (__secure_getenv): Replace
4489         GLIBC_2_16 with GLIBC_2_17.
4490
4491 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4492
4493         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4494         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4495
4496 2012-08-03  David S. Miller  <davem@davemloft.net>
4497
4498         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4499
4500 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4501
4502         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4503         Remove.
4504         (__ASSUME_CORRECT_SI_PID): Likewise.
4505         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4506         (__ASSUME_TMPFS_NAME): Likewise.
4507         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4508         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4509         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4510         (HAVE_AUX_SECURE): Make definition unconditional.
4511         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4512         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4513
4514 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4515
4516         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4517         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4518         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4519         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4520         __eloop_threshold instead of SYMLOOP_MAX.
4521
4522         * sysdeps/generic/eloop-threshold.h: New file.
4523         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4524         of MAXSYMLINKS.
4525         * elf/chroot_canon.c (chroot_canon): Likewise.
4526
4527 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4528
4529         [BZ #13717]
4530         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4531         Change to 2.6.0 everywhere.
4532         * sysdeps/unix/sysv/linux/configure: Regenerated.
4533         * sysdeps/unix/sysv/linux/kernel-features.h
4534         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4535         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4536         kernel versions.
4537         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4538         (__ASSUME_FUTEX_REQUEUE): Remove.
4539         (__ASSUME_STATFS64): Define unconditionally.
4540         (__ASSUME_AT_SECURE): Likewise.
4541         (__ASSUME_CORRECT_SI_PID): Likewise.
4542         (__ASSUME_TGKILL): Define without depending on kernel version for
4543         i386.
4544         (__ASSUME_UTIMES): Likewise.
4545         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4546         kernel version.
4547         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4548         (__ASSUME_TMPFS_NAME): Likewise.
4549         * README: Update reference to Linux kernel versions.
4550
4551 2012-08-02  Marek Polacek  <polacek@redhat.com>
4552
4553         [BZ# 14150]
4554         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4555         libc_cv_asm_type_prefix with %.
4556         * configure: Regenerated.
4557         * include/libc-symbols.h: Remove comment about
4558         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4559         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4560         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4561         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4562         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4563         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4564         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4565         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4566         * elf/tst-unique2mod1.c: Likewise.
4567         * elf/tst-unique1mod2.c: Likewise.
4568         * elf/tst-unique1mod1.c: Likewise.
4569         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4570         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4571         Replace ASM_TYPE_DIRECTIVE with .type.
4572         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4573         * sysdeps/i386/sysdep.h: Likewise.
4574         * sysdeps/x86_64/sysdep.h: Likewise.
4575         * sysdeps/sh/sysdep.h: Likewise.
4576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4577         Do not define ASM_TYPE_DIRECTIVE.
4578         * sysdeps/powerpc/sysdep.h: Likewise.
4579         * sysdeps/powerpc/powerpc32/sysdep.h:
4580         Replace ASM_TYPE_DIRECTIVE with .type.
4581         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4582         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4583         * sysdeps/i386/fpu/e_powf.S: Likewise.
4584         * sysdeps/i386/fpu/e_expl.S: Likewise.
4585         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4586         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4587         * sysdeps/i386/fpu/e_pow.S: Likewise.
4588         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4589         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4590         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4591         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4592         * sysdeps/i386/fpu/e_log2.S: Likewise.
4593         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4594         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4595         * sysdeps/i386/fpu/e_powl.S: Likewise.
4596         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4597         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4598         * sysdeps/i386/fpu/e_logl.S: Likewise.
4599         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4600         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4601         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4602         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4603         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4604         * sysdeps/i386/fpu/e_log.S: Likewise.
4605         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4606         * sysdeps/i386/fpu/e_logf.S: Likewise.
4607         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4608         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4609         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4610         * sysdeps/i386/fpu/e_log10.S: Likewise.
4611         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4612         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4613         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4614         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4615         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4616         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4617         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4618         * sysdeps/i386/i686/strtok.S: Likewise.
4619         * sysdeps/i386/i386-mcount.S: Likewise.
4620         * sysdeps/i386/strtok.S: Likewise.
4621         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4622         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4623         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4624         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4625         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4626         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4627         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4628         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4629         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4630         * sysdeps/x86_64/_mcount.S: Likewise.
4631         * sysdeps/x86_64/strtok.S: Likewise.
4632         * sysdeps/sh/_mcount.S: Likewise.
4633
4634 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4635
4636         * libio/iofopen.c: Include <fcntl.h>.
4637         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4638         (_IO_fopen64, fopen64): Define as aliases.
4639         * libio/iofopen64.c: Include <fcntl.h>.
4640         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4641         Conditionalize body on this.
4642         * sysdeps/wordsize-64/iofopen.c: File removed.
4643         * sysdeps/wordsize-64/iofopen64.c: File removed.
4644
4645 2012-08-01  Marek Polacek  <polacek@redhat.com>
4646
4647         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4648         Use dlfcn directly instead of a variable.
4649         (binfmt-subdir): Do not define.
4650         (dlfcn): Likewise.
4651
4652 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4653
4654         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4655         Remove all definitions.
4656         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4657         <kernel-features.h>.
4658         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4659         (miss_F_GETOWN_EX): Remove all definitions.
4660         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4661         macro definition.
4662         [!__ASSUME_FCNTL64]: Remove conditional code.
4663         [__ASSUME_FCNTL64]: Make code unconditional.
4664         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4665         <kernel-features.h>.
4666         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4667         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4668         (lockf64) [__NR_fcntl64]: Make code unconditional.
4669         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4670
4671         * sysdeps/unix/sysv/linux/kernel-features.h
4672         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4673         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4674         Make code unconditional.
4675         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4676         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4678         [__NR_vfork]: Make code unconditional.
4679         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4680         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4682         [__NR_vfork]: Make code unconditional.
4683         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4684         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4685
4686 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4687
4688         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4689         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4690
4691         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4692         Define mkstemp64 as an alias.
4693         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4694         Define mkstemps64 as an alias.
4695         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4696         Define mkostemp64 as an alias.
4697         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4698         Define mkostemps64 as an alias.
4699         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4700         Conditionalize body on this.
4701         * misc/mkostemp64.c: Likewise.
4702         * misc/mkostemps64.c: Likewise.
4703         * misc/mkstemps64.c: Likewise.
4704         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4705         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4706         * sysdeps/wordsize-64/mkostemp.c: File removed.
4707         * sysdeps/wordsize-64/mkstemp.c: File removed.
4708         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4709         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4710         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4711         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4712
4713         [BZ #14138]
4714         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4715         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4716         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4717         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4718
4719         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4720         compat_symbol macros from <shlib-compat.h> rather than the underlying
4721         default_symbol_version and symbol_version macros, so that DEFAULT
4722         lines in shlib-versions are respected.
4723         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4724
4725 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4726
4727         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4728         Declare with warn_unused_result.
4729         (setgid, setregid, setegid, setresgid): Likewise.
4730         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4731         Likewise.
4732         * WUR-REPORT: Remove set*id functions.
4733
4734 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4735
4736         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4737
4738 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4739
4740         * include/sys/socket.h (__libc_accept, __libc_accept4):
4741         Add attribute_hidden.
4742         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4743
4744         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4745         use of PTR_MANGLE.
4746         * inet/getnetgrent_r.c (setup): Likewise.
4747
4748         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4749
4750 2012-07-31  David S. Miller  <davem@davemloft.net>
4751
4752         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4753
4754 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4755
4756         [BZ #13629]
4757         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4758         value between 1.0 and 2.0 and smaller part has absolute value less
4759         than 1.0.
4760         * math/s_clog10.c (__clog10): Likewise.
4761         * math/s_clog10f.c (__clog10f): Likewise.
4762         * math/s_clog10l.c (__clog10l): Likewise.
4763         * math/s_clogf.c (__clogf): Likewise.
4764         * math/s_clogl.c (__clogl): Likewise.
4765         * math/libm-test.inc (clog_test): Add more tests.
4766         (clog10_test): Likewise.
4767         * sysdeps/i386/fpu/libm-test-ulps: Update.
4768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4769
4770 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4771
4772         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4773         Exit with zero in case no suitable GID is found, and write a
4774         message to standard error.
4775
4776 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4777
4778         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4779         rather than to 1.
4780         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4781         (MAXPATHLEN): Removed.
4782         (NOGROUP, NODEV): New macros.
4783         (setbit, clrbit, isset, isclr): New macros.
4784         (howmany, roundup, powerof2): New macros.
4785         (DEV_BSIZE): New macro.
4786
4787         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4788         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4789
4790         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4791         definition on [!__NO_LONG_DOUBLE_MATH].
4792
4793         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4794         PTR_MANGLE and PTR_DEMANGLE.
4795
4796         * socket/accept4.c (accept4): Rename to __libc_accept4.
4797         Define accept4 as a weak alias.
4798
4799         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4800         on [_DIRENT_HAVE_D_TYPE].
4801         * io/ftw.c (ftw_dir): Likewise.
4802
4803         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4804
4805         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4806
4807         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4808         Use the BSD numbers rather than the arbitrary ones we had.
4809         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4810         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4811         (SIGXCPU, SIGXFSZ): New macros.
4812         (_NSIG): Now 32.
4813
4814         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4815         initializer on [_LIBC_REENTRANT].
4816
4817         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4818         definitions inside [_POSIX_MAPPED_FILES].
4819
4820         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4821
4822         * dirent/opendir.c: Include <fcntl.h>.
4823
4824         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4825         (__libc_getspecific): Likewise.
4826         (__libc_key_create): Likewise.
4827
4828         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4829         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4830         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4831         (tmpfile64): Define as alias.
4832         * sysdeps/wordsize-64/tmpfile.c: File removed.
4833         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4834         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4835         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4836
4837         * stdio-common/vfscanf.c: Include <stdbool.h>.
4838         * nss/makedb.c: Likewise.
4839         * stdio-common/_i18n_number.h: Likewise.
4840         * argp/argp-help.c: Likewise.
4841         * posix/wordexp.c: Likewise.
4842         * sysdeps/posix/spawni.c: Likewise.
4843         * nss/nss_files/files-initgroups.c: Likewise.
4844         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4845         * nss/nss_files/files-initgroups.c: Likewise.
4846         * nss/nss_db/db-netgrp.c: Likewise.
4847         * nss/nss_db/db-initgroups.c: Likewise.
4848         * io/fchmodat.c: Include <sys/stat.h>.
4849
4850         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4851         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4852
4853         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4854         [HAVE_MMAP].
4855
4856         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4857         Add multiple inclusion protection.
4858
4859 2012-07-27  David S. Miller  <davem@davemloft.net>
4860
4861         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4862
4863 2012-07-27  Gary Benson  <gbenson@redhat.com>
4864
4865         [BZ #14298]
4866         * elf/rtld.c: Include <stap-probe.h>.
4867         (dl_main): Added static probes "init_start" and "init_complete".
4868         * elf/dl-load.c: Include <stap-probe.h>.
4869         (lose): Take new parameter "nsid".
4870         Added static probe "map_failed".
4871         (_dl_map_object_from_fd): Pass namespace id to lose.
4872         Added static probe "map_start".
4873         (open_verify): Pass namespace id to lose.
4874         * elf/dl-open.c: Include <stap-probe.h>.
4875         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4876         and "reloc_complete".
4877         * elf/dl-close.c: Include <stap-probe.h>.
4878         (_dl_close_worker): Added static probes "unmap_start" and
4879         "unmap_complete".
4880         * elf/rtld-debugger-interface.txt: New file documenting the above.
4881
4882 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4883
4884         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4885         rather than a string variable.
4886         * sunrpc/rpc_main.c (h_output): Likewise.
4887         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4888
4889 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4890
4891         * inet/check_native.c: New file.
4892
4893 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4894
4895         [BZ #13629]
4896         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4897         if larger part has absolute value 1.0.
4898         * math/s_clog10.c (__clog10): Likewise.
4899         * math/s_clog10f.c (__clog10f): Likewise.
4900         * math/s_clog10l.c (__clog10l): Likewise.
4901         * math/s_clogf.c (__clogf): Likewise.
4902         * math/s_clogl.c (__clogl): Likewise.
4903         * math/libm-test.inc (clog_test): Add more tests.
4904         (clog10_test): Likewise.
4905         * sysdeps/i386/fpu/libm-test-ulps: Update.
4906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4907
4908         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4909         (pltexit): Likewise.
4910         (La_regs): Likewise.
4911         (La_retval): Likewise.
4912         (int_retval): Likewise.
4913         Update #error for removed macros to refer only to definitions in
4914         tst-audit.h.
4915         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4916         macro.
4917         (pltexit): Likewise.
4918         (La_regs): Likewise.
4919         (La_retval): Likewise.
4920         (int_retval): Likewise.
4921         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4922         macro.
4923         (pltexit): Likewise.
4924         (La_regs): Likewise.
4925         (La_retval): Likewise.
4926         (int_retval): Likewise.
4927         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4928         macro.
4929         (pltexit): Likewise.
4930         (La_regs): Likewise.
4931         (La_retval): Likewise.
4932         (int_retval): Likewise.
4933         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4934         macro.
4935         (pltexit): Likewise.
4936         (La_regs): Likewise.
4937         (La_retval): Likewise.
4938         (int_retval): Likewise.
4939         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4940         macro.
4941         (pltexit): Likewise.
4942         (La_regs): Likewise.
4943         (La_retval): Likewise.
4944         (int_retval): Likewise.
4945         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4946         macro.
4947         (pltexit): Likewise.
4948         (La_regs): Likewise.
4949         (La_retval): Likewise.
4950         (int_retval): Likewise.
4951         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4952         macro definitions in tst-audit.h.
4953         * sysdeps/i386/tst-audit.h: New file.
4954         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4955         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4956         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4957         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4958         * sysdeps/sh/tst-audit.h: Likewise.
4959         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4960         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4961         * sysdeps/x86_64/tst-audit.h: Likewise.
4962
4963 2012-07-26  Andreas Jaeger  <aj@suse.de>
4964
4965         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4966         ptrace.
4967
4968         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4969         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4970         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4971         PTRACE_O_MASK.
4972         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4973         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4974         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4975
4976         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4977         value.
4978
4979         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4980         _sigsys.
4981         (si_call_addr, si_syscall, si_arch): Define new macro.
4982         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4983         _sigsys.
4984         (si_call_addr, si_syscall, si_arch): Define new marcro.
4985         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4986         _sigsys.
4987         (si_call_addr, si_syscall, si_arch): Define new macro.
4988         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4989         _sigsys.
4990         (si_call_addr, si_syscall, si_arch): Define new macro.
4991
4992 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4993
4994         [BZ #13717]
4995         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4996         Change to 2.4.21 where previously 2.4.1.
4997         * sysdeps/unix/sysv/linux/configure: Regenerated.
4998         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4999         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5000         Linux kernel version.
5001         (__ASSUME_STD_AUXV): Remove.
5002         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5003         kernel version.
5004         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5005         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5006         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5007         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5008         (__ASSUME_NETLINK_SUPPORT): Likewise.
5009         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5010         (__no_netlink_support): Remove conditional definition.
5011         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5012         Remove.
5013         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5014         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5015         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5016         (if_nameindex_ioctl): Remove.
5017         (if_nameindex_netlink): Do not handle __no_netlink_support.
5018         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5019         code.
5020         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5021         Remove conditional code.
5022         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5023         code.
5024         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5025         unconditional.
5026         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5027         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5028         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5029         Remove.
5030         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5031         [!__ASSUME_STD_AUXV]: Remove conditional code.
5032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5033         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5034         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5036         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5037         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5038         code.
5039         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5041         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5042         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5043         conditional code.
5044         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5046         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5047         code.
5048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5049         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5050         conditional code.
5051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5052         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5053         code unconditional.
5054         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5055         conditional code.
5056         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5057         unconditional.
5058         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5059         conditional code.
5060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5061         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5062         unconditional.
5063         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5064         conditional code.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5066         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5067         code unconditional.
5068         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5069         conditional code.
5070         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5071         unconditional.
5072         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5073         conditional code.
5074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5075         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5076         code unconditional.
5077         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5078         conditional code.
5079         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5080         unconditional.
5081         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5082         conditional code.
5083
5084 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5085
5086         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5087         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5088         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5089         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5090         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5091         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5092         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5093         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5094         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5095         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5096         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5097         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5098         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5099         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5100         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5101         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5102         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5103         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5104         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5105         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5106         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5107         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5108         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5109
5110 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5111
5112         * Versions.def: Add GLIBC_2.17.
5113         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5114         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5115         Introduce __libc_secure_getenv.
5116         * stdlib/Versions (2.17): Add secure_getenv
5117         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5118         * stdlib/secure-getenv.c: Rename __secure_getenv to
5119         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5120         symbol __secure_getenv for GLIBC_2.0.
5121         * stdlib/tst-secure-getenv.c: New.
5122         * stdlib/Makefile (tests): Add testcase.
5123         * manual/startup.texi (Environment Access): Document
5124         secure_getenv.
5125         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5126         __libc_secure_getenv.
5127         * inet/ruserpass.c (ruserpass): Likewise.
5128         * malloc/mtrace.c (mtrace): Likewise.
5129         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5130         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5131         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5132         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5133         HAVE_SECURE_GETENV.
5134         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5135         __secure_getenv to __libc_secure_getenv.
5136         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5138         Likewise.
5139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5140         Likewise.
5141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5143         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5145         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5147         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5148
5149 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5150
5151         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5152         (struct La_i86_retval): Likewise.
5153         (struct La_x86_64_regs): Likewise.
5154         (struct La_x86_64_retval): Likewise.
5155         (struct La_x32_regs): Likewise.
5156         (struct La_x32_retval): Likewise.
5157         (struct La_ppc32_regs): Likewise.
5158         (struct La_ppc32_retval): Likewise.
5159         (struct La_ppc64_regs): Likewise.
5160         (struct La_ppc64_retval): Likewise.
5161         (struct La_sh_regs): Likewise.
5162         (struct La_sh_retval): Likewise.
5163         (struct La_s390_32_regs): Likewise.
5164         (struct La_s390_32_retval): Likewise.
5165         (struct La_s390_64_regs): Likewise.
5166         (struct La_s390_64_retval): Likewise.
5167         (struct La_sparc32_regs): Likewise.
5168         (struct La_sparc32_retval): Likewise.
5169         (struct La_sparc64_regs): Likewise.
5170         (struct La_sparc64_retval): Likewise.
5171         (struct audit_ifaces): Remove architecture-specific pltenter and
5172         pltexit members.
5173         * sysdeps/i386/ldsodefs.h: New file.
5174         * sysdeps/powerpc/ldsodefs.h: Likewise.
5175         * sysdeps/s390/ldsodefs.h: Likewise.
5176         * sysdeps/sh/ldsodefs.h: Likewise.
5177         * sysdeps/sparc/ldsodefs.h: Likewise.
5178         * sysdeps/x86_64/ldsodefs.h: Likewise.
5179
5180 2012-07-25  Marek Polacek  <polacek@redhat.com>
5181
5182         [BZ #6808]
5183         * math/libm-test.inc (yn_test): Add another test.
5184         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5185         to ERANGE when the result is +-Inf.
5186         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5187         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5188         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5189         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5190
5191 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5194         equal to 0.
5195         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5196         clock_t.
5197         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5198
5199 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5200
5201         * configure.in <sysdeps resolving>: Correct printing
5202         Implies_before.
5203         * configure: Regenerate.
5204
5205 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5206
5207         * math/w_ilogb.c: Include <limits.h>.
5208         * math/w_ilogbl.c: Likewise.
5209
5210 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5211
5212         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5213         va_copy.  Document allowing for unavailable va_copy only as
5214         pre-C99 compatibility.
5215         * manual/string.texi (Copying and Concatenation): Use va_copy
5216         instead of __va_copy in concat example.
5217
5218 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5219
5220         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5221         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5222         it if not null.
5223
5224         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5225         with O_NOLINK passed to __file_name_lookup.
5226
5227         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5228         with O_NOLINK passed to __file_name_lookup.
5229
5230         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5231         negative N or less than NGIDS.
5232
5233         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5234         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5235         enough.  Use memcpy instead of strncpy.
5236
5237 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * elf/Makefile (check-data): Remove.
5240         (localplt.data): New vpath directive.
5241         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5242         instead of $(check-data).
5243         * scripts/data/localplt-generic.data: Move to ...
5244         * sysdeps/generic/localplt.data: ... here.
5245         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5246         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5247         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5249         ... here.
5250         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5252         ... here.
5253         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5254         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5255         ... here.
5256         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5258         ... here.
5259         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5260         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5261         ... here.
5262         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5263         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5264         ... here.
5265
5266 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5267
5268         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5269         PPC32 and PPC64 files.
5270         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5271         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5272
5273 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5274
5275         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5276         __makecontext_ret to ...
5277         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5278         ... here and call exit if uc_link is NULL.  New file.
5279         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5280         __makecontext_ret.S.
5281         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5282         __makecontext_ret to ...
5283         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5284         ... here and call exit if uc_link is NULL.  New file.
5285         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5286         __makecontext_ret.S.
5287
5288 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5289
5290         * elf/elf.h (R_390_IRELATIVE): New definition.
5291         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5292         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5293         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5294         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5295         (elf_machine_lazy_rel): Likewise.
5296         * sysdeps/s390/dl-irel.h: New file.
5297         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5298         * sysdeps/s390/s390-64/memset.S: New asm code.
5299         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5300         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5301         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5302         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5303         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5304         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5305         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5306         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5307         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5308         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5309         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5310         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5311         * sysdeps/s390/s390-32/memset.S: New asm code.
5312         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5313
5314 2012-07-17  Marek Polacek  <polacek@redhat.com>
5315
5316         [BZ #14349]
5317         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5318         * sysdeps/s390/s390-64/configure.in: Likewise.
5319         * sysdeps/sparc/configure.in: Likewise.
5320         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5321         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5322         * sysdeps/i386/configure.in: Likewise.
5323         * sysdeps/x86_64/configure.in: Likewise.
5324         * sysdeps/sh/configure.in: Likewise.
5325         * sysdeps/s390/s390-32/configure: Regenerated.
5326         * sysdeps/s390/s390-64/configure: Likewise.
5327         * sysdeps/x86_64/configure: Likewise.
5328         * sysdeps/sh/configure: Likewise.
5329         * sysdeps/powerpc/powerpc64/configure: Likewise.
5330         * sysdeps/powerpc/powerpc32/configure: Likewise.
5331         * sysdeps/sparc/configure: Likwise.
5332         * sysdeps/i386/configure: Likewise.
5333
5334         * elf/dl-open.c: Comment fixes.
5335
5336 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * Makefile [CXX] (check-data): Remove.
5339         [CXX] (c++-types.data): New vpath directive.
5340         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5341         vpath.  Do not allow for C++ type data being missing.
5342         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5343         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5344         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5345         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5346         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5347         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5348         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5350         ... here.
5351         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5353         ... here.
5354         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5355         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5356         ... here.
5357         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5358         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5359         ... here.
5360         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5361         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5362         ... here.
5363         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5365         ... here.
5366         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5368         ... here.
5369         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5370         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5371
5372         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5373         definitions to architecture-specific files.
5374         (TLS_IE): Likewise.
5375         (TLS_LD): Likewise.
5376         (TLS_GD): Likewise.
5377         * sysdeps/i386/tls-macros.h: New file.
5378         * sysdeps/powerpc/tls-macros.h: Likewise.
5379         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5380         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5381         * sysdeps/sh/tls-macros.h: Likewise.
5382         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5383         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5384         * sysdeps/x86_64/tls-macros.h: Likewise.
5385
5386 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5387
5388         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5389         zero value for regular exit case.
5390
5391         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5392         (__start_context): Preserve zero value for regular exit case.
5393
5394 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5395             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5396
5397         * manual/setjmp.texi (setcontext): Clarify normal process
5398         termination when uc_link is the null pointer.
5399         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5400         exit call.
5401
5402 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5403
5404         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5405         preprocessor.  Test for each exception mask separately.
5406
5407 2012-07-16  Andreas Jaeger  <aj@suse.de>
5408
5409         * po/ru.po: Update from translation team.
5410
5411 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5412
5413         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5414         equal to 0.
5415         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5416         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5417         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5418         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5419         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5420
5421 2012-07-13  Andreas Jaeger  <aj@suse.de>
5422
5423         * po/fr.po: Update from translation team.
5424
5425 2012-07-12  Marek Polacek  <polacek@redhat.com>
5426
5427         [BZ #14173]
5428         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5429         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5430         loop condition.
5431
5432 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5433
5434         [BZ #13717]
5435         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5436         Change to 2.4.1 where previously 2.4.0.
5437         * sysdeps/unix/sysv/linux/configure: Regenerated.
5438         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5439         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5440         version.
5441         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5442         (__ASSUME_AT_CLKTCK): Remove.
5443         (__ASSUME_AT_PAGESIZE): Likewise.
5444         (__ASSUME_AT_XID): Likewise.
5445         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5446         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5447         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5448         unconditionally.
5449         (HAVE_AUX_PAGESIZE): Likewise.
5450         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5451         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5452         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5453
5454 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5455
5456         [BZ #14307]
5457         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5458         the temporary buffer used to invoke __gethostbyname2_r,
5459         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5460         host_data / struct gaih_addrtuple.
5461         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5462         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5463         header file nss/nsswitch.h.
5464         * nss/nsswitch.h (global scope): Add definition of implementation
5465         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5466         resolv/nss_dns/dns-host.c).
5467
5468 2012-07-11  Andreas Jaeger  <aj@suse.de>
5469
5470         * po/fr.po: Update from translation team.
5471
5472         * po/sv.po: Update from translation team
5473         * po/fr.po: Another update from translation team.
5474
5475 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5476
5477         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5478         for subnormals or multiply small sinh result by itself.
5479         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5481
5482 2012-07-11  David S. Miller  <davem@davemloft.net>
5483
5484         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5485
5486 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5487
5488         [BZ #14347]
5489         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5490         (INTERNAL_MARK): Shift it here.
5491
5492 2012-07-10  Marek Polacek  <polacek@redhat.com>
5493
5494         [BZ #14151]
5495         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5496         libc_cv_asm_global_directive with .globl.
5497         * configure: Regenerated.
5498         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5499         with .globl.
5500         * sysdeps/i386/configure: Regenerated.
5501         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5502         with .globl.
5503         * sysdeps/x86_64/configure: Regenerated.
5504         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5505         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5506         * elf/tst-unique2mod2.c: Likewise.
5507         * elf/tst-unique2mod1.c: Likewise.
5508         * elf/tst-unique1mod2.c: Likewise.
5509         * elf/tst-unique1mod1.c: Likewise.
5510         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5511         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5512         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5513         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5514         * sysdeps/mach/sysdep.h: Likewise.
5515         * sysdeps/i386/sysdep.h: Likewise.
5516         * sysdeps/i386/i386-mcount.S: Likewise.
5517         * sysdeps/x86_64/_mcount.S: Likewise.
5518         * sysdeps/x86_64/sysdep.h: Likewise.
5519         * sysdeps/sh/_mcount.S: Likewise.
5520         * sysdeps/sh/sysdep.h: Likewise.
5521         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5522         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5523         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5524         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5525         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5526         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5527         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5528         * locale/localeinfo.h: Likewise.
5529         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5530         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5531
5532 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5533
5534         [BZ #14336]
5535         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5536         system".
5537         * manual/message.texi (The Uniforum approach): Likewise.
5538         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5539         (glibc iconv Implementation): Likewise.
5540
5541 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5542
5543         [BZ #14337]
5544         * math/s_clog.c (__clog): Avoid scaling a value down where that
5545         could result in underflow.
5546         * math/s_clog10.c (__clog10): Likewise.
5547         * math/s_clog10f.c (__clog10f): Likewise.
5548         * math/s_clog10l.c (__clog10l): Likewise.
5549         * math/s_clogf.c (__clogf): Likewise.
5550         * math/s_clogl.c (__clogl): Likewise.
5551         * math/libm-test.inc (clog_test): Add more tests.
5552         (clog10_test): Likewise.
5553         * sysdeps/i386/fpu/libm-test-ulps: Update.
5554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5555
5556 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5557
5558         [BZ #14283]
5559         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5560         by 7 not 8 to examine high bit of fractional part.
5561
5562         [BZ #14042]
5563         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5564         for call to __mcount_internal.
5565         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5566         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5567         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5568
5569 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5570
5571         [BZ #14154]
5572         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5573         approximation for values within 0x1p-13f of an odd multiple of
5574         pi/4.
5575         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5576         exception.  Add more tests.
5577         * sysdeps/i386/fpu/libm-test-ulps: Update.
5578
5579         [BZ #6778]
5580         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5581         inputs and return -1 for them.  Do not check for +Inf in case not
5582         reachable for +Inf.
5583         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5584         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5585         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5586         and return -1 for them.  Do not check for +Inf in case not
5587         reachable for +Inf.
5588         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5589         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         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5594         spurious underflow.
5595         * sysdeps/i386/fpu/libm-test-ulps: Update.
5596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5597
5598 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5599
5600         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5601
5602 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5603
5604         [BZ #14157]
5605         [BZ #14331]
5606         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5607         could result in spurious underflow.  Scale down values above
5608         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5609         * math/s_csqrtf.c (__csqrtf): Likewise.
5610         * math/s_csqrtl.c (__csqrtl): Likewise.
5611         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5612         spurious underflow.
5613         * sysdeps/i386/fpu/libm-test-ulps: Update.
5614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5615
5616 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5617
5618         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5619         xopen-msg.sed.
5620         * catgets/xopen-msg.awk: New file.
5621         * catgets/xopen-msg.sed: Removed.
5622
5623         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5624         po2text.sed.
5625         * intl/po2test.awk: New file.
5626         * intl/po2test.sed: Removed.
5627
5628 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5629
5630         [BZ #14328]
5631         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5632         or multiply small sinh result by itself.
5633         * math/s_ctanf.c (__ctanf): Likewise.
5634         * math/s_ctanh.c (__ctanh): Likewise.
5635         * math/s_ctanhf.c (__ctanhf): Likewise.
5636         * math/s_ctanhl.c (__ctanhl): Likewise.
5637         * math/s_ctanl.c (__ctanl): Likewise.
5638         * math/libm-test.inc (ctan_test_tonearest): New function.
5639         (ctan_test_towardzero): Likewise.
5640         (ctan_test_downward): Likewise.
5641         (ctan_test_upward): Likewise.
5642         (ctanh_test_tonearest): Likewise.
5643         (ctanh_test_towardzero): Likewise.
5644         (ctanh_test_downward): Likewise.
5645         (ctanh_test_upward): Likewise.
5646         (main): Call these new functions.
5647         * sysdeps/i386/fpu/libm-test-ulps: Update.
5648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5649
5650 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5651
5652         * .gitignore: Delete /ports entry.
5653
5654 2012-07-03  Andreas Jaeger  <aj@suse.de>
5655
5656         * po/bg.po: Update from translation team.
5657         * po/cs.po: Likewise.
5658         * po/de.po: Likewise.
5659         * po/hr.po: Likewise.
5660         * po/nl.pl: Likewise.
5661         * po/pl.po: Likewise.
5662         * po/vi.po: Likewise.
5663
5664 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * Makeconfig [!+link] (+link-before-libc): New variable.
5667         [!+link] (+link-after-libc): Likewise.
5668         [!+link] (+link-tests): Likewise.
5669         [!+link] (+link): Define in terms of $(+link-before-libc) and
5670         $(+link-after-libc).
5671         [!+link-static] (+link-static-before-libc): New variable.
5672         [!+link-static] (+link-static-after-libc): Likewise.
5673         [!+link-static] (+link-static-tests): Likewise.
5674         [!+link-static] (+link-static): Define in terms of
5675         $(+link-static-before-libc) and $(+link-static-after-libc).
5676         [build-shared] (link-libc-before-gnulib): New variable.
5677         [build-shared] (link-libc-tests): Likewise.
5678         [build-shared] (link-libc): Define in terms of
5679         $(link-libc-before-gnulib).
5680         [!build-shared] (link-libc-tests): New variable.
5681         (link-libc-static-tests): New variable.
5682         [!gnulib] (gnulib-arch): New variable.
5683         [!gnulib] (gnulib-tests): Likewise.
5684         [!gnulib] (static-gnulib-arch): Likewise.
5685         [!gnulib] (static-gnulib-tests): Likewise.
5686         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5687         Define with "=" instead of ":=".
5688         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5689         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5690         * Rules (binaries-all-notests): New variable.
5691         (binaries-all-tests): Likewise.
5692         (binaries-static-notests): Likewise.
5693         (binaries-static-tests): Likewise.
5694         (binaries-all): Define using $(binaries-all-notests) and
5695         $(binaries-all-tests).
5696         (binaries-static): Define using $(binaries-static-notests) and
5697         $(binaries-static-tests).
5698         (binaries-shared-tests): New variable.
5699         (binaries-shared-notests): Likewise.
5700         (binaries-shared): Remove variable.
5701         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5702         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5703         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5704         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5705         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5706         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5707         * elf/Makefile (sln-modules): New variable.
5708         (extra-objs): Add $(sln-modules:=.o).
5709         (ldconfig-modules): Add static-stubs.
5710         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5711         * elf/static-stubs.c: New file.
5712
5713         [BZ #14283]
5714         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5715         by 7 not 8 to examine high bit of fractional part.  Use volatile
5716         variables when splitting into final array of floats if
5717         __FLT_EVAL_METHOD__ != 0.
5718         * math/libm-test.inc (cos_test): Add another test.
5719         (sin_test): Likewise.
5720         * sysdeps/i386/fpu/libm-test-ulps: Update.
5721
5722         [BZ #14273]
5723         * math/libm-test.inc (cosh_test): Add more tests.
5724
5725         * version.h (RELEASE): Set to "development".
5726         (VERSION): Set to "2.16.90".
5727
5728 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5729
5730         * NEWS: Update copyright. Remove last-updated date.
5731         Mention math library bug fixes and timezone data changes.
5732         * README: Mention GNU/Hurd, x32, and HPPA support status.
5733
5734 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5735
5736         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5737
5738 2012-06-27  Andreas Jaeger  <aj@suse.de>
5739
5740         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5741
5742 2012-06-25  Andreas Jaeger  <aj@suse.de>
5743
5744         * sysdeps/s390/fpu/libm-test-ulps: Update.
5745
5746 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5747             Thomas Schwinge  <thomas@codesourcery.com>
5748
5749         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5750         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5751         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5752         fanotify_mark.
5753
5754 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5755
5756         * sysdeps/mach/start.c: Remove file.
5757         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5758         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5759         * sysdeps/sh/init-first.c: Likewise.
5760
5761         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5762         registers for frame unwinding purposes, add CFI directives.
5763         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5764         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5765         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5766         Likewise.
5767
5768         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5769         __fortify_fail returning.
5770         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5771
5772         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5773         sysdeps/sh/____longjmp_chk.S.
5774         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5775         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5776         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5777         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5778
5779         * sysdeps/sh/abort-instr.h: New file.
5780         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5781         process in case exit returns.
5782
5783         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5784         initialize the GOT register before use.
5785
5786         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5787         calculation of ARGC > 4.
5788
5789         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5790         meaningful names to some local labels.
5791
5792 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5793             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5794
5795         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5796         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5797         (__arch_compare_and_exchange_val_16_acq): Likewise.
5798         (__arch_compare_and_exchange_val_32_acq): Likewise.
5799         (atomic_exchange_and_add): Fix gUSA sequence.
5800         (atomic_add): Likewise.
5801         (atomic_add_negative): Likewise.
5802         (atomic_add_zero): Likewise.
5803         (atomic_bit_test_set): Likewise.
5804
5805 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5806
5807         [BZ #13579]
5808         * include/link.h (struct link_map): Add l_free_initfini.
5809         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5810         l_initfini.
5811         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5812         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5813         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5814         set.
5815
5816 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5817
5818         * configure.in: Use AC_LANG_SOURCE.
5819         * configure: Regenerate.
5820
5821 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5822
5823         * configure.in (libc_cv_localstatedir): New substituted variable.
5824         * configure: Regenerated.
5825         * config.make.in (localstatedir): New variable, substituted from
5826         libc_cv_localstatedir.
5827         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5828         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5829         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5830         * sysdeps/gnu/configure: Regenerated.
5831
5832 2012-06-21  Jeff Law  <law@redhat.com>
5833
5834         [BZ #14277]
5835         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5836         free.  Simplify list management for _LIBC case.
5837
5838 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5839
5840         [BZ #14273]
5841         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5842         Clear sign bit of 64-bit integer value before comparing against
5843         overflow value.
5844
5845         * sysdeps/mach/configure: Regenerated.
5846
5847 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5848
5849         [BZ #14278]
5850         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5851
5852 2012-06-21  Jeff Law  <law@redhat.com>
5853
5854         [BZ #13882]
5855         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5856         uint16_t for elements in the "seen" array to avoid char overflows.
5857         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5858         * elf/dl-open.c (dl_open_worker): Likewise.
5859
5860 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5861
5862         * scripts/list-sources.sh: Scan PORTS for translations.
5863         * po/libc.pot: Regenerated.
5864
5865 2012-06-21  Andreas Jaeger  <aj@suse.de>
5866
5867         [BZ #12194]
5868         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5869         warning.
5870         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5871         * bits/byteswap-16.h (__bswap_16): Likewise.
5872         * bits/byteswap.h (__bswap_constant_16): Likewise.
5873
5874 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5875
5876         [BZ #14117]
5877         * sysdeps/i386/fpu_control.h: Removed.
5878         * sysdeps/x86_64/fpu_control.h: Moved to ...
5879         * sysdeps/x86/fpu_control.h: Here.
5880
5881         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5882         (_FPU_SETCW): Likewise.
5883
5884 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5885
5886         [BZ #14117]
5887         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5888         * sysdeps/x86/fpu/bits/mathinline.h: This.
5889         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5890
5891         [BZ #14050]
5892         [BZ #14117]
5893         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5894         functions if __x86_64__ is defined.
5895
5896 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5897
5898         * string/endian.h: Add !__ASSEMBLER__ condition for including
5899         conversion interfaces.
5900
5901 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5902
5903         [BZ #14241]
5904         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5905         of ABS(x) in calculating zero to negative powers other than odd
5906         integers.
5907         * math/libm-test.inc (pow_test): Add more tests.
5908
5909 2012-06-15  Andreas Jaeger  <aj@suse.de>
5910
5911         * manual/contrib.texi (Contributors): Update entry of Liubov
5912         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5913         Machado Filho.
5914
5915 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5916
5917         * string/string.h: Add __wur to GNU version of strerror_r.
5918
5919 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5920
5921         [BZ #14229]
5922         * string/Makefile (tests): Add tst-strtok_r.
5923         * string/tst-strtok_r.c: New file.
5924         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5925         RAX_LP/RDX_LP on SAVE_PTR.
5926
5927 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5928
5929         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5930
5931 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5932
5933         * libm_test.inc (csqrt_test): Allow more spurious underflow
5934         exceptions.
5935         (j0_test): Likewise.
5936         (j1_test): Likewise.
5937         (y0_test): Likewise.
5938         (y1_test): Likewise.
5939
5940 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5941
5942         * po/Makefile (libc.pot): Use UTF-8 charset.
5943
5944 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5945
5946         [BZ #14210]
5947         Suppress sign-conversion warning from FD_SET.
5948         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5949         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5950         not unsigned long int.
5951         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5952
5953 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5954
5955         [BZ #14050]
5956         [BZ #14117]
5957         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5958         __extern_always_inline instead of __extern_inline.
5959         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5960         (__signbit): Likewise.
5961         (__signbitl): Support C++ namespace.
5962         (lrintf): New inline function.
5963         (lrint): Likewise.
5964         (llrintf): Likewise.
5965         (llrint): Likewise.
5966         (fmaxf): Likewise.
5967         (fmax): Likewise.
5968         (fminf): Likewise.
5969         (fmin): Likewise.
5970         (rint): Likewise.
5971         (rintf): Likewise.
5972         (ceil): Likewise.
5973         (ceilf): Likewise.
5974         (floor): Likewise.
5975         (floorf): Likewise.
5976         (nearbyint): Likewise.
5977         (nearbyintf): Likewise.
5978
5979 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5980
5981         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5982         non-default versions.
5983
5984 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5985
5986         [BZ #14218]
5987         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5988
5989 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5990
5991         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5992         (FE_UPWARD, FE_DOWNWARD): Don't define.
5993         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5994         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5995
5996         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5997         reading it.
5998         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5999         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6000
6001 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6002
6003         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6004         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6005         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6006         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6007
6008 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         [BZ #14117]
6011         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6012         * sysdeps/i386/fpu/Implies: New file.
6013         * sysdeps/x86_64/fpu/Implies: Likewise.
6014         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6015         * sysdeps/x86/fpu/bits/fenv.h: This.
6016
6017         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6018         __SSE_MATH__.
6019
6020 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6021
6022         [BZ #14134]
6023         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6024         character 0xffff that matches the last element of the
6025         conversion table.
6026
6027 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6028
6029         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6030         fmodl commit.
6031
6032 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6033
6034         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6035         values higher than 25.6283.
6036
6037 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6038
6039         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6040         subnormal exponent extraction and add some __builtin_expect.
6041         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6042         Fix for subnormal mantissa calculation.
6043
6044 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6045
6046         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6047         cpu2 is -1 and errno is not ENOSYS.
6048
6049 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         [BZ #14117]
6052         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6053         * sysdeps/x86/bits/string.h: This.
6054         * sysdeps/x86_64/bits/string.h: Removed.
6055
6056         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6057         if not compiling for x86-64, but compiling for >= i486.
6058
6059         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6060         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6061
6062         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6063         New macro from Linux kernel 3.4.0.
6064         (FP_XSTATE_MAGIC2): Likewise.
6065         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6066         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6067         (struct _fpx_sw_bytes): New struct.
6068         (struct _xsave_hdr): Likewise.
6069         (struct _ymmh_state): Likewise.
6070         (struct _xstate): Likewise.
6071
6072         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6073         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6074         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6075         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6076         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6077         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6078
6079         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6080         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6081         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6082         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6083         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6084         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6085
6086 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6087
6088         [BZ #13743]
6089         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6090         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6091         (sysdep_headers): Include sys/platform/ppc.h.
6092         * sysdeps/powerpc/test-gettimebase.c: Test for
6093         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6094         * manual/Makefile (appendices): Include platform.texi.
6095         * manual/contrib.texi (Contributors): Update @node pointers.
6096         * manual/maint.texi (Maintenance): Likewise.
6097         (Platform): New node.
6098         * manual/platform.texi: New file.  Document the new features.
6099
6100 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6101             Jakub Jelinek  <jakub@redhat.com>
6102
6103         [BZ #14188]
6104         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6105         where __builtin_expect is unavailable.
6106
6107 2012-06-03  David S. Miller  <davem@davemloft.net>
6108
6109         * stdlib/longlong.h: Updated from GCC.
6110
6111 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6112
6113         [BZ #14042]
6114         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6115         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6116         __mcount_internal.
6117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6118         (GLIBC_2.16): Likewise.
6119
6120 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6121
6122         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6123
6124 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6125
6126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6127         (default-abi): New variable.
6128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6129         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6130         variable.
6131         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6132         Likewise.
6133         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6134         Likewise.
6135         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6136         Likewise.
6137
6138         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6139         definition.  Document in comment.
6140
6141 2012-06-01  David S. Miller  <davem@davemloft.net>
6142
6143         * stdlib/longlong.h: Updated from GCC.
6144
6145 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6146
6147         [BZ #14117]
6148         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6149         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6150         sys/debugreg.h sys/io.h here.
6151         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6152         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6153         sys/io.h.
6154         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6155         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6156         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6157         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6158         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6159         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6160
6161         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6162         Define only if __x86_64__ is defined.
6163
6164 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6165
6166         [BZ #14048]
6167         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6168         Use int64_t for variable i.
6169         * math/libm-test.inc (fmod_test): Add more tests.
6170
6171         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6172         z computation is not scheduled after fetestexcept.
6173         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6174         Use math_force_eval instead of asm to ensure calculation scheduled
6175         before exception test.
6176         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6177         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6178
6179 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6180
6181         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6182         computation is not scheduled after fetestexcept.
6183
6184 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6185
6186         [BZ #14117]
6187         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6188         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6189
6190 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6191
6192         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6193         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6194
6195 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         [BZ #14117]
6198         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6199         <bits/wordsize.h>.
6200         (__WCHAR_MIN): Support __WORDSIZE == 64.
6201         (__WCHAR_MAX): Likewise.
6202
6203         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6204         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6205
6206         [BZ #14183]
6207         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6208         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6209
6210         [BZ #14117]
6211         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6212         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6213
6214         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6215         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6216
6217         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6218         Defined to 1 if __x86_64__ isn't defined.
6219         (_STAT_VER_LINUX_OLD): New.
6220         (st_atime): Remove duplicate.
6221         (st_mtime): Likewise.
6222         (st_ctime): Likewise.
6223
6224 2012-05-31  David S. Miller  <davem@davemloft.net>
6225
6226         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6227         entries.
6228
6229 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6230
6231         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6232         gen-libm-test.pl.
6233
6234         [BZ #14132]
6235         * elf/dl-reloc.c: Include <_itoa.h>.
6236         (_dl_reloc_bad_type): Remove use of INTUSE.
6237         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6238         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6239         * stdio-common/psiginfo.c (psiginfo): Likewise.
6240         * stdio-common/psignal.c (psignal): Likewise.
6241         * string/strsignal.c (strsignal): Likewise.
6242         * include/signal.h (_sys_siglist): Declare hidden proto.
6243         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6244         INTVARDEF with libc_hidden_data_def.
6245         * stdio-common/itoa-udigits.c: Likewise.
6246         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6247         (_itoa_lower_digits_internal): Remove declaration.
6248         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6249         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6250         (_sys_sigabbrev_internal): Remove aliases.
6251         (_sys_siglist): Define hidden alias.
6252
6253 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6254
6255         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6256         bits/sysctl.h.
6257
6258 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         [BZ #14117]
6261         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6262         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6263
6264         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6265         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6266         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6267         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6268         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6269         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6270
6271         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6272         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6273         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6274
6275         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6276         with __addr.
6277         (insw): Likewise.
6278         (insl): Likewise.
6279         (outsb): Likewise.
6280         (outsw): Likewise.
6281         (outsl): Likewise.
6282
6283         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6284         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6285         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6286
6287         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6288         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6289         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6290         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6291         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6292         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6293
6294         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6295         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6296
6297         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6298         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6299
6300         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6301         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6302         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6303
6304         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6305         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6306         to ...
6307         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6308
6309         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6310         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6311         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6312
6313         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6314         for x86-64.
6315         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6316
6317 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6318
6319         * math/math.h (M_El): Use two more decimal places.
6320         (M_LOG2El): Likewise.
6321         (M_LOG10El): Likewise.
6322         (M_LN2l): Likewise.
6323         (M_LN10l): Likewise.
6324         (M_PIl): Likewise.
6325         (M_PI_2l): Likewise.
6326         (M_PI_4l): Likewise.
6327         (M_1_PIl): Likewise.
6328         (M_2_PIl): Likewise.
6329         (M_2_SQRTPIl): Likewise.
6330         (M_SQRT2l): Likewise.
6331         (M_SQRT1_2l): Likewise.
6332
6333 2012-05-31  David S. Miller  <davem@davemloft.net>
6334
6335         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6336         values between float registers.
6337         * sysdeps/sparc/sparc64/memset.S: Likewise.
6338         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6339
6340 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6341
6342         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6343         -D_FORTIFY_SOURCE=1.
6344         (CPPFLAGS-tst-longjmp_chk.c): Define.
6345         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6346         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6347         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6348         CFLAGS-tst-wchar-h.c.
6349
6350 2012-05-31  Marek Polacek  <polacek@redhat.com>
6351
6352         [BZ #14132]
6353         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6354         __endmntent_internal): Remove declaration.
6355         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6356         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6357         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6358
6359 2012-05-30  David S. Miller  <davem@davemloft.net>
6360
6361         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6362         (___Q_simulate_exceptions): Use real FP ops rather than writing
6363         into the %fsr.
6364         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6365         Likewise.
6366
6367 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6368
6369         [BZ #14117]
6370         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6371         * sysdeps/x86/bits/xtitypes.h: This.
6372
6373         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6374         * sysdeps/x86/bits/wordsize.h: This.
6375
6376         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6377         * sysdeps/x86/bits/huge_vall.h: This.
6378
6379         * sysdeps/i386/bits/select.h: Removed.
6380         * sysdeps/x86_64/bits/select.h: Renamed to ...
6381         * sysdeps/x86/bits/select.h: This.
6382
6383         * sysdeps/i386/bits/setjmp.h: Removed.
6384         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6385         * sysdeps/x86/bits/setjmp.h: This.
6386
6387         * sysdeps/i386/bits/mathdef.h: Removed.
6388         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6389         * sysdeps/x86/bits/mathdef.h: This.
6390
6391 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6392
6393         [BZ #14132]
6394         * include/sys/socket.h (__connect_internal)
6395         (__libc_sa_len_internal): Remove declaration.
6396         (__connect, __libc_sa_len): Declare hidden_proto.
6397         (SA_LEN): Remove use of INTUSE.
6398         * socket/connect.c: Add libc_hidden_def.
6399         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6400         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6401         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6402         alias.
6403         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6404         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6405         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6406         of adding _internal alias.
6407
6408 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         [BZ #14117]
6411         * sysdeps/i386/bits/link.h: Removed.
6412         * sysdeps/i386/bits/linkmap.h: Likewise.
6413         * sysdeps/x86_64/bits/link.h: Renamed to ...
6414         * sysdeps/x86/bits/link.h: This.
6415         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6416         * sysdeps/x86/bits/linkmap.h: This.
6417
6418         * sysdeps/i386/bits/endian.h: Removed.
6419         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6420         * sysdeps/x86/bits/endian.h: This.
6421
6422         * sysdeps/i386/bits/byteswap.h: Removed.
6423         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6424         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6425         * sysdeps/x86/bits/byteswap.h: This.
6426         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6427         * sysdeps/x86/bits/byteswap-16.h: This.
6428         * sysdeps/i386/Implies: Add x86.
6429         * sysdeps/x86_64/Implies: Likewise.
6430
6431 2012-05-30  David S. Miller  <davem@davemloft.net>
6432
6433         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6434         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6435         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6436         (FP_TRAPPING_EXCEPTIONS): Define.
6437         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6438         (FP_TRAPPING_EXCEPTIONS): Define.
6439         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6440         subnormals only when inexact has been signalled or underflow
6441         exceptions are enabled.
6442         (_FP_PACK_CANONICAL): Likewise.
6443
6444 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6445
6446         [BZ #14183]
6447         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6448         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6449
6450 2012-05-30  Richard Henderson  <rth@twiddle.net>
6451
6452         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6453         with #ifndef NOT_IN_libc.
6454
6455         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6456         marked to avoid plt entry.
6457
6458 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6459
6460         [BZ #14112]
6461         * Makeconfig (default-abi): New macro.
6462         (abi-includes): Likewise.
6463         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6464         $(abi-$(default-abi)-lib-soname) for soname if defined.
6465         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6466         abi-variants.
6467         * Makefile (installed-stubs): Likewise.
6468         * include/stubs-biarch.h: Removed.
6469         * scripts/lib-names.awk: Only handle one library at a time.
6470         * scripts/soversions.awk: Remove WORDSIZE support.
6471         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6472         entries.
6473         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6474         Removed.
6475         (syscall-list-default-condition): Likewise.
6476         (syscall-list-default-condition): Likewise.
6477         (syscall-list-includes): Likewise.
6478         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6479         syscall-list-* with abi-*.  Handle undefined abi-variants.
6480         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6481         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6482         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6483         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6484         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6485         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6486         Removed.
6487         (syscall-list-32-options): Likewise.
6488         (syscall-list-32-condition): Likewise.
6489         (syscall-list-64-options): Likewise.
6490         (syscall-list-64-condition): Likewise.
6491         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6492         macro.
6493         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6494         Renamed to ...
6495         (abi-*): This.
6496         (abi-64-ld-soname): New macro.
6497         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6498         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6499         Renamed to ...
6500         (abi-*): This.
6501         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6502         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6503
6504 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6505
6506         * sysdeps/unix/sysv/linux/kernel-features.h
6507         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6508         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6509         include <kernel-features.h>.
6510         [!__NR_ftruncate64]: Remove conditional code.
6511         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6512         [__NR_ftruncate64]: Make code unconditional.
6513         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6514         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6515         include <kernel-features.h>.
6516         [!__NR_ftruncate64]: Remove conditional code.
6517         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6518         [__NR_ftruncate64]: Make code unconditional.
6519         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6521         include <kernel-features.h>.
6522         [!__NR_ftruncate64]: Remove conditional code.
6523         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6524         [__NR_ftruncate64]: Make code unconditional.
6525         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6527         include <kernel-features.h>.
6528         [!__NR_ftruncate64]: Remove conditional code.
6529         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6530         [__NR_ftruncate64]: Make code unconditional.
6531         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6532
6533         * configure.in (libc_cv_fpie): Weaken to a compile test using
6534         LIBC_TRY_CC_OPTION.
6535         * configure: Regenerated.
6536
6537 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6538
6539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6540         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6541         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6543         Refreshed.
6544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6547         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6549         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6550         Refreshed.
6551
6552 2012-05-27  David S. Miller  <davem@davemloft.net>
6553
6554         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6555         (___Q_zero): New.
6556         (__Q_simulate_exceptions): Return void.  Change to simulate
6557         exceptions by writing into the %fsr.
6558         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6559         (__Qp_handle_exceptions): Likewise.
6560         (numbers): Delete.
6561         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6562         __Qp_handle_exceptions.
6563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6564         __Qp_handle_exceptions.
6565         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6566         as unused and give dummy FP_RND_NEAREST initializer.
6567         (FP_INHIBIT_RESULTS): Define.
6568         (___Q_simulate_exceptions): Update declaration.
6569         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6570         formatting.
6571         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6572         as unused and give dummy FP_RND_NEAREST initializer.
6573         (__Qp_handle_exceptions): Update declaration.
6574         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6575         formatting.
6576
6577 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6578
6579         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6580         the temporary FPU control word.
6581         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6582         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6583         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6584         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6585         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6586         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6587         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6588         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6589         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6590         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6591         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6592
6593 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6594
6595         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6596         fields.
6597
6598 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6599
6600         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6601         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6602         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6603         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6604         Likewise.
6605         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6606         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6607         Likewise.
6608
6609 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6610
6611         * po/h.po: Update from translation team.
6612
6613 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6614
6615         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6616
6617         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6618         handling of denormals.
6619         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6620         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6621         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6622         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6623         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6624         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6625         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6626         Likewise.
6627
6628 2012-05-26  Marek Polacek  <polacek@redhat.com>
6629
6630         [BZ #14152]
6631         * math/libm-test.inc (fma_test): Don't always expect underflow
6632         exception.
6633
6634 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6635
6636         [BZ #12416]
6637         * elf/tst-execstack.c: Include stackinfo.h.
6638         (do_test): Adjust test case to ensure that pthread_getattr_np
6639         behaviour remains the same after marking stack executable.
6640
6641 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6642
6643         * sysdeps/unix/sysv/linux/kernel-features.h
6644         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6645         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6646         kernel-features.h.
6647         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6648         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6649         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6650         kernel-features.h.
6651         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6652         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6653
6654 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6655
6656         * configure.in: Define the default includes to being none.
6657         * configure: Regenerated.
6658
6659 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6660
6661         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6662         * sysdeps/x86_64/setjmp.S: Likewise.
6663         * sysdeps/i386/bsd-setjmp.S: Likewise.
6664         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6665         * sysdeps/i386/setjmp.S: Likewise.
6666         * sysdeps/i386/__longjmp.S: Likewise.
6667         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6668         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6669
6670         * include/stap-probe.h: New file.
6671         * configure.in: Handle --enable-systemtap.
6672         * configure: Regenerated.
6673         * config.h.in (USE_STAP_PROBE): New #undef.
6674         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6675         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6676         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6677
6678 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6679
6680         [BZ #13717]
6681         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6682         to 2.4.0 where earlier.
6683         * sysdeps/unix/sysv/linux/configure: Regenerated.
6684         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6685         <kernel-features.h>.
6686         [__ASSUME_32BITUIDS]: Make code unconditional.
6687         [!__ASSUME_32BITUIDS]: Remove conditional code.
6688         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6689         <kernel-features.h>.
6690         [__ASSUME_32BITUIDS]: Make code unconditional.
6691         [!__ASSUME_32BITUIDS]: Remove conditional code.
6692         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6693         [__ASSUME_32BITUIDS]: Make code unconditional.
6694         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6695         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6696         <kernel-features.h>.
6697         [__ASSUME_32BITUIDS]: Make code unconditional.
6698         [!__ASSUME_32BITUIDS]: Remove conditional code.
6699         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6700         <kernel-features.h>.
6701         [__ASSUME_32BITUIDS]: Make code unconditional.
6702         [!__ASSUME_32BITUIDS]: Remove conditional code.
6703         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6704         <kernel-features.h>.
6705         [__ASSUME_32BITUIDS]: Make code unconditional.
6706         [!__ASSUME_32BITUIDS]: Remove conditional code.
6707         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6708         <kernel-features.h>.
6709         [__ASSUME_32BITUIDS]: Make code unconditional.
6710         [!__ASSUME_32BITUIDS]: Remove conditional code.
6711         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6712         <kernel-features.h>.
6713         [__ASSUME_32BITUIDS]: Make code unconditional.
6714         [!__ASSUME_32BITUIDS]: Remove conditional code.
6715         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6716         <kernel-features.h>.
6717         [__ASSUME_32BITUIDS]: Make code unconditional.
6718         [!__ASSUME_32BITUIDS]: Remove conditional code.
6719         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6720         <kernel-features.h>.
6721         [__ASSUME_32BITUIDS]: Make code unconditional.
6722         [!__ASSUME_32BITUIDS]: Remove conditional code.
6723         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6724         <kernel-features.h>.
6725         [__ASSUME_32BITUIDS]: Make code unconditional.
6726         [!__ASSUME_32BITUIDS]: Remove conditional code.
6727         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6728         <kernel-features.h>.
6729         [__ASSUME_32BITUIDS]: Make code unconditional.
6730         [!__ASSUME_32BITUIDS]: Remove conditional code.
6731         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6732         <kernel-features.h>.
6733         [__ASSUME_32BITUIDS]: Make code unconditional.
6734         [!__ASSUME_32BITUIDS]: Remove conditional code.
6735         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6736         <kernel-features.h>.
6737         [__NR_setresgid] (__setresgid): Do not declare.
6738         [__ASSUME_32BITUIDS]: Make code unconditional.
6739         [!__ASSUME_32BITUIDS]: Remove conditional code.
6740         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6741         <kernel-features.h>.
6742         [__NR_setresuid] (__setresuid): Do not declare.
6743         [__ASSUME_32BITUIDS]: Make code unconditional.
6744         [!__ASSUME_32BITUIDS]: Remove conditional code.
6745         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6746         <kernel-features.h>.
6747         [__ASSUME_32BITUIDS]: Make code unconditional.
6748         [!__ASSUME_32BITUIDS]: Remove conditional code.
6749         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6750         <kernel-features.h>.
6751         [__ASSUME_32BITUIDS]: Make code unconditional.
6752         [!__ASSUME_32BITUIDS]: Remove conditional code.
6753         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6754         <kernel-features.h>.
6755         [__ASSUME_32BITUIDS]: Make code unconditional.
6756         [!__ASSUME_32BITUIDS]: Remove conditional code.
6757         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6758         <kernel-features.h>.
6759         [__ASSUME_32BITUIDS]: Make code unconditional.
6760         [!__ASSUME_32BITUIDS]: Remove conditional code.
6761         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6762         <kernel-features.h>.
6763         [__ASSUME_32BITUIDS]: Make code unconditional.
6764         [!__ASSUME_32BITUIDS]: Remove conditional code.
6765         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6766         <kernel-features.h>.
6767         [__ASSUME_32BITUIDS]: Make code unconditional.
6768         [!__ASSUME_32BITUIDS]: Remove conditional code.
6769         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6770         <kernel-features.h>.
6771         [__ASSUME_32BITUIDS]: Make code unconditional.
6772         [!__ASSUME_32BITUIDS]: Remove conditional code.
6773         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6774         <kernel-features.h>.
6775         [__ASSUME_32BITUIDS]: Make code unconditional.
6776         [!__ASSUME_32BITUIDS]: Remove conditional code.
6777         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6778         <kernel-features.h>.
6779         [__ASSUME_32BITUIDS]: Make code unconditional.
6780         [!__ASSUME_32BITUIDS]: Remove conditional code.
6781         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6782         <kernel-features.h>.
6783         [__ASSUME_32BITUIDS]: Make code unconditional.
6784         [!__ASSUME_32BITUIDS]: Remove conditional code.
6785         * sysdeps/unix/sysv/linux/kernel-features.h
6786         (__ASSUME_SETRESUID_SYSCALL): Remove.
6787         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6788         (__ASSUME_32BITUIDS): Likewise.
6789         (__ASSUME_LDT_WORKS): Likewise.
6790         (__ASSUME_O_DIRECTORY): Likewise.
6791         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6792         architecture but not kernel version.
6793         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6794         (__ASSUME_MMAP2_SYSCALL): Likewise.
6795         (__ASSUME_STAT64_SYSCALL): Likewise.
6796         (__ASSUME_IPC64): Likewise.
6797         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6798         <kernel-features.h>.
6799         [__ASSUME_32BITUIDS]: Make code unconditional.
6800         [!__ASSUME_32BITUIDS]: Remove conditional code.
6801         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6802         <kernel-features.h>.
6803         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6804         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6805         132096]: Remove conditional code.
6806         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6807         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6808         <kernel-features.h>.
6809         [__ASSUME_32BITUIDS]: Make code unconditional.
6810         [!__ASSUME_32BITUIDS]: Remove conditional code.
6811         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6812         <kernel-features.h>.
6813         [__ASSUME_32BITUIDS]: Make code unconditional.
6814         [!__ASSUME_32BITUIDS]: Remove conditional code.
6815         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6816         <kernel-features.h>.
6817         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6818         unconditional.
6819         (__setresgid): Do not declare.
6820         [__ASSUME_32BITUIDS]: Make code unconditional.
6821         [!__ASSUME_32BITUIDS]: Remove conditional code.
6822         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6823         <kernel-features.h>.
6824         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6825         unconditional.
6826         (__setresuid): Do not declare.
6827         [__ASSUME_32BITUIDS]: Make code unconditional.
6828         [!__ASSUME_32BITUIDS]: Remove conditional code.
6829         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6830         <kernel-features.h>.
6831         [__ASSUME_32BITUIDS]: Make code unconditional.
6832         [!__ASSUME_32BITUIDS]: Remove conditional code.
6833         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6834         <kernel-features.h>.
6835         [__ASSUME_32BITUIDS]: Make code unconditional.
6836         [!__ASSUME_32BITUIDS]: Remove conditional code.
6837
6838 2012-05-25  Richard Henderson  <rth@twiddle.net>
6839
6840         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6841         dl_hwcap to ifunc resolver.
6842         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6843         elf_ifunc_invoke.
6844         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6845         dl_hwcap to ifunc resolver.
6846         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6847
6848 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6849
6850         [BZ #14153]
6851         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6852         for |x| <= 2**-26, not 2**-57.
6853         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6854         exception.
6855
6856 2012-05-24  Jeff Law  <law@redhat.com>
6857
6858         * stdio-common/Makefile (tests): Add bug25.
6859         * stdio-common/bug25.c: New test.
6860
6861 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6862
6863         [BZ #13576]
6864         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6865         multiple of MALLOC_ALIGNMENT in size.
6866         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6867
6868 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6869
6870         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6871         Require >= 256.
6872         (FILENAME_MAX): Use macro-int-constant.
6873         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6874         (_IOFBF): Use macro-int-constant.
6875         (_IOLBF): Likewise.
6876         (_IONBF): Likewise.
6877         (SEEK_CUR): Likewise.
6878         (SEEK_END): Likewise.
6879         (SEEK_SET): Likewise.
6880         (TMP_MAX): Likewise.
6881         (EOF): Use macro-int-constant.  Require < 0.
6882         (NULL): Use macro-constant.  Require == 0.
6883         (stdin): Require type to be FILE *.
6884         (stdout): Likewise.
6885         (stderr): Likewise.
6886         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6887         macro-int-constant.
6888         (EXIT_SUCCESS): Likewise.
6889         (NULL): Use macro-constant.  Require == 0.
6890         (RAND_MAX): Use macro-int-constant.
6891         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6892         [C99-based standards] (strtof): Require function.
6893         [C99-based standards] (strtold): Likewise.
6894         [C99-based standards] (strtoll): Likewise.
6895         [C99-based standards] (strtoull): Likewise.
6896         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6897         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6898         [ISO || ISO99 || ISO11] (math.h): Likewise.
6899         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6900         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6901         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6902
6903 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6904
6905         [BZ #14132]
6906         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6907         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6908         * intl/dgettext.c (DCGETTEXT): Likewise.
6909         * intl/gettext.c (DCGETTEXT): Likewise.
6910         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6911         * posix/regex_internal.h (gettext): Likewise.
6912         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6913         Remove declaration.
6914         * include/argz.h (__argz_count_internal)
6915         (__argz_stringify_internal): Remove declaration.
6916         (__argz_count, __argz_stringify): Declare hidden proto.
6917         * intl/dcgettext.c: Remove use of INTDEF.
6918         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6919         * string/argz-stringify.c: Likewise.
6920         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6921         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6922         Declare hidden proto.
6923         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6924         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6925         Declare hidden proto.
6926         * include/stdio.h (__asprintf_internal): Don't declare.
6927         (__asprintf): Don't define as macro.  Declare hidden proto.
6928         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6929         (__fsetlocking): Declare hidden proto.
6930         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6931         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6932         hidden proto.
6933         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6934         (_IO_setlinebuf): Remove use of INTUSE.
6935         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6936         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6937         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6938         Remove declaration.
6939         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6940         (_IO_do_flush): Remove use of INTUSE.
6941         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6942         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6943         (_IO_adjust_column, _IO_least_wmarker)
6944         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6945         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6946         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6947         (_IO_default_doallocate, _IO_wdefault_doallocate)
6948         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6949         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6950         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6951         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6952         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6953         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6954         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6955         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6956         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6957         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6958         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6959         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6960         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6961         proto.
6962         (_IO_flush_all_internal, _IO_adjust_column_internal)
6963         (_IO_default_uflow_internal, _IO_default_finish_internal)
6964         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6965         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6966         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6967         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6968         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6969         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6970         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6971         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6972         (_IO_file_close_internal, _IO_file_close_it_internal)
6973         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6974         (_IO_file_init_internal, _IO_file_attach_internal)
6975         (_IO_file_fopen_internal, _IO_file_read_internal)
6976         (_IO_file_sync_internal, _IO_file_seek_internal)
6977         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6978         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6979         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6980         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6981         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6982         (_IO_list_all_internal, _IO_link_in_internal)
6983         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6984         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6985         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6986         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6987         (_IO_do_write_internal, _IO_padn_internal)
6988         (_IO_getline_info_internal, _IO_getline_internal)
6989         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6990         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6991         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6992         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6993         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6994         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6995         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6996         with libc_hidden_ver, remove use of INTUSE.
6997         * libio/genops.c: Likewise.
6998         * libio/freopen.c: Likewise.
6999         * libio/freopen64.c: Likewise.
7000         * libio/iofclose.c: Likewise.
7001         * libio/iofdopen.c: Likewise.
7002         * libio/iofflush.c: Likewise.
7003         * libio/iofflush_u.c: Likewise.
7004         * libio/iofgets.c: Likewise.
7005         * libio/iofgets_u.c: Likewise.
7006         * libio/iofopen.c: Likewise.
7007         * libio/iofopncook.c: Likewise.
7008         * libio/iofread.c: Likewise.
7009         * libio/iofread_u.c: Likewise.
7010         * libio/ioftell.c: Likewise.
7011         * libio/iofwrite.c: Likewise.
7012         * libio/iogetline.c: Likewise.
7013         * libio/iogets.c: Likewise.
7014         * libio/iogetwline.c: Likewise.
7015         * libio/iopadn.c: Likewise.
7016         * libio/iopopen.c: Likewise.
7017         * libio/ioseekoff.c: Likewise.
7018         * libio/ioseekpos.c: Likewise.
7019         * libio/iosetbuffer.c: Likewise.
7020         * libio/iosetvbuf.c: Likewise.
7021         * libio/ioungetc.c: Likewise.
7022         * libio/ioungetwc.c: Likewise.
7023         * libio/iovdprintf.c: Likewise.
7024         * libio/iovsprintf.c: Likewise.
7025         * libio/iovsscanf.c: Likewise.
7026         * libio/memstream.c: Likewise.
7027         * libio/obprintf.c: Likewise.
7028         * libio/oldfileops.c: Likewise.
7029         * libio/oldiofclose.c: Likewise.
7030         * libio/oldiofdopen.c: Likewise.
7031         * libio/oldiofopen.c: Likewise.
7032         * libio/oldiopopen.c: Likewise.
7033         * libio/oldstdfiles.c: Likewise.
7034         * libio/putc.c: Likewise.
7035         * libio/setbuf.c: Likewise.
7036         * libio/setlinebuf.c: Likewise.
7037         * libio/stdfiles.c: Likewise.
7038         * libio/strops.c: Likewise.
7039         * libio/vasprintf.c: Likewise.
7040         * libio/vscanf.c: Likewise.
7041         * libio/vsnprintf.c: Likewise.
7042         * libio/vswprintf.c: Likewise.
7043         * libio/wfiledoalloc.c: Likewise.
7044         * libio/wfileops.c: Likewise.
7045         * libio/wgenops.c: Likewise.
7046         * libio/wmemstream.c: Likewise.
7047         * libio/wstrops.c: Likewise.
7048         * libio/__fpurge.c: Likewise.
7049         * libio/__fsetlocking.c: Likewise.
7050         * assert/assert.c: Likewise.
7051         * debug/fgets_chk.c: Likewise.
7052         * debug/fgets_u_chk.c: Likewise.
7053         * debug/fread_chk.c: Likewise.
7054         * debug/fread_u_chk.c: Likewise.
7055         * debug/gets_chk.c: Likewise.
7056         * debug/obprintf_chk.c: Likewise.
7057         * debug/vasprintf_chk.c: Likewise.
7058         * debug/vdprintf_chk.c: Likewise.
7059         * debug/vsnprintf_chk.c: Likewise.
7060         * debug/vsprintf_chk.c: Likewise.
7061         * malloc/mtrace.c: Likewise.
7062         * misc/error.c: Likewise.
7063         * misc/syslog.c: Likewise.
7064         * stdio-common/asprintf.c: Likewise.
7065         * stdio-common/fxprintf.c: Likewise.
7066         * stdio-common/getw.c: Likewise.
7067         * stdio-common/isoc99_fscanf.c: Likewise.
7068         * stdio-common/isoc99_scanf.c: Likewise.
7069         * stdio-common/isoc99_vfscanf.c: Likewise.
7070         * stdio-common/isoc99_vscanf.c: Likewise.
7071         * stdio-common/isoc99_vsscanf.c: Likewise.
7072         * stdio-common/printf-prs.c: Likewise.
7073         * stdio-common/printf_fp.c: Likewise.
7074         * stdio-common/printf_fphex.c: Likewise.
7075         * stdio-common/printf_size.c: Likewise.
7076         * stdio-common/putw.c: Likewise.
7077         * stdio-common/scanf.c: Likewise.
7078         * stdio-common/sprintf.c: Likewise.
7079         * stdio-common/tmpfile.c: Likewise.
7080         * stdio-common/vfprintf.c: Likewise.
7081         * stdio-common/vfscanf.c: Likewise.
7082         * stdlib/strfmon_l.c: Likewise.
7083         * sunrpc/openchild.c: Likewise.
7084         * sunrpc/xdr_stdio.c: Likewise.
7085         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7086         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7087
7088 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7089
7090         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7091
7092         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7093         in the third column, to generate for the shared library an IFUNC
7094         that uses _dl_vdso_vsym.
7095         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7096         * Makeconfig (object-suffixes-noshared): New variable.
7097
7098         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7099         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7100         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7101         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7102
7103         [BZ #14132]
7104         * include/sys/time.h (__gettimeofday): Remove macro.
7105         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7106         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7107         Remove INTDEF.
7108         (__gettimeofday): Add libc_hidden_def.
7109         (gettimeofday): Add libc_hidden_weak.
7110         * sysdeps/mach/gettimeofday.c: Likewise.
7111         * sysdeps/posix/gettimeofday.c: Likewise.
7112         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7113         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7114         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7115         (__gettimeofday_internal): Remove strong_alias.
7116         (__gettimeofday): Add libc_hidden_def.
7117         (gettimeofday): Add libc_hidden_weak.
7118         * sysdeps/unix/syscalls.list (gettimeofday):
7119         Remove __gettimeofday_internal alias.
7120
7121 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7122             H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         [BZ #12495]
7125         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7126         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7127         (largebin_index_32_big): New.
7128         (largebin_index): Use it for 16-byte alignment.
7129         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7130         correction with front_misalign.
7131
7132 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7133
7134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7135         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7136         Likewise.
7137         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7138         Likewise.
7139         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7140         Likewise.
7141         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7142         Likewise.
7143         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7144         Likewise.
7145         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7146         Likewise.
7147         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7148         Likewise.
7149         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7150         Likewise.
7151         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7152         Likewise.
7153         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7154         Likewise.
7155         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7156         Likewise.
7157         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7158         Likewise.
7159
7160         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7161         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7162
7163 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7164
7165         [BZ #10846]
7166         [BZ #14036]
7167         * math/libm-test.inc (exp_test): Add test from bug 14036.
7168         (pow_test): Add test from bug 10846.
7169
7170         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7171         and other flags.
7172         (special_function): Do not include flags in test name.
7173         (parse_args): Likewise.
7174         * sysdeps/i386/fpu/libm-test-ulps: Update.
7175         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7176         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7177         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7179
7180         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7181         exceptions.
7182         * math/libm-test.inc ("Philosophy"): Update comment about
7183         exception testing.
7184         (UNDERFLOW_EXCEPTION): New macro.
7185         (UNDERFLOW_EXCEPTION_OK): Likewise.
7186         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7187         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7188         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7189         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7190         (INVALID_EXCEPTION_OK): Update value.
7191         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7192         (OVERFLOW_EXCEPTION_OK): Likewise.
7193         (IGNORE_ZERO_INF_SIGN): Likewise.
7194         (test_exceptions): Handle underflow exceptions.
7195         (acos_test): Update for underflow exception expectations.
7196         (cexp_test): Likewise.
7197         (clog_test): Likewise.
7198         (clog10_test): Likewise.
7199         (csqrt_test): Likewise.
7200         (ctan_test): Likewise.
7201         (ctanh_test): Likewise.
7202         (exp_test): Likewise.
7203         (exp10_test): Likewise.
7204         (exp2_test): Likewise.
7205         (expm1_test): Likewise.
7206         (fma_test): Likewise.
7207         (j0_test): Likewise.
7208         (jn_test): Likewise.
7209         (nexttoward_test): Likewise.
7210         (pow_test): Likewise.
7211         (scalbn_test): Likewise.
7212         (scalbln_test): Likewise.
7213         (tan_test): Likewise.
7214         (y1_test): Likewise.
7215         * sysdeps/i386/fpu/libm-test-ulps: Update.
7216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7217
7218 2012-05-23  David S. Miller  <davem@davemloft.net>
7219
7220         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7221         (__libc_sigaction): Remove unused local variables.
7222
7223 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7224
7225         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7226
7227 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         mktime: avoid signed integer overflow
7230         * time/mktime.c (__mktime_internal): Do not mishandle the case
7231         where diff == INT_MIN.
7232
7233         mktime: simplify computation of average
7234         * time/mktime.c (ranged_convert): Use new time_t_avg function
7235         instead of rolling our own (probably-slower) code.
7236
7237         mktime: do not assume signed right shift propagates sign bit
7238         * time/mktime.c (isdst_differ): New static function.
7239         (__mktime_internal): No need to normalize tm_isdst now.
7240         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7241         tm_isdst values.
7242
7243         mktime: merge another wrapv change from gnulib
7244         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7245         from some compilers.
7246
7247         mktime: remove incorrect attempt at unusual arithmetics
7248         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7249         The code didn't really work on such machines anyway.
7250         (TYPE_MINIMUM): Assume two's complement.
7251         (twos_complement_arithmetic): Verify that long_int and time_t
7252         are two's complement (or unsigned, in the latter case).
7253
7254         mktime: check signed shifts on long_int and time_t, too
7255         * time/mktime.c (SHR): Check that shifts work as desired
7256         on the types long_int and time_t too, as SHR is used on
7257         such types.
7258
7259         mktime: do not assume 'long' is wide enough
7260         * time/mktime.c (verify): Move decl up.
7261         (long_int): New type.
7262         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7263         to remove assumption in the code that 'long' is wide enough to
7264         store year values.  This assumption is not true on x32 and on
7265         some non-glibc platforms.
7266
7267         mktime: merge wrapv change from gnulib
7268         * time/mktime.c (WRAPV): New macro.
7269         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7270         (guess_time_tm, __mktime_internal): Do not assume that signed
7271         integer overflow wraps around; modern compilers generate code
7272         where this assumption is no longer valid.
7273
7274 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7275
7276         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7277         Replace "jmp L(pseudo_end)" with "ret".
7278         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7279         Likewise.
7280
7281 2012-05-23  Andreas Jaeger  <aj@suse.de>
7282
7283         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7284         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7285
7286 2012-05-23  Andreas Jaeger  <aj@suse.de>
7287             Maximilian Attems  <max@stro.at>
7288
7289         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7290         New macros.
7291
7292 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7293
7294         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7295         code so that pseudo_end is just ret and the stack pointer is
7296         correct also for static library in error case.
7297
7298 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7299
7300         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7301         move to syscalls.list.
7302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7306
7307         * manual/install.texi (Running make install): Do not mention Linux
7308         kernel version for which pt_chown is not needed.
7309         (Linux): Do not mention problems with nscd with 2.0 kernels.
7310         * INSTALL: Regenerated.
7311
7312 2012-05-23  Andreas Jaeger  <aj@suse.de>
7313
7314         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7315         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7316         macro.
7317         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7318         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7319         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7320         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7321         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7322         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7323         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7324         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7325         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7326         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7327         * sysdeps/unix/sysv/linux/bits/in.h
7328         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7329
7330 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7331
7332         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7333         (PREPARE_VERSION): Just use assert instead, it will be elided
7334         under [NDEBUG] anyway.
7335
7336 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7337
7338         * sysdeps/unix/sysv/linux/Makefile: Include
7339         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7340         (sysdep_routines): Remove sysctl.
7341         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7342         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7343         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7344         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7345         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7346
7347 2012-05-22  Andreas Jaeger  <aj@suse.de>
7348
7349         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7350         that pseudo_end is just ret and the stack pointer is correct also
7351         for static library in error case.
7352
7353 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7354
7355         [BZ #14122]
7356         * nss/nsswitch.c (defconfig_entries): New variable.
7357         (__nss_database_lookup): Don't leak defconfig entries.
7358         (nss_parse_service_list): Don't leak on error paths.
7359         (free_database_entries): New function.
7360         (free_defconfig): New function.
7361         (free_mem): Move common code to free_database_entries.
7362
7363 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7364
7365         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7366         Add arch_prctl.
7367         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7368
7369         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7370         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7371         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7372         New macro.
7373         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7374         (INTERNAL_SYSCALL_TYPES): Likewise.
7375         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7376         (LOAD_REGS_TYPES_[1-6]): Likewise.
7377         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7378         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7379
7380 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7381
7382         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7383         copysignl for GLIBC_2_0.
7384         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7385         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7386         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7387         logbl for GLIBC_2_0.
7388         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7389         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7390
7391 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7394         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7395
7396         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7397         Use "neg %eax".
7398
7399         * time/mktime.c: Update copyright years.
7400
7401 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7402
7403         mktime: merge comment-quoting-style change from gnulib
7404         * time/mktime.c: Quote 'like this' in comments.
7405         The GNU coding standards suggest that we no longer quote `like this',
7406         as "`" and "'" are typically rendered asymmetrically nowadays.
7407         The typical gnulib style is to quote 'like this' when quoting
7408         code, and "like this" when quoting English.
7409
7410         * time/mktime.c (compile-command): Add "-I.".
7411
7412         mktime: merge mktime-internal.h change from gnulib
7413         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7414
7415         mktime: merge time_r change from gnulib
7416         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7417
7418         mktime: merge DEBUG change from gnulib
7419         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7420         case system <time.h> has a #define.
7421
7422         mktime: merge <sys/types.h> change from gnulib
7423         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7424         since <time.t> is now guaranteed to define time_t.
7425
7426         mktime: merge HAVE_CONFIG_H change from gnulib
7427         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7428
7429 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7430
7431         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7432         Use "neg %eax".
7433
7434         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7435         __rlim_t cast.
7436         (struct rusage): Use anonymous union to pad each field to
7437         __syscall_slong_t.
7438
7439 2012-05-21  David S. Miller  <davem@davemloft.net>
7440
7441         * Makefules (o-iterator): Remove .s cases.
7442         (compile-command.s): Delete.
7443         (COMPILE.s): Delete.
7444         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7445
7446 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * configure.in (libc_cv_predef_stack_protector): Only consider
7449         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7450         * configure: Regenerated.
7451
7452 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7453
7454         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7455         New macro.  Use R*LP on int and pointer.
7456         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7457         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7458         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7459         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7460
7461         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7462         [__WORDSIZE_TIME64_COMPAT32] instead of
7463         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7464         (struct utmp): Likewise.
7465         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7466         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7467         Renamed to ...
7468         (__WORDSIZE_TIME64_COMPAT32): This.
7469         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7470         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7471         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7472         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7473         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7474         (__WORDSIZE_TIME64_COMPAT32): New macro.
7475
7476 2012-05-21  Andreas Jaeger  <aj@suse.de>
7477
7478         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7479         only if [SHARED]. Add prototype for __wcschr_ia32.
7480
7481 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7482
7483         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7484         of %rbp unmolested in the jmp_buf while mangling the low bits.
7485         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7486         unmolested high bits of %rbp while demangling the low bits.
7487         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7488
7489 2012-05-21  Andreas Jaeger  <aj@suse.de>
7490
7491         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7492         * sunrpc/svc_simple.c: Use it for registerrpc.
7493         * sunrpc/xcrypt.c: Use it for passwd2des.
7494
7495         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7496
7497 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7498
7499         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7500         Don't define if [__SYSCALL_WORDSIZE != 32].
7501         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7502         New macro.
7503
7504 2012-05-21  Bruno Haible  <bruno@clisp.org>
7505             Andreas Jaeger  <aj@suse.de>
7506
7507         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7508         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7509         inptr and inend for must_buffer_ch.
7510         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7511         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7512         * stdio-common/Makefile (tests): Remove bug15.
7513         (bug15-ENV): Remove macro.
7514         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7515         anymore.
7516
7517 2012-05-19  Andreas Jaeger  <aj@suse.de>
7518             Roland McGrath  <roland@hack.frob.com>
7519
7520         * manual/contrib.texi: Completely rewritten. It contains now an
7521         alphabetical list of contributors and their contributions.
7522
7523 2012-05-21  Richard Henderson  <rth@twiddle.net>
7524
7525         * misc/getauxval.c (__getauxval): Use unsigned long int.
7526         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7527         (getauxval): Use unsigned long int.
7528
7529 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7532
7533 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7534
7535         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7536         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7537         __alignof__ (long double).
7538
7539 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7540
7541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7542
7543 2012-05-20  Richard Henderson  <rth@twiddle.net>
7544
7545         * misc/getauxval.c: New file.
7546         * misc/sys/auxv.h: New file.
7547         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7548         (routines): Add getauxval.
7549         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7550         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7551         * elf/dl-sysdep.c (_dl_auxv): Remove.
7552         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7553         * elf/dl-support.c (_dl_auxv): New variable.
7554         (_dl_aux_init): Initialize it.
7555         * manual/startup.texi (Auxiliary Vector): New node.
7556         * sysdeps/generic/bits/hwcap.h: New file.
7557         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7558         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7559         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7560         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7561         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7562         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7564         Update.
7565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7568         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7572         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7573
7574 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7575
7576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7577
7578 2012-05-19  David S. Miller  <davem@davemloft.net>
7579
7580         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7581
7582 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7583
7584         [BZ #14123]
7585         * math/s_ccosh.c: Include <float.h>
7586         (__ccosh): Avoid internal overflow calculating sinh and cosh
7587         values before multiplying by sin and cos values.
7588         * math/s_ccoshf.c: Likewise.
7589         * math/s_ccoshl.c: Likewise.
7590         * math/s_csin.c: Likewise.
7591         * math/s_csinf.c: Likewise.
7592         * math/s_csinl.c: Likewise.
7593         * math/s_csinh.c: Likewise.
7594         * math/s_csinhf.c: Likewise.
7595         * math/s_csinhl.c: Likewise.
7596         * math/libm-test.inc (ccos_test): Add more tests.
7597         (ccosh_test): Likewise.
7598         (csin_test): Likewise.
7599         (csinh_test): Likewise.
7600         * sysdeps/i386/fpu/libm-test-ulps: Update.
7601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7602
7603 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7604
7605         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7606         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7607
7608         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7609
7610 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7611
7612         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7613         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7614         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7615         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7616         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7617         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7618         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7619         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7620         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7621         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7622         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7623         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7624         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7625         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7626         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7627         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7628         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7629         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7630         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7631         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7632         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7633         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7634         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7635         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7636         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7637         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7638         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7639         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7640         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7641         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7642         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7643
7644 2012-05-18  Andreas Jaeger  <aj@suse.de>
7645
7646         * csu/.gitignore: Delete.
7647
7648 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7649
7650         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7651         (timex): Use __syscall_slong_t.
7652
7653 2012-05-18  Andreas Jaeger  <aj@suse.de>
7654             Carlos O'Donell  <carlos_odonell@mentor.com>
7655
7656         * manual/install.texi (Configuring and compiling): Update
7657         description about files modified in the source directory.
7658         * INSTALL: Regenerated.
7659
7660 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7661
7662         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7663         value.  Use "or" to set return value to -1.
7664         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7665         negate return value.
7666
7667 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7668
7669         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7670         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7671         failure if the compiler has Graphite support disabled.
7672         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7673         Likewise.
7674         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7675         CFLAGS-memmove.c): Likewise.
7676         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7677         Likewise.
7678
7679 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7680
7681         * sysdeps/x86_64/x32/_itoa.h: New file.
7682
7683         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7684         getdents system call only if kernel and user dirents have the
7685         same d_ino and d_off.
7686
7687         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7688         LLONG_MAX != LONG_MAX.
7689         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7690         (_fitoa_word): Likewise.
7691
7692         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7693         years.
7694         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7695         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7696         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7697
7698         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7699         include <bits/wordsize.h>.  Check __x86_64__ instead of
7700         __WORDSIZE.
7701         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7702         if __x86_64__ is defined.  Use anonymous union on fpstate.
7703
7704         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7705         anonymous union.
7706
7707 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7708
7709         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7710         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7711         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7712         Refer to _rtld_local_ro instead of _rtld_global_ro.
7713         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7714         Likewise.
7715         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7716         Likewise.
7717         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7718         Likewise.
7719         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7720         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7721         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7722
7723         * sysdeps/powerpc/powerpc32/dl-machine.c
7724         (__elf_machine_runtime_setup) [PROF]: Don't reference
7725         _dl_prof_resolve.
7726
7727 2012-05-18  Andreas Jaeger  <aj@suse.de>
7728
7729         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7730         function only available for GCCs before 3.4 since GCC 3.4
7731         introduced a builtin.
7732         (lrint): Likewise.
7733         (llrintf): Likewise.
7734         (llrint): Likewise.
7735         (fmaxf): Likewise.
7736         (fmax): Likewise.
7737         (fminf): Likewise.
7738         (fmin): Likewise.
7739         (rint): Likewise.
7740         (rintf): Likewise.
7741         (nearbyint): Likewise.
7742         (nearbyintf): Likewise.
7743         (ceil): Likewise.
7744         (ceilf): Likewise.
7745         (floor): Likewise.
7746         (floorf): Likewise.
7747
7748 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7749
7750         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7751         on both fields and cast pointer to __syscall_ulong_t.
7752
7753         * bits/types.h (__fsword_t): New type.
7754         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7755         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7756         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7757         (__FSWORD_T_TYPE): Likewise.
7758         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7759         (__FSWORD_T_TYPE): Likewise.
7760         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7761         (__FSWORD_T_TYPE): Likewise.
7762         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7763         (__FSWORD_T_TYPE): Likewise.
7764         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7765         __SWORD_TYPE with __fsword_t.
7766         (statfs64): Likewise.
7767
7768 2012-05-17  David S. Miller  <davem@davemloft.net>
7769
7770         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7771
7772 2012-05-17  Andreas Jaeger  <aj@suse.de>
7773
7774         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7775         warning.
7776
7777 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7778
7779         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7780
7781 2012-05-17  Andreas Jaeger  <aj@suse.de>
7782
7783         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7784         when it is used.
7785
7786 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7787
7788         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7789
7790 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7793         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7794
7795 2012-05-17  Andreas Jaeger  <aj@suse.de>
7796             Carlos O'Donell  <carlos_odonell@mentor.com>
7797
7798         [BZ #14059]
7799         * sysdeps/x86_64/multiarch/init-arch.h
7800         (bit_YMM_Usable): Rename to...
7801         (bit_AVX_Usable): ... this.
7802         (bit_FMA4_Usable): New macro.
7803         (bit_XMM_state): New macro.
7804         (bit_YMM_state): New macro.
7805         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7806         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7807         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7808         (CPUID_OSXSAVE): New macro.
7809         (CPUID_AVX): New macro.
7810         (CPUID_FMA4): New macro.
7811         (index_YMM_Usable): Rename to...
7812         (index_AVX_Usable): ... this.
7813         (HAS_AVX): Use HAS_ARCH_FEATURE.
7814         (HAS_FMA4): Likewise.
7815         (HAS_YMM_USABLE): Remove.
7816         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7817         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7818         are present.
7819         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7820         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7821         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7822         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7823         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7824
7825 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7826
7827         * math/libm-test.c: Support platforms without multiple rounding modes.
7828         * math/bug-nextafter.c: Support platforms without FP exceptions.
7829         * math/bug-nexttoward.c: Likewise.
7830         * math/test-fenv.c: Likewise.
7831         * math/test-misc.c: Likewise.
7832         * stdlib/bug-getcontext.c: Likewise.
7833
7834 2012-05-17  Andreas Jaeger  <aj@suse.de>
7835
7836         * manual/examples/search.c (critter_cmp): Change signature to
7837         avoid warnings.
7838         * manual/string.texi (Collation Functions): Likewise.
7839
7840 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7841
7842         * bits/types.h: Fold copyright years.
7843         * bits/typesizes.h: Likewise.
7844         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7845         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7846         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7847         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7848         * time/time.h: Likewise.
7849
7850 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7851
7852         [BZ #208]
7853         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7854         in instead of returning them.  Return void.
7855         (__libc_mallinfo): Accumulate over all arenas.
7856         (__malloc_stats): Adjust for change in int_mallinfo interface.
7857
7858 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7859
7860         [BZ #10375]
7861         * configure.in (NM): Add AC_CHECK_TOOL for it.
7862         (libc_extra_cflags): New substituted variable.
7863         Check for -fstack-protector being used implicitly.
7864         * configure: Regenerated.
7865         * config.make.in (config-extra-cflags): New variable,
7866         gets @libc_extra_cflags@.
7867         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7868
7869         [BZ #10375]
7870         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7871         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7872         * configure: Regenerated.
7873         * config.make.in (CPPUNDEFS): New substituted variable.
7874         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7875         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7876         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7877
7878 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7879
7880         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7881         (mq_attr): Use __syscall_slong_t.
7882
7883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7884
7885         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7886         Check __x86_64__ instead of __WORDSIZE.
7887         (_STAT_VER_LINUX): Likewise.
7888         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7889         __syscall_ulong_t and __syscall_slong_t.
7890         (stat64): Likewise.
7891
7892 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7893
7894         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7895
7896 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7897
7898         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7899
7900 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7901
7902         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7903         __syscall_ulong_t.
7904
7905         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7906         include <bits/wordsize.h>.  Check __x86_64__ instead of
7907         __WORDSIZE.
7908         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7909         defined.
7910         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7911
7912         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7913         include <bits/wordsize.h>.  Check __x86_64__ instead of
7914         __WORDSIZE.
7915         (user_regs_struct): Use "__extension__ unsigned long long"
7916         instead of "unsigned long" if __x86_64__ is defined.
7917         (user): Likewise.  Pad after pointer field if __ILP32__ is
7918         defined.
7919
7920 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7921
7922         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7923         versions 5 to 9.
7924         * configure: Regenerated.
7925         * manual/install.texi (texinfo): Increase version requirement to
7926         4.5 or later.
7927         * INSTALL: Regenerated.
7928
7929         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7930
7931 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7932
7933         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7934
7935         * sysdeps/x86_64/x32/ffs.c: New file.
7936
7937         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7938         __syscall_ulong_t.
7939         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7940         defined.  Use __syscall_ulong_t.
7941         (shminfo): Use __syscall_ulong_t.
7942         (shm_info): Likewise.
7943
7944         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7945         __syscall_ulong_t.
7946
7947         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7948         <bits/wordsize.h>.
7949         (msgqnum_t): Use __syscall_ulong_t.
7950         (msglen_t): Likewise.
7951         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7952         __syscall_ulong_t.
7953
7954         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7955         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7956
7957         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7958
7959         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7960         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7961
7962         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7963         __syscall_slong_t.
7964
7965         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7966         include <bits/wordsize.h>.  Check __x86_64__ instead of
7967         __WORDSIZE.
7968
7969         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7970         "unsigned long long int" if __x86_64__ is defined.
7971         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7972
7973         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7974         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7975         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7976
7977         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7978         <stdint.h>.
7979         (GET_PC): Cast to uintptr_t first.
7980         (GET_FRAME): Likewise.
7981         (GET_STACK): Likewise.
7982
7983         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7984         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7985         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7986         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7987         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7988         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7989         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7990         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7991         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7992         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7993         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7994         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7995         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7996         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7997         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7998         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7999         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8000         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8001         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8002         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8003         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8004         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8005         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8006         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8007         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8008         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8009         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8010         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8011         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8012
8013 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8014
8015         * Makerules (+depfiles): Also collect depfiles from .oS in
8016         $(extra-objs).
8017         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8018         .oS, $(libnldbl-routines)).
8019
8020         * Makerules (native-compile-mkdep-flags): Define.
8021         * sunrpc/Makefile (extra-objs): Add $(addprefix
8022         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8023         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8024         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8025         calling $(make-target-directory).
8026
8027 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8028
8029         * bits/types.h (__snseconds_t): Removed.
8030         * time/time.h (struct timespec): Replace __snseconds_t with
8031         __syscall_slong_t.
8032         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8033         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8034         Likewise.
8035         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8036         (__SNSECONDS_T_TYPE): Likewise.
8037         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8038         (__SNSECONDS_T_TYPE): Likewise.
8039         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8040         (__SNSECONDS_T_TYPE): Likewise.
8041
8042 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8043
8044         * sysdeps/mach/hurd/bits/typesizes.h
8045         (__SYSCALL_SLONG_TYPE): New macro.
8046         (__SYSCALL_ULONG_TYPE): Likewise.
8047
8048 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8049
8050         * bits/types.h (__syscall_slong_t): New type.
8051         (__syscall_ulong_t): Likewise.
8052
8053         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8054         (__SYSCALL_ULONG_TYPE): Likewise.
8055         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8056         (__SYSCALL_SLONG_TYPE): Likewise.
8057         (__SYSCALL_ULONG_TYPE): Likewise.
8058         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8059         (__SYSCALL_SLONG_TYPE): Likewise.
8060         (__SYSCALL_ULONG_TYPE): Likewise.
8061         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8062         (__SYSCALL_SLONG_TYPE): Likewise.
8063         (__SYSCALL_ULONG_TYPE): Likewise.
8064
8065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8066
8067         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8068         Add sigaltstack-offsets.sym.
8069         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8070         <sigaltstack-offsets.h>.
8071         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8072         longjmp_msg pointer.
8073         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8074         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8075         signal stack.
8076         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8077
8078 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8079
8080         * elf/stackguard-macros.h: Remove file.
8081         * sysdeps/generic/stackguard-macros.h: New file.
8082         * sysdeps/i386/stackguard-macros.h: Likewise.
8083         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8084         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8085         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8086         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8087         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8088         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8089         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8090         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8091         <elf/stackguard-macros.h>.
8092
8093         [BZ #14109]
8094         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8095         __aligned__ in attribute.
8096         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8097         (gregset_t): Likewise.
8098
8099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8100
8101         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8102         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8103         * sysdeps/x86_64/x32/Implies-after: New file.
8104
8105 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8106
8107         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8108         and access return value for _dl_profile_fixup.  Use R10_LP to
8109         load frame size.
8110
8111 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8112
8113         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8114
8115 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8116
8117         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8118         * sysdeps/x86_64/x32/sysdep.h: New file.
8119
8120 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8121
8122         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8123         * sysdeps/x86_64/setjmp.S: Likewise.
8124
8125 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8126
8127         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8128         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8129         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8130         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8131         remove unused global constant.
8132
8133 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8134
8135         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8136         include of <not-cancel.h>.
8137
8138 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8139
8140         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8141
8142 2012-05-15  Jeff Law  <law@redhat.com>
8143             Andreas Jaeger  <aj@suse.de>
8144
8145         [BZ #13594]
8146         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8147         out from...
8148         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8149         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8150         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8151         code changing __hst_map_handle.map.
8152
8153 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8154
8155         * configure.in (sysnames): Look for Implies-before and Implies-after
8156         files.
8157         * configure: Regenerated.
8158
8159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8162         8-byte data alignment with LP_SIZE alignment.
8163
8164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8165
8166         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8167         into R10_LP.
8168
8169 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8170
8171         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8172
8173 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8174
8175         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8176         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8177         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8178         Likewise.
8179         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8180
8181 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8182
8183         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8184         (stackinfo_sub_sp): Likewise.
8185
8186 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8187
8188         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8189         RAX_LP.
8190
8191 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8192
8193         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8194         into R*_LP.
8195
8196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8199         sizes into R*_LP.
8200
8201 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8202
8203         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8204
8205 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8206
8207         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8208         into R11_LP and load __x86_64_shared_cache_size_half into
8209         R8_LP.
8210
8211 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8214         R8_LP.
8215
8216 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8217
8218         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8219         logb for POWER7.
8220         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8221         logbf for POWER7.
8222         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8223         logbl for POWER7.
8224         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8225         powerpc32/power7/fpu/s_logb.c via #include.
8226         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8227         powerpc32/power7/fpu/s_logbf.c via #include.
8228         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8229         powerpc32/power7/fpu/s_logbl.c via #include.
8230
8231 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8232
8233         * README.libm: Remove file.
8234
8235 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8236
8237         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8238         count for x32.  Use R*_LP and omit operand-size suffix.
8239
8240 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8241
8242         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8243         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8244         * sysdeps/x86_64/x32/shlib-versions: New file.
8245
8246 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8247
8248         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8249         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8250         Use _dl_fatal_printf instead.
8251
8252 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8253
8254         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8255         set if not set by the user.  Do not allow for being unset.
8256         * sysdeps/unix/sysv/linux/configure: Regenerated.
8257
8258 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8259
8260         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8261         the `q' suffix from lea and replace .quad with ASM_ADDR.
8262
8263 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8264
8265         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8266         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8267         instead of $17.
8268         (PTR_DEMANGLE): Likewise.
8269
8270 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8271
8272         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8273         (LP_OP): Likewise.
8274         (ASM_ADDR): Likewise.
8275         (RAX_LP): Likewise.
8276         (RBP_LP): Likewise.
8277         (RBX_LP): Likewise.
8278         (RCX_LP): Likewise.
8279         (RDI_LP): Likewise.
8280         (RSI_LP): Likewise.
8281         (RSP_LP): Likewise.
8282         (R8_LP): Likewise.
8283         (R9_LP): Likewise.
8284         (R10_LP): Likewise.
8285         (R10_LP): Likewise.
8286         (R11_LP): Likewise.
8287         (R12_LP): Likewise.
8288         (R13_LP): Likewise.
8289         (R14_LP): Likewise.
8290         (R15_LP): Likewise.
8291
8292 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8293
8294         * sysdeps/x86_64/x32/dl-machine.h: New file.
8295
8296 2012-05-14  Andreas Jaeger  <aj@suse.de>
8297
8298         * manual/Makefile (subdir): Remove export of subdir.
8299         (all): Remove target.
8300         (.PHONY): Remove all from list.
8301         (mkinstalldirs): Remove.
8302         (.PHONY): Remove installdirs from list.
8303         ($(inst_infodir)/libc.info): Use make-target-directory.
8304         (installdirs): Remove.
8305         (subdir_%): Remove.
8306         (glibc-targets): Remove.
8307         (lib): Remove.
8308         (stubs): Remove.
8309         ($(objpfx)stubs ../po/manual.pot): Remove.
8310         ($(objpfx)stamp%): Remove.
8311         (make-target-directory): Remove.
8312         (subdir_install): Remove.
8313         (routines): Remove.
8314         (aux): Remove.
8315         (sources): Remove.
8316         (objects): Remove.
8317         (headers): Remove.
8318
8319         [BZ #13750]
8320         * manual/.gitignore: Remove, it's not needed anymore.
8321         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8322         all files in it.
8323         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8324         directory.
8325         (texis): Renamed to $(objpfx)texis.
8326         (texis-path): New, contains path to generated files.
8327         (chapters.%): Use texis-path for complete path, add extra argument
8328         libc-texinfo.sh.
8329         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8330         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8331         (summary,texi, stamp-summary): Use complete path of
8332         files. Generate files in build dir.
8333         (dir-add.texi): Build in build dir.
8334         (libm-err.texi,stamp-libm-err): Likewise.
8335         (version.texi, stamp-version): Likewise.
8336         (.%c.texi): Likewise.
8337         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8338         (mostlyclean): Remove target.
8339         (realclean): Remove target.
8340         (generated): Add new variable with contents from mostlyclean and
8341         realclean, remove entries duplicated in common-mostlyclean, add
8342         stamp-libm-err and stamp-version.
8343         (generated-dirs): Add libc directory.
8344         ($(inst_infodir)/libc.info): Install files from build dir.
8345
8346         * manual/install.texi (Configuring and compiling): Adjust since
8347         the info files are not part of the tar ball anymore.
8348
8349 2012-05-14  Andreas Jaeger  <aj@suse.de>
8350
8351         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8352         variable.
8353
8354 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8355
8356         [BZ #13717]
8357         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8358         to 2.2.0 where earlier.
8359         * sysdeps/unix/sysv/linux/configure: Regenerated.
8360         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8361         Remove conditional code.
8362         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8363         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8364         Remove conditional code.
8365         [!__NR_lchown]: Likewise.
8366         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8367         [__NR_lchown]: Likewise.
8368         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8369         comment referencing __ASSUME_LCHOWN_SYSCALL.
8370         * sysdeps/unix/sysv/linux/i386/sigaction.c
8371         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8372         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8373         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8374         Remove conditional code.
8375         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8376         (__protocol_available): Remove #if 0 code.
8377         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8378         conditional code.
8379         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8380         * sysdeps/unix/sysv/linux/kernel-features.h
8381         (__ASSUME_GETCWD_SYSCALL): Don't define.
8382         (__ASSUME_REALTIME_SIGNALS): Likewise.
8383         (__ASSUME_PREAD_SYSCALL): Likewise.
8384         (__ASSUME_PWRITE_SYSCALL): Likewise.
8385         (__ASSUME_POLL_SYSCALL): Likewise.
8386         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8387         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8388         non-SPARC.
8389         (__ASSUME_SIOCGIFNAME): Don't define.
8390         (__ASSUME_MSG_NOSIGNAL): Likewise.
8391         (__ASSUME_SENDFILE): Define unconditionally.
8392         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8393         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8394         conditional code.
8395         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8396         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8397         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8398         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8399         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8400         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8401         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8403         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8404         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8406         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8407         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8409         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8410         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8412         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8413         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8415         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8416         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8418         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8419         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8421         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8422         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8424         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8425         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8426         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8427         Remove conditional code.
8428         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8429         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8430         Remove conditional code.
8431         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8432         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8433         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8434         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8435         Remove conditional code.
8436         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8437         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8438         Remove conditional code.
8439         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8440         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8441         Remove conditional code.
8442         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8443         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8444         Remove conditional code.
8445         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8446         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8447         Remove conditional code.
8448         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8449         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8450         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8451         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8452         * sysdeps/unix/sysv/linux/sigaction.c
8453         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8454         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8455         * sysdeps/unix/sysv/linux/sigpending.c
8456         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8457         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8458         * sysdeps/unix/sysv/linux/sigprocmask.c
8459         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8460         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8461         * sysdeps/unix/sysv/linux/sigsuspend.c
8462         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8463         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8464         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8465         (__libc_missing_rt_sigs): Remove.
8466         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8467         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8468         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8469         Remove conditional code.
8470         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8471         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8472         return 1.
8473         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8474         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8475         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8476         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8477
8478 2012-05-14  Andreas Jaeger  <aj@suse.de>
8479
8480         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8481         it's not used in glibc.
8482         (__coshm1): Likewise.
8483         (__acosh1p): Likewise.
8484         (__sgn): Likewise.
8485
8486         * manual/string.texi (Copying and Concatenation): Add missing
8487         variable in concat example.
8488         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8489
8490 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8491
8492         [BZ #14103]
8493         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8494         __builtin_clzl with __builtin_clzll.
8495
8496 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8497
8498         [BZ #14104]
8499         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8500         libc_freeres_ptr.
8501
8502 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8503
8504         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8505         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8506         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8507         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8508
8509 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8510
8511         * NEWS: Update ia64 info.
8512
8513 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8514
8515         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8516         used as bcopy.
8517
8518 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8519
8520         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8521         * sysdeps/unix/syscalls.list (dup3): Likewise.
8522         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8523         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8524
8525 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8526
8527         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8528         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8529
8530 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8531
8532         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8533         thread pointer.
8534         (TLS_IE): Use mov/add instead of movq/addq to load thread
8535         pointer.
8536         (TLS_GD_PREFIX): New.
8537         (TLS_GD): Use it.
8538
8539 2012-05-11  David S. Miller  <davem@davemloft.net>
8540
8541         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8542         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8543         (_FPU_SETCW): Likewise.
8544
8545 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8546
8547         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8548         is 32-byte aligned.
8549
8550 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8551
8552         [BZ #11837]
8553         * iconvdata/gb18030.c: Update tables.
8554         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8555         characters specially.
8556         (BODY for TO_LOOP): Add encoding of missing ranges.
8557
8558 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8559
8560         [BZ #13673]
8561         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8562         * sysdeps/mach/hurd/dup3.c: Likewise.
8563         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8564         * sysdeps/powerpc/memmove.c:: Likewise.
8565
8566 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8567
8568         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8569         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8570
8571 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8572
8573         * elf/elf.h (R_X86_64_RELATIVE64): New.
8574         (R_X86_64_NUM): Updated.
8575         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8576         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8577         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8578         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8579         tst-quad1pie tst-quad2pie
8580         (modules-names): Add tst-quadmod1 tst-quadmod2.
8581         ($(objpfx)tst-quad1): New dependency.
8582         ($(objpfx)tst-quad2): Likewise.
8583         ($(objpfx)tst-quad1pie): Likewise.
8584         ($(objpfx)tst-quad2pie): Likewise.
8585         * sysdeps/x86_64/tst-quad1.c: New file.
8586         * sysdeps/x86_64/tst-quad1pie.c: New file.
8587         * sysdeps/x86_64/tst-quad2.c: Likewise.
8588         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8589         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8590         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8591         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8592         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8593
8594 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8595
8596         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8597         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8598         * streams/stropts.h (t_scalar_t): Define type.
8599
8600         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8601         (_PATH_PRESERVE): Set to "/var/lib".
8602         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8603
8604         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8605         instead of int.
8606
8607         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8608         if __dir_mkfile succeeded.
8609
8610         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8611         checking for _hurd_dtablesize.  Unlock it right after having
8612         finished _hurd_dtable allocation.
8613
8614 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8615
8616         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8617         * sysdeps/mach/hurd/configure: Regenerated.
8618         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8619         special-casing to...
8620         * sysdeps/gnu/configure.in: ... this new file.
8621         * sysdeps/unix/sysv/linux/configure: Regenerated.
8622         * sysdeps/gnu/configure: New generated file.
8623
8624         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8625         for Linux: use nsec instead of usec, as well as:
8626         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8627         members of type struct timespec.
8628         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8629         New macros.
8630         (struct stat64): Likewise.
8631         (_STATBUF_ST_NSEC): New macro.
8632         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8633
8634         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8635         __strtoul_internal rather than strtoul.
8636
8637 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8638
8639         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8640         and reject them.
8641
8642 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8643
8644         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8645         which preserves existing values.
8646         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8647
8648 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8649
8650         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8651         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8652         greater than FD_SETSIZE.
8653
8654 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8655
8656         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8657         allocated, call __vm_protect to finish enabling the existing space, and
8658         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8659         allocate the remainder.
8660
8661 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8662
8663         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8664         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8665
8666 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8667
8668         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8669         sysdeps/mach/hurd/readlink.c.
8670
8671         * posix/tst-sysconf.c (posix_options): Only use
8672         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8673         _POSIX_SYNCHRONIZED_IO when they are defined
8674         * sysdeps/mach/hurd/bits/posix_opt.h:
8675         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8676         (_XOPEN_REALTIME): Undefine macro.
8677         (_XOPEN_REALTIME_THREADS): Undefine macro.
8678         (_XOPEN_SHM): Undefine macro.
8679         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8680         macro to -1.
8681         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8682         macro to -1.
8683         (_POSIX_ASYNC_IO): Undefine macro.
8684         (_POSIX_PRIORITIZED_IO): Undefine macro.
8685         (_POSIX_SPIN_LOCKS): Define macro to -1.
8686
8687         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8688         SA_NODEFER, SA_RESETHAND.
8689         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8690         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8691         F_DUPFD_CLOEXEC.
8692
8693 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8694
8695         * elf/Makefile (pldd-modules): Define unconditionally.
8696
8697 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8698
8699         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8700
8701 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8702
8703         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8704         Return ENOENT when name is empty.
8705         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8706
8707 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8708
8709         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8710
8711         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8712
8713 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8714
8715         Fix mlock in all cases except non-readable pages.
8716         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8717         instead of VM_PROT_ALL as parameter to __vm_wire function.
8718
8719         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8720         (__mkdir): When path is `/', just fail with EEXIST.
8721         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8722
8723 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8724
8725         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8726         <sys/uio.h> (for writev).
8727         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8728         and <sys/param.h> (for MIN).
8729
8730 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8731
8732         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8733         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8734         if interrupted.
8735
8736 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8737
8738         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8739         Depend on against $(link-rpcuserlibs).
8740
8741 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8742
8743         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8744         (__libc_stack_end): Do not use attribute_relro.
8745         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8746         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8747         to libthread-provided value.
8748         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8749         attribute_relro.
8750
8751 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8752
8753         [BZ #3748]
8754         * bits/libc-lock.h (__libc_once_get): New macro.
8755         * sysdeps/mach/bits/libc-lock.h: Likewise.
8756         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8757         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8758         instead of using implementation details.
8759
8760         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8761         * libio/freopen.c: Likewise.
8762         * libio/freopen64.c: Likewise.
8763         * misc/syslog.c: Likewise.
8764         * nscd/connections.c: Likewise.
8765         * nscd/netgroupcache.c: Likewise.
8766         * sysdeps/posix/getcwd.c: Likewise.
8767
8768 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8769
8770         * math/w_ilogbf.c: Add #include <limits.h>.
8771
8772 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8773
8774         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8775         path instead of returning without unlocking.
8776
8777         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8778         immediate-write ioctls.
8779         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8780
8781 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8782
8783         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8784         __builtin_frame_address instead of making assumptions about the
8785         location of the return address relative to DATA.  Force early load of
8786         the return address.
8787         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8788         __builtin_frame_address.
8789
8790         dup3 for GNU Hurd.
8791         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8792         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8793         implement dup3 and do some further code clean-ups.
8794         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8795         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8796
8797 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8798
8799         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8800
8801         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8802         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8803         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8804         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8805         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8806         d->port.lock.
8807
8808         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8809         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8810         when handler == SIG_ERR, not when handler != SIG_ERR.
8811
8812 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8813
8814         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8815         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8816         definitions.
8817
8818         accept4 for GNU Hurd.
8819         * include/sys/socket.h (__libc_accept4): New prototype.
8820         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8821         to implement __libc_accept4.
8822         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8823         __libc_accept4.
8824         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8825
8826         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8827         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8828         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8829         signal-defines.sym.
8830
8831 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8832
8833         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8834
8835 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8836
8837         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8838         assertion on O_CLOEXEC flag.
8839         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8840         * hurd/intern-fd.c: Likewise.
8841         * hurd/port2fd.c: Likewise.
8842
8843 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8844
8845         [BZ #3906]
8846         * bits/in.h (IPV6_PKTINFO): Define new macro.
8847         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8848
8849 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8850
8851         [BZ #13954]
8852         [BZ #13955]
8853         [BZ #13956]
8854         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8855         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8856         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8857         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8858         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8859         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8860         * math/libm-test.inc (logb_test) : Additional logb tests.
8861
8862 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8863             Andreas Jaeger  <aj@suse.de>
8864
8865         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8866         * configure: Regenerated.
8867         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8868         * config.make.in (link-obsolete-rpc): New substituted variable.
8869         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8870         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8871         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8872         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8873         so that libc.a contains the symbols.
8874         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8875         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8876         * sunrpc/auth_none.c: Likewise.
8877         * sunrpc/auth_unix.c: Likewise.
8878         * sunrpc/authdes_prot.c: Likewise.
8879         * sunrpc/authuxprot.c: Likewise.
8880         * sunrpc/clnt_gen.c: Likewise.
8881         * sunrpc/clnt_perr.c: Likewise.
8882         * sunrpc/clnt_raw.c: Likewise.
8883         * sunrpc/clnt_simp.c: Likewise.
8884         * sunrpc/clnt_tcp.c: Likewise.
8885         * sunrpc/clnt_udp.c: Likewise.
8886         * sunrpc/clnt_unix.c: Likewise.
8887         * sunrpc/des_crypt.c: Likewise.
8888         * sunrpc/des_soft.c: Likewise.
8889         * sunrpc/get_myaddr.c: Likewise.
8890         * sunrpc/key_call.c: Likewise.
8891         * sunrpc/key_prot.c: Likewise.
8892         * sunrpc/netname.c: Likewise.
8893         * sunrpc/pm_getmaps.c: Likewise.
8894         * sunrpc/pm_getport.c: Likewise.
8895         * sunrpc/pmap_clnt.c: Likewise.
8896         * sunrpc/pmap_prot.c: Likewise.
8897         * sunrpc/pmap_prot2.c: Likewise.
8898         * sunrpc/pmap_rmt.c: Likewise.
8899         * sunrpc/publickey.c: Likewise.
8900         * sunrpc/rpc_cmsg.c: Likewise.
8901         * sunrpc/rpc_common.c: Likewise.
8902         * sunrpc/rpc_dtable.c: Likewise.
8903         * sunrpc/rpc_prot.c: Likewise.
8904         * sunrpc/rpc_thread.c: Likewise.
8905         * sunrpc/rtime.c: Likewise.
8906         * sunrpc/svc.c: Likewise.
8907         * sunrpc/svc_auth.c: Likewise.
8908         * sunrpc/svc_raw.c: Likewise.
8909         * sunrpc/svc_run.c: Likewise.
8910         * sunrpc/svc_tcp.c: Likewise.
8911         * sunrpc/svc_udp.c: Likewise.
8912         * sunrpc/svc_unix.c: Likewise.
8913         * sunrpc/svcauth_des.c: Likewise.
8914         * sunrpc/xcrypt.c: Likewise.
8915         * sunrpc/xdr.c: Likewise.
8916         * sunrpc/xdr_array.c: Likewise.
8917         * sunrpc/xdr_float.c: Likewise.
8918         * sunrpc/xdr_intXX_t.c: Likewise.
8919         * sunrpc/xdr_mem.c: Likewise.
8920         * sunrpc/xdr_rec.c: Likewise.
8921         * sunrpc/xdr_ref.c: Likewise.
8922         * sunrpc/xdr_sizeof.c: Likewise.
8923         * sunrpc/xdr_stdio.c: Likewise.
8924
8925 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8926
8927         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8928         change.  Update copyright years.
8929
8930 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8931
8932         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8933
8934 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8935             Joseph Myers  <joseph@codesourcery.com>
8936             Paul Pluzhnikov  <ppluzhnikov@google.com>
8937
8938         [BZ #14012]
8939         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8940         requiring rpcgen.
8941         [cross-compiling] (extra-libs): Likewise.
8942         [cross-compiling] (extra-libs-others): Likewise.
8943         [cross-compiling] (librpcsvc-routines): Likewise.
8944         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8945         [cross-compiling] (omit-deps): Likewise.
8946         (sunrpc-CPPFLAGS): New variable.
8947         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8948         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8949         (cross-rpcgen-objs): New variable.
8950         (extra-objs): Append $(cross-rpcgen-objs).
8951         ($(cross-rpcgen-objs)): New rule.
8952         ($(objpfx)cross-rpcgen): Likewise.
8953         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8954         comment.
8955         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8956         ($(objpfx)x%.stmp): Likewise.
8957         * sunrpc/proto.h [IS_IN_build] (_): Define.
8958         [IS_IN_build] (_libc_intl_domainname): Likewise.
8959
8960 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8961
8962         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8963         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8964         and R_X86_64_TPOFF64.
8965
8966 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8967
8968         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8969         sysdeps/unix/sysv/syscalls.list.
8970         (stime): Likewise.
8971         (utime): Likewise.
8972         * sysdeps/unix/sysv/syscalls.list: Remove file.
8973
8974 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8975
8976         [BZ #3440]
8977         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8978         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8979         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8980         (__LC_IDENTIFICATION): Make these macros useful in #if
8981         expressions, as required by C99.
8982
8983 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8984
8985         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8986         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8987         after this.
8988
8989 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8990
8991         * stdlib/longlong.h: Updated from GCC.
8992
8993 2012-05-09  Andreas Jaeger  <aj@suse.de>
8994
8995         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8996         default is first entry.
8997         (run_mode): Set type.
8998         (main): Remove informal message about syslog.
8999         (options): Fix typo.
9000
9001         [BZ #14053]
9002         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9003         to asm.
9004         (lrint): Likewise.
9005         (llrintf): Likewise.
9006         (llrint): Likewise.
9007         (rint): Likewise.
9008         (rintf): Likewise.
9009         (nearbyint): Likewise.
9010         (nearbyintf): Likewise.
9011
9012 2012-05-09  Andreas Jaeger  <aj@suse.de>
9013             Pedro Alves  <palves@redhat.com>
9014
9015         * nscd/nscd.c (run_mode): Use enum.
9016         (main): Cleanup coding style issue.
9017
9018 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9019             Andreas Jaeger  <aj@suse.de>
9020
9021         * nscd/nscd.c (go_background): Replaced with...
9022         (run_mode): ... this.
9023         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9024         (options): Add -F --foreground.
9025         (main): Implement it.
9026         (parse_opt): Parse it.
9027
9028 2012-05-09  Andreas Jaeger  <aj@suse.de>
9029
9030         [BZ #14083]
9031         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9032         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9033         -Wconversion warning.
9034         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9035         Likewise.
9036
9037 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9038
9039         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9040         == 0.
9041         (LC_ALL): Use macro-int-constant.
9042         (LC_COLLATE): Likewise.
9043         (LC_CTYPE): Likewise.
9044         (LC_MESSAGES): Likewise.
9045         (LC_MONETARY): Likewise.
9046         (LC_NUMERIC): Likewise.
9047         (LC_TIME): Likewise.
9048         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9049         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9050         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9051         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9052         Specify type.
9053         [C99-based standards] (float_t): Expect type.
9054         [C99-based standards] (double_t): Expect type.
9055         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9056         type.
9057         [C99-based standards] (HUGE_VALL): Likewise.
9058         [C99-based standards] (INFINITY): Likewise.
9059         [C99-based standards] (NAN): Likewise.
9060         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9061         [C99-based standards] (FP_NAN): Likewise.
9062         [C99-based standards] (FP_NORMAL): Likewise.
9063         [C99-based standards] (FP_SUBNORMAL): Likewise.
9064         [C99-based standards] (FP_ZERO): Likewise.
9065         [C99-based standards] (FP_FAST_FMA): Use
9066         optional-macro-int-constant.  Specify type.  Require == 1.
9067         [C99-based standards] (FP_FAST_FMAF): Likewise.
9068         [C99-based standards] (FP_FAST_FMAL): Likewise.
9069         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9070         [C99-based standards] (FP_ILOGBNAN): Likewise.
9071         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9072         Specify type.
9073         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9074         [C99-based standards] (math_errhandling): Specify type.
9075         [ISO99 || ISO11] (signgam): Do not allow.
9076         [non-C99-based standards] (copysignf): Do not allow.
9077         [non-C99-based standards] (exp2f): Likewise.
9078         [non-C99-based standards] (log2f): Likewise.
9079         [non-C99-based standards] (modff): Allow.
9080         [non-C99-based standards] (erff): Do not allow.
9081         [non-C99-based standards] (erfcf): Likewise.
9082         [non-C99-based standards] (gammaf): Likewise.
9083         [non-C99-based standards] (hypotf): Likewise.
9084         [non-C99-based standards] (j0f): Likewise.
9085         [non-C99-based standards] (j1f): Likewise.
9086         [non-C99-based standards] (jnf): Likewise.
9087         [non-C99-based standards] (lgammaf): Likewise.
9088         [non-C99-based standards] (tgammaf): Likewise.
9089         [non-C99-based standards] (y0f): Likewise.
9090         [non-C99-based standards] (y1f): Likewise.
9091         [non-C99-based standards] (ynf): Likewise.
9092         [non-C99-based standards] (isnanf): Likewise.
9093         [non-C99-based standards] (acoshf): Likewise.
9094         [non-C99-based standards] (asinhf): Likewise.
9095         [non-C99-based standards] (atanhf): Likewise.
9096         [non-C99-based standards] (cbrtf): Likewise.
9097         [non-C99-based standards] (expm1f): Likewise.
9098         [non-C99-based standards] (ilogbf): Likewise.
9099         [non-C99-based standards] (log1pf): Likewise.
9100         [non-C99-based standards] (logbf): Likewise.
9101         [non-C99-based standards] (nextafterf): Likewise.
9102         [non-C99-based standards] (remainderf): Likewise.
9103         [non-C99-based standards] (rintf): Likewise.
9104         [non-C99-based standards] (scalbf): Likewise.
9105         [non-C99-based standards] (copysignl): Likewise.
9106         [non-C99-based standards] (exp2l): Likewise.
9107         [non-C99-based standards] (log2l): Likewise.
9108         [non-C99-based standards] (modfl): Allow.
9109         [non-C99-based standards] (erfl): Do not allow.
9110         [non-C99-based standards] (erfcl): Likewise.
9111         [non-C99-based standards] (gammal): Likewise.
9112         [non-C99-based standards] (hypotl): Likewise.
9113         [non-C99-based standards] (j0l): Likewise.
9114         [non-C99-based standards] (j1l): Likewise.
9115         [non-C99-based standards] (jnl): Likewise.
9116         [non-C99-based standards] (lgammal): Likewise.
9117         [non-C99-based standards] (tgammal): Likewise.
9118         [non-C99-based standards] (y0l): Likewise.
9119         [non-C99-based standards] (y1l): Likewise.
9120         [non-C99-based standards] (ynl): Likewise.
9121         [non-C99-based standards] (isnanl): Likewise.
9122         [non-C99-based standards] (acoshl): Likewise.
9123         [non-C99-based standards] (asinhl): Likewise.
9124         [non-C99-based standards] (atanhl): Likewise.
9125         [non-C99-based standards] (cbrtl): Likewise.
9126         [non-C99-based standards] (expm1l): Likewise.
9127         [non-C99-based standards] (ilogbl): Likewise.
9128         [non-C99-based standards] (log1pl): Likewise.
9129         [non-C99-based standards] (logbl): Likewise.
9130         [non-C99-based standards] (nextafterl): Likewise.
9131         [non-C99-based standards] (remainderl): Likewise.
9132         [non-C99-based standards] (rintl): Likewise.
9133         [non-C99-based standards] (scalbl): Likewise.
9134         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9135         [non-C99-based standards] (FP_*): Do not allow.
9136         [C99-based standards] (FP_*): Change to
9137         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9138         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9139         allow.
9140         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9141         (SIG_ERR): Likewise.
9142         [X/Open-based standards] (SIG_HOLD): Likewise.
9143         (SIG_IGN): Likewise.
9144         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9145         positive value.
9146         (SIGFPE): Likewise.
9147         (SIGILL): Likewise.
9148         (SIGINT): Likewise.
9149         (SIGSEGV): Likewise.
9150         (SIGTER): Likewise.
9151         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9152         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9153         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9154         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9155         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9156         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9157         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9158         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9159         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9160         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9161         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9162         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9163         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9164         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9165         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9166         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9167         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9168         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9169         [X/Open-based standards] (SIGTRAP): Likewise.
9170         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9171         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9172         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9173         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9174         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9175         allow.
9176
9177 2012-05-08  Ian Wienand  <ianw@vmware.com>
9178
9179         [BZ #14080]
9180         * time/tzset.c (__tzset_parse_tz): Update default rules for
9181         daylight time changes in the Energy Policy Act of 2005.
9182
9183 2012-05-09  Andreas Jaeger  <aj@suse.de>
9184
9185         [BZ #13983]
9186         * elf/ldconfig.c (parse_conf): Change string to make clear that
9187         ldconfig only issued a warning if ld.so.conf does not exist.
9188
9189 2012-05-08  David S. Miller  <davem@davemloft.net>
9190
9191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9192         movxtod instead of popping the value on the stack.
9193
9194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9195
9196 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9197
9198         * config.h.in: Add HAVE_ARM_PCS_VFP.
9199
9200 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9201
9202         [BZ #13979]
9203         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9204         checking but the checks are disabled for any reason.
9205
9206 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9207
9208         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9209         and ELF64_R_TYPE with ELFW(R_TYPE).
9210
9211 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9212
9213         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9214         (ulimit): Likewise.
9215
9216         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9217         (settimeofday): Likewise.
9218
9219 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9220
9221         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9222         a struct th_u2 inside the union, and move tu_block/tu_code into
9223         a new th_u3 union of tu_block/tu_code inside of that.  Move
9224         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9225         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9226         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9227         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9228         (th_stuff): Change to th_u1.tu_stuff.
9229         (th_data): Define.
9230         (th_msg): Change to th_u1.th_u2.tu_data.
9231
9232 2012-05-07  David S. Miller  <davem@davemloft.net>
9233
9234         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9235
9236         [BZ #14074]
9237         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9238         (SETUP_PIC_REG): Use it.
9239         (SETUP_PIC_REG_LEAF): Use it.
9240
9241 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9242
9243         [BZ #13885]
9244         [BZ #13923]
9245         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9246         USE_AS_EXPM1L.
9247         (EXPL_FINITE): Likewise.
9248         (FLDLOG): Likewise.
9249         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9250         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9251         e_expl.S.
9252         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9253         USE_AS_EXPM1L.
9254         (EXPL_FINITE): Likewise.
9255         (FLDLOG): Likewise.
9256         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9257         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9258         e_expl.S.
9259         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9260         test of -max_value argument for long double.
9261         * sysdeps/i386/fpu/libm-test-ulps: Update.
9262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9263
9264 2012-05-06  David S. Miller  <davem@davemloft.net>
9265
9266         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9267         quad soft-float symbols whose references which are compiler
9268         generated.
9269         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9270
9271 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9272
9273         [BZ #13884]
9274         [BZ #13914]
9275         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9276         USE_AS_EXP10L.
9277         (EXPL_FINITE): Likewise.
9278         (FLDLOG): Likewise.
9279         (c0): Likewise.
9280         (c1): Likewise.
9281         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9282         Adjust comments for base varying.
9283         (__expl_finite): Change alias to EXPL_FINITE.
9284         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9285         e_expl.S.
9286         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9287         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9288         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9289         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9290         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9291         USE_AS_EXP10L.
9292         (EXPL_FINITE): Likewise.
9293         (FLDLOG): Likewise.
9294         (c0): Likewise.
9295         (c1): Likewise.
9296         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9297         Adjust comments for base varying.
9298         (__expl_finite): Change alias to EXPL_FINITE.
9299         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9300         tests for bugs.
9301         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9302
9303         [BZ #14064]
9304         * math/libm-test.inc (check_float_internal): Correct ulp
9305         calculation for subnormal expected results.
9306
9307 2012-05-06  Andreas Jaeger  <aj@suse.de>
9308
9309         * Makeconfig (+math-flags): New, set to -frounding-math.
9310         (+cflags): Add +math-flags so that all of glibc gets compiled with
9311         it.
9312
9313         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9314
9315 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9316
9317         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9318         Disable one test.
9319
9320         [BZ #13787]
9321         [BZ #13922]
9322         [BZ #14036]
9323         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9324         (__ieee754_expl): Allow for and saturate large arguments.
9325         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9326         (u_threshold): Likewise.
9327         (__exp): Call __ieee754_exp before checking for overflow and
9328         underflow.
9329         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9330         (u_threshold): Likewise.
9331         (__expf): Call __ieee754_expf before checking for overflow and
9332         underflow.
9333         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9334         (u_threshold): Likewise.
9335         (__expl): Call __ieee754_expl before checking for overflow and
9336         underflow.
9337         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9338         (__ieee754_expl): Allow for and saturate large arguments.
9339         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9340         missing overflow exception on overflow.
9341         (expm1_test): Do not allow missing overflow exception on overflow.
9342
9343         * sysdeps/i386/fpu/e_expl.c: Move to ...
9344         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9345         rather than using inline asm.
9346         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9347         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9348         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9349
9350         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9351         (nice): Likewise.
9352         (poll): Likewise.
9353         (signal): Likewise.
9354         (time): Likewise.
9355         (times): Likewise.
9356
9357 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9358
9359         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9360         sysdeps/unix/common/syscalls.list.
9361         (fchmod): Likewise.
9362         (fchown): Likewise.
9363         (ftruncate): Likewise.
9364         (getrusage): Likewise.
9365         (gettimeofday): Likewise.
9366         (setpgid): Likewise.
9367         (setregid): Likewise.
9368         (setreuid): Likewise.
9369         (sigaction): Likewise.
9370         (truncate): Likewise.
9371         (vhangup): Likewise.
9372         * sysdeps/unix/common/syscalls.list: Remove file.
9373         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9374         * sysdeps/unix/sysv/linux/Implies: Likewise.
9375
9376 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9377
9378         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9380         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9381         Moved to ...
9382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9383         Here.
9384         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9385         to ...
9386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9387         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9388         to ...
9389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9390         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9391         to ...
9392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9393         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9394         to ...
9395         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9396         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9397         to ...
9398         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9399         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9400         to ...
9401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9402         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9403         to ...
9404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9405         Here.
9406         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9407         to ...
9408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9409         Here.
9410         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9411         to ...
9412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9413         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9414         Moved to ...
9415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9416         Here.
9417         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9418         to ...
9419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9420
9421 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9422
9423         * sysdeps/unix/common/bits/dirent.h: Remove file.
9424         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9425
9426         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9427         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9428         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9429         * sysdeps/unix/bsd/isatty.c: Likewise.
9430         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9431         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9432         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9433
9434 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9435
9436         [BZ #13563]
9437         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9438         long double comparison inaccuracies.
9439         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9440         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9441
9442 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9443
9444         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9445         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9446
9447 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9448
9449         [BZ #14049]
9450         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9451         nonzero digits before rounding a hex value.
9452         * stdlib/tst-strtod.c (tests): Add another test.
9453
9454 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9455
9456         * sysdeps/s390/fpu/libm-test-ulps: Update.
9457
9458 2012-05-03  Andreas Jaeger  <aj@suse.de>
9459
9460         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9461         does not get optimized out.
9462         (malloc_opt_barrier): New.
9463
9464 2012-05-03  Andreas Jaeger  <aj@suse.de>
9465             Roland McGrath  <roland@hack.frob.com>
9466
9467         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9468         intermediate file deletion.
9469         (generated): Add .symlist files.
9470
9471 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9472
9473         [BZ #13775]
9474         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9475         Redirect under this condition.
9476         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9477         [__USE_GNU] (__dprintf_chk): Not under this condition.
9478         [__USE_GNU] (__vdprintf_chk): Likewise.
9479         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9480         under this condition.
9481         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9482         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9483         [__USE_XOPEN2K8] (vdprintf): Likewise.
9484         [__USE_GNU] (__dprintf_chk): Not under this condition.
9485         [__USE_GNU] (__vdprintf_chk): Likewise.
9486         [__USE_GNU] (dprintf): Likewise.
9487         [__USE_GNU] (vdprintf): Likewise.
9488
9489 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9490
9491         * elf/Makefile (common-generated): Set this instead of generated for
9492         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9493         $(all-built-dso)-derived lists.
9494
9495 2012-05-03  Andreas Jaeger  <aj@suse.de>
9496
9497         * sysdeps/i386/fpu/libm-test-ulps: Update.
9498
9499         * FAQ: Removed.
9500         * FAQ.in: Likewise.
9501         * scripts/gen-FAQ.pl: Likewise.
9502         * manual/install.texi (Installation): Point to online location of
9503         FAQ.
9504         * Makefile (files-for-dist): Remove FAQ.
9505         (FAQ): Remove.
9506
9507 2012-05-02  Allan McRae  <allan@archlinux.org>
9508
9509         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9510         (LDFLAGS-reldepmod5.so): Likewise.
9511         (LDFLAGS-reldep6mod1.so): Likewise.
9512         (LDFLAGS-reldep6mod4.so): Likewise.
9513         (LDFLAGS-reldep8mod3.so): Likewise.
9514         (LDFLAGS-unload4mod1.so): Likewise.
9515         (LDFLAGS-unload4mod2.so): Likewise.
9516         (LDFLAGS-tst-initorder): Likewise.
9517         (LDFLAGS-tst-initordera2.so): Likewise.
9518         (LDFLAGS-tst-initordera3.so): Likewise.
9519         (LDFLAGS-tst-initordera4.so): Likewise.
9520         (LDFLAGS-tst-initorderb2.so): Likewise.
9521         (LDFLAGS-noload): Likewise.
9522         (LDFLAGS-next): Likewise.
9523         (LDFLAGS-order2mod1.so): Likewise.
9524         (LDFLAGS-order2mod2.so): Likewise.
9525         (LDFLAGS-tst-initorder2): Likewise.
9526         (LDFLAGS-tst-initorder2a.so): Likewise.
9527         (LDFLAGS-tst-initorder2b.so): Likewise.
9528         (LDFLAGS-tst-initorder2c.so): Likewise.
9529         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9530
9531 2012-05-02  David S. Miller  <davem@davemloft.net>
9532
9533         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9534
9535 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9536
9537         [BZ #14055]
9538         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9539
9540 2012-05-02  Andreas Jaeger  <aj@suse.de>
9541
9542         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9543         since we manipulate rounding mode.
9544         (CPPFLAGS-test-idouble.c): Likewise.
9545         (CPPFLAGS-test-ifloat.c): Likewise.
9546         (CFLAGS-test-ldouble.c): Likewise.
9547         (CFLAGS-test-double.c): Likewise.
9548         (CFLAGS-test-float.c): Likewise.
9549         (CFLAGS-test-misc.c): Likewise.
9550         (CFLAGS-test-test-fenv.c): Likewise.
9551
9552 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9553
9554         [BZ #2550]
9555         [BZ #2570]
9556         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9557         comparisons to determine direction to adjust input.
9558
9559 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9560
9561         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9562         output to the target.
9563
9564         * scripts/localplt.awk: New file.
9565         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9566         (check-localplt-CFLAGS): Variable removed.
9567         ($(all-built-dso:=.jmprel)): New static pattern rule.
9568         (generated): Add those targets.
9569         (localplt-built-dso): New variable.
9570         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9571
9572         * elf/check-localplt.c: File removed.
9573
9574         * scripts/check-execstack.awk: New file.
9575         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9576         (check-execstack-CFLAGS): Variable removed.
9577         ($(objpfx)check-execstack.h): Target removed.
9578         ($(objpfx)execstack-default): New target.
9579         (generated): Add that instead of check-execstack.h.
9580         ($(all-built-dso:=.phdr)): New static pattern rule.
9581         (generated): Add those targets.
9582         * elf/check-execstack.c: File removed.
9583
9584         * scripts/check-textrel.awk: New file.
9585         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9586         (check-textrel-CFLAGS): Variable removed.
9587         (all-built-dso): Use := to define.o
9588         ($(all-built-dso:=.dyn)): New static pattern rule.
9589         (generated): Add those targets.
9590         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9591         * config.make.in (READELF): New substituted variable.
9592         * elf/check-textrel.c: File removed.
9593
9594 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9595
9596         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9597         allow.
9598         * conform/data/ctype.h-data [C99-based standards] (isblank):
9599         Expect function.
9600         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9601         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9602         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9603         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9604         Specify type.  Require positive value.
9605         (EILSEQ): Likewise.
9606         (ERANGE): Likewise.
9607         [ISO || POSIX] (EILSEQ): Do not expect.
9608         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9609         Specify type.  Require positive value.
9610         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9611         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9612         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9613         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9614         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9615         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9616         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9617         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9618         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9619         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9620         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9621         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9622         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9623         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9624         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9625         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9626         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9627         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9628         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9629         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9630         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9631         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9632         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9633         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9634         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9635         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9636         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9637         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9638         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9639         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9640         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9641         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9642         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9643         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9644         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9645         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9646         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9647         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9648         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9649         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9650         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9651         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9652         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9653         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9654         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9655         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9656         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9657         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9658         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9659         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9660         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9661         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9662         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9663         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9664         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9665         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9666         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9667         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9668         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9669         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9670         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9671         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9672         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9673         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9674         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9675         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9676         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9677         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9678         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9679         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9680         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9681         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9682         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9683         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9684         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9685         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9686         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9687         Require >= 2.
9688         (FLT_ROUNDS): Expect as macro, not constant.
9689         (FLT_MANT_DIG): Use macro-int-constant.
9690         (DBL_MANT_DIG): Likewise.
9691         (LDBL_MANT_DIG): Likewise.
9692         (FLT_DIG): Likewise.
9693         (DBL_DIG): Likewise.
9694         (LDBL_DIG): Likewise.
9695         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9696         (DBL_MIN_EXP): Likewise.
9697         (LDBL_MIN_EXP): Likewise.
9698         (FLT_MAX_EXP): Use macro-int-constant.
9699         (DBL_MAX_EXP): Likewise.
9700         (LDBL_MAX_EXP): Likewise.
9701         (FLT_MAX_10_EXP): Likewise.
9702         (DBL_MAX_10_EXP): Likewise.
9703         (LDBL_MAX_10_EXP): Likewise.
9704         (FLT_MAX): Use macro-constant.
9705         (DBL_MAX): Likewise.
9706         (LDBL_MAX): Likewise.
9707         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9708         (DBL_EPSILON): Likewise.
9709         (LDBL_EPSILON): Likewise.
9710         (FLT_MIN): Likewise.
9711         (DBL_MIN): Likewise.
9712         (LDBL_MIN): Likewise.
9713         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9714         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9715         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9716         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9717         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9718         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9719         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9720         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9721         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9722         [ISO11] (FLT_TRUE_MIN): Likewise.
9723         [ISO11] (LDBL_TRUE_MIN): Likewise.
9724         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9725         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9726         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9727         (SCHAR_MAX): Likewise.
9728         (UCHAR_MAX): Likewise.
9729         (CHAR_MIN): Likewise.
9730         (CHAR_MAX): Likewise.
9731         (MB_LEN_MAX): Use macro-int-constant.
9732         (SHRT_MIN): Use macro-int-constant.  Specify type.
9733         (SHRT_MAX): Likewise.
9734         (USHRT_MAX): Likewise.
9735         (INT_MAX): Likewise.
9736         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9737         bound negative.
9738         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9739         bound with "U".
9740         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9741         bound with "L".
9742         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9743         bound negative.  Suffix upper bound with "L".
9744         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9745         bound with "UL".
9746         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9747         Specify type.
9748         [C99-based standards] (LLONG_MAX): Likewise.
9749         [C99-based standards] (ULLONG_MAX): Likewise.
9750         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9751         == 0.
9752         [ISO11] (max_align_t): Require type.
9753         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9754
9755         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9756         from $CFLAGS, without defining away __attribute__ calls.
9757         (checknamespace): Use $CFLAGS_namespace.
9758
9759         * conform/conformtest.pl (@keywords): Only include C99 keywords
9760         for standards based on C99 or C11.
9761
9762         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9763         Disable tests.
9764         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9765         UNIX98]: Likewise.
9766
9767         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9768         usability of symbols in #if.
9769
9770         * conform/conformtest.pl: If macro or constant types start
9771         "promoted:", expect the symbol to be of the following type
9772         promoted by the integer promotions.
9773
9774         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9775         in one place.  Also handle "macro-constant".
9776
9777         * conform/conformtest.pl: Only accept expected macro values with
9778         "==".  Parse all "macro" lines in one place.
9779         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9780
9781         * conform/conformtest.pl: Handle braced types on "constant" lines
9782         instead of handling "typed-constant".
9783         * conform/data/signal.h-data: Use "constant" instead of
9784         "typed-constant".
9785
9786         * conform/conformtest.pl: Handle "optional-" at start of lines in
9787         one place rather than duplicating several cases.  Handle each
9788         format of "macro" line with initial "optional-".
9789
9790         * conform/conformtest.pl: Only accept expected constant or
9791         optional-constant values with "==".  Parse all "constant" lines in
9792         one place.  Parse all "optional-constant" lines in one place.
9793         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9794         * conform/data/fmtmsg.h-data: Likewise.
9795         * conform/data/netinet/in.h-data: Likewise.
9796         * conform/data/tar.h-data: Likewise.
9797         * conform/data/limits.h-data: Use "==" form on "constant" and
9798         "optional-constant" lines.
9799
9800         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9801         Use -std=c99 for XOPEN2K.
9802         (@knownproblems): Remove.
9803         (newtoken): Don't check %isknown.
9804
9805         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9806         Do not expect macro.
9807         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9808         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9809         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9810         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9811         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9812         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9816         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9817         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9818         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9819         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9820         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9824         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9825         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9826         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9827         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9828         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9829         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9830         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9831         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9832         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9833         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9834         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9837         [XPG3] (acosh): Likewise.
9838         [XPG3] (asinh): Likewise.
9839         [XPG3] (atanh): Likewise.
9840         [XPG3] (cbrt): Likewise.
9841         [XPG3] (expm1): Likewise.
9842         [XPG3] (ilogb): Likewise.
9843         [XPG3] (log1p): Likewise.
9844         [XPG3] (logb): Likewise.
9845         [XPG3] (nextafter): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9848         [XPG3] (remainder): Likewise.
9849         [XPG3] (rint): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9853         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9857         [UNIX98 || XOPEN2K] (scalb): Expect.
9858         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9859         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9874         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9875         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9876         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9877         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9878         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9881         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9882         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9995
9996         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9997         _XOPEN_SOURCE_EXTENDED for XPG4.
9998
9999         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10000
10001         * Makeconfig (localtime): Remove variable.
10002         (inst_localtime-file): Likewise.
10003
10004 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10005
10006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10007         Update.
10008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10009         Update.
10010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10011         Update.
10012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10013         Update.
10014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10015         Update.
10016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10017         Update.
10018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10019         Update.
10020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10021         Update.
10022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10023         Update.
10024
10025 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10026
10027         [BZ #2550]
10028         [BZ #2570]
10029         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10030         comparisons to determine direction to adjust input.
10031         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10032         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10033         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10034         Likewise.
10035         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10036         Likewise.
10037         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10038         Likewise.
10039         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10040         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10041         Likewise.
10042         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10043         Likewise.
10044         * math/libm-test.inc (nexttoward_test): Add more tests.
10045
10046 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10047
10048         [BZ #14040]
10049         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10050         in version GLIBC_2.1, not GLIBC_2.0.
10051         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10052         Likewise.
10053
10054 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10055
10056         [BZ #13942]
10057         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10058         (1 - x) * (1 + x).
10059         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10060         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10061         * math/libm-test.inc (acos_test): Add more tests.
10062         (asin_test): Likewise.
10063         * sysdeps/i386/fpu/libm-test-ulps: Update.
10064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10065
10066         [BZ #14034]
10067         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10068         of square root.
10069         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10070         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10071         * math/libm-test.inc (acos_test_tonearest): New function.
10072         (acos_test_towardzero): Likewise.
10073         (acos_test_downward): Likewise.
10074         (acos_test_upward): Likewise.
10075         (asin_test_tonearest): Likewise.
10076         (asin_test_towardzero): Likewise.
10077         (asin_test_downward): Likewise.
10078         (asin_test_upward): Likewise.
10079         (main): Call the new functions.
10080         * sysdeps/i386/fpu/libm-test-ulps: Update.
10081         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10082
10083         [BZ #13884]
10084         [BZ #13924]
10085         * math/e_exp10.c: Include <float.h>.
10086         (__ieee754_exp10): Handle underflow here rather than multiplying
10087         large negative argument by M_LN10.
10088         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10089         of __ieee754_expf.
10090         * math/e_exp10l.c: Include <float.h>.
10091         (__ieee754_exp10l): Handle underflow here rather than multiplying
10092         large negative argument by M_LN10l.
10093         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10094         spurious overflow exception on underflow.
10095
10096 2012-04-29  Marek Polacek  <polacek@redhat.com>
10097
10098         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10099         (__fortify_function): New macro.
10100         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10101         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10102         __extern_always_inline.
10103         * libio/bits/stdio2.h: Likewise.
10104         * libio/bits/stdio.h: Likewise.
10105         * string/string.h: Likewise.
10106         * string/bits/string3.h: Likewise.
10107         * include/stdio.h: Likewise.
10108         * stdlib/bits/stdlib.h: Likewise.
10109         * stdlib/stdlib.h: Likewise.
10110         * rt/bits/mqueue2.h: Likewise.
10111         * rt/mqueue.h: Likewise.
10112         * posix/bits/unistd.h: Likewise.
10113         * posix/unistd.h: Likewise.
10114         * io/bits/poll2.h: Likewise.
10115         * io/bits/fcntl2.h: Likewise.
10116         * io/fcntl.h: Likewise.
10117         * io/sys/poll.h: Likewise.
10118         * misc/bits/syslog.h: Likewise.
10119         * misc/bits/syslog-ldbl.h: Likewise.
10120         * misc/sys/syslog.h: Likewise.
10121         * socket/bits/socket2.h: Likewise.
10122         * socket/sys/socket.h: Likewise.
10123         * debug/tst-chk1.c: Likewise.
10124         * wcsmbs/bits/wchar2.h: Likewise.
10125         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10126         * wcsmbs/wchar.h: Likewise.
10127
10128 2012-04-29  Andreas Jaeger  <aj@suse.de>
10129
10130         * Makerules (tests): Remove enable-check-abi protection.
10131         (check-abi-warn): Remove.
10132         (check-abi-%): Remove check-abi-warn usage.
10133
10134         * configure.in: Remove check-abi configure option.
10135         * configure: Regenerated.
10136         * config.make.in (enable-check-abi): Remove.
10137
10138 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10139
10140         [BZ #14033]
10141         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10142         double functions to double *_finite functions.
10143
10144         [BZ #13941]
10145         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10146         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10147         LDBL_MIN_EXP.
10148         * stdio-common/Makefile (tests): Add tst-sprintf3.
10149         * stdio-common/tst-sprintf3.c: New file.
10150
10151         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10152         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10153
10154 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10155
10156         * conform/conformtest.pl: Remove duplicate typed-constant
10157         handling.
10158
10159 2012-04-28  David S. Miller  <davem@davemloft.net>
10160
10161         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10162         (check-abi-%): Remove AWK script prerequisite and explicit
10163         abilist directory.
10164         (check-abi): Rewrite to just diff the symlist with the abilist.
10165         (config-tls, config-abi-config): Delete, no longer used.
10166         (update-abi-%): Remove AWK script and explicit abilist directory.
10167         (update-abi): Rewrite to simply compare and conditionally copy the
10168         symlist and the sysdep abilist file.  Remove update-abi-config
10169         checks.
10170         * abilist/ld.abilist: Remove.
10171         * abilist/libBrokenLocale.abilist: Remove.
10172         * abilist/libanl.abilist: Remove.
10173         * abilist/libcrypt.abilist: Remove.
10174         * abilist/libdl.abilist: Remove.
10175         * abilist/librt.abilist: Remove.
10176         * abilist/libthread_db.abilist: Remove.
10177         * abilist/libutil.abilist: Remove.
10178         * scripts/extract-abilist.awk: Remove.
10179         * scripts/merge-abilist.awk: Remove.
10180         * sysdeps/generic/libcidn.abilist: New file.
10181         * sysdeps/generic/libnss_compat.abilist: New file.
10182         * sysdeps/generic/libnss_db.abilist: New file.
10183         * sysdeps/generic/libnss_dns.abilist: New file.
10184         * sysdeps/generic/libnss_files.abilist: New file.
10185         * sysdeps/generic/libnss_hesiod.abilist: New file.
10186         * sysdeps/generic/libnss_nis.abilist: New file.
10187         * sysdeps/generic/libnss_nisplus.abilist: New file.
10188         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10189         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10190         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10191         file.
10192         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10193         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10194         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10195         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10196         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10197         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10198         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10199         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10200         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10201         file.
10202         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10203         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10204         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10205         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10206         file.
10207         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10208         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10209         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10210         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10211         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10212         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10213         file.
10214         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10215         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10216         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10217         file.
10218         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10219         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10220         New file.
10221         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10222         New file.
10223         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10224         New file.
10225         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10226         New file.
10227         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10228         New file.
10229         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10230         New file.
10231         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10232         New file.
10233         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10234         New file.
10235         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10236         New file.
10237         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10238         New file.
10239         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10240         New file.
10241         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10242         New file.
10243         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10244         New file.
10245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10246         file.
10247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10248         New file.
10249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10250         New file.
10251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10252         file.
10253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10254         New file.
10255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10256         New file.
10257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10258         file.
10259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10260         New file.
10261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10262         New file.
10263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10264         New file.
10265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10266         New file.
10267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10268         New file.
10269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10270         New file.
10271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10272         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10273         file.
10274         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10275         New file.
10276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10277         file.
10278         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10279         file.
10280         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10281         file.
10282         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10283         file.
10284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10285         file.
10286         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10287         New file.
10288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10289         file.
10290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10291         file.
10292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10293         New file.
10294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10295         file.
10296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10297         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10298         file.
10299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10300         New file.
10301         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10302         file.
10303         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10304         file.
10305         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10306         file.
10307         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10308         file.
10309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10310         file.
10311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10312         New file.
10313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10316         file.
10317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10318         New file.
10319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10320         file.
10321         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10322         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10323         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10324         file.
10325         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10326         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10327         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10328         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10329         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10330         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10331         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10332         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10333         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10334         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10336         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10337         file.
10338         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10339         New file.
10340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10341         file.
10342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10343         file.
10344         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10345         file.
10346         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10347         file.
10348         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10349         file.
10350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10351         New file.
10352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10353         New file.
10354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10355         file.
10356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10357         New file.
10358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10359         file.
10360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10362         file.
10363         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10364         New file.
10365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10366         file.
10367         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10368         file.
10369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10370         file.
10371         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10372         file.
10373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10374         file.
10375         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10376         New file.
10377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10378         New file.
10379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10380         file.
10381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10382         New file.
10383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10384         file.
10385
10386 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10387
10388         * conform/conformtest.pl: Fix typo in handling typed-constant from
10389         allow-header.
10390
10391 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10392
10393         * README: Cut down references to pre-2.6 Linux kernels and
10394         Linuxthreads.  Update lists of configurations in libc and ports
10395         and sort alphabetically.  Say "or newer" with Linux kernel version
10396         requirements.
10397
10398         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10399
10400 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10401
10402         [BZ #887]
10403         * math/libm-test.inc (logb_test_downward): New test to expose
10404         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10405         rounding mode.
10406
10407 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10408
10409         [BZ #14027]
10410         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10411         to be done.
10412         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10413         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10414
10415 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10416
10417         * sysdeps/unix/i386/brk.S: Remove file.
10418         * sysdeps/unix/i386/dl-brk.S: Likewise.
10419         * sysdeps/unix/i386/pipe.S: Likewise.
10420         * sysdeps/unix/i386/sigreturn.S: Likewise.
10421         * sysdeps/unix/i386/syscall.S: Likewise.
10422         * sysdeps/unix/i386/vfork.S: Likewise.
10423         * sysdeps/unix/i386/wait.S: Likewise.
10424
10425         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10426         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10427
10428         * configure.in (arm*-none*): Do not allow without
10429         --enable-hacker-mode.
10430         (netbsd*): Remove case setting base_os.
10431         (386bsd*): Likewise.
10432         (freebsd*): Likewise.
10433         (bsdi*): Likewise.
10434         (osf*): Likewise.
10435         (sunos*): Likewise.
10436         (ultrix*): Likewise.
10437         (newsos*): Likewise.
10438         (dynix*): Likewise.
10439         (*bsd*): Likewise.
10440         (sysv*): Likewise.
10441         (isc*): Likewise.
10442         (esix*): Likewise.
10443         (sco*): Likewise.
10444         (minix*): Likewise.
10445         (irix4*): Likewise.
10446         (irix6*): Likewise.
10447         (solaris[2-9]*): Likewise.
10448         (none): Likewise.
10449         * configure: Regenerated.
10450
10451 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10452
10453         [BZ #11521]
10454         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10455         overflow or cancellation in calculating denominator.
10456         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10457         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10458         down expression to avoid unexpected rounding in newer GCCs.
10459         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10460
10461 2012-04-26  David S. Miller  <davem@davemloft.net>
10462
10463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10464         long-double compat symbols.
10465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10478
10479 2012-04-25  David S. Miller  <davem@davemloft.net>
10480
10481         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10482         HWCAP_* values only after the memory barriers have been defined.
10483         (atomic_full_barrier): Define.
10484         (atomic_read_barrier): Define.
10485         (atomic_write_barrier): Define.
10486
10487 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10488
10489         * shlib-versions: Add libgcc_s version information.
10490         * sysdeps/generic/libgcc_s.h: Remove.
10491         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10492         libgcc_s.h.
10493         * sysdeps/gnu/unwind-resume.c: Likewise.
10494         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10495
10496 2012-04-25  David S. Miller  <davem@davemloft.net>
10497
10498         * sysdeps/unix/sparc/brk.S: Delete.
10499         * sysdeps/unix/sparc/dl-brk.S: Delete.
10500         * sysdeps/unix/sparc/pipe.S: Delete.
10501         * sysdeps/unix/sparc/sysdep.S: Delete.
10502         * sysdeps/unix/sparc/sysdep.h: Delete.
10503         * sysdeps/unix/sparc/vfork.S: Delete.
10504         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10505         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10506         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10507         ret_ERRVAL, r0, r1, MOVE): Define.
10508         (JUMPTARGET): Remove.
10509         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10510         sysdeps/unix/sparc/sysdep.h
10511         (ENTRY, END): Remove.
10512         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10513
10514 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10515
10516         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10517         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10518         -DIS_IN_build.
10519
10520         * timezone/README: Update upstream location and email address for
10521         tzcode and tzdata.
10522         * timezone/zdump.c: Update from tzcode 2012b.
10523         * timezone/zic.c: Likewise.
10524
10525         * configure.in (libc_cv_as_needed): Remove test.
10526         * configure: Regenerated.
10527         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10528         conditional definition.
10529         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10530         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10531         * config.make.in (have-as-needed): Remove variable.
10532
10533 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10534             Paul Pluzhnikov  <ppluzhnikov@google.com>
10535
10536         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10537         strings correctly.
10538
10539 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10540
10541         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10542         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10543         * sysdeps/sh/strlen.S: Likewise.
10544
10545 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10546
10547         * sysdeps/unix/fork.S: Remove file.
10548         * sysdeps/unix/i386/fork.S: Likewise.
10549         * sysdeps/unix/sparc/fork.S: Likewise.
10550
10551         * sysdeps/unix/system.c: Remove file.
10552         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10553
10554         * sysdeps/unix/getegid.S: Remove file.
10555         * sysdeps/unix/geteuid.S: Likewise.
10556
10557 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10558
10559         * scripts/check-localplt.awk: New file.
10560         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10561         of diff.
10562         * scripts/data/localplt-generic.data: Add a comment.
10563
10564         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10565         NODE when __dir_mkfile failed.
10566         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10567         Reported by Ludovic Courtès <ludo@gnu.org>.
10568
10569 2012-04-24  Andreas Jaeger  <aj@suse.de>
10570
10571         * Makerules (common-clean): Also remove gen-as-const-headers
10572         files.
10573
10574 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10575
10576         * Makerules (native-compile): Do not change working directory for
10577         build.  Use $(OUTPUT_OPTION) in command.
10578         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10579
10580 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10581
10582         [BZ #13886]
10583         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10584         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10585         * math/libm-test.inc (floor_test): Add more tests.
10586         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10587
10588 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10589
10590         * sysdeps/unix/getdents.c: Remove file.
10591         * sysdeps/unix/sysv/getdents.c: Likewise.
10592         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10593
10594         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10595         sysdeps/unix/mman/syscalls.list.
10596         (mmap): Likewise.
10597         (mprotect): Likewise.
10598         (msync): Likewise.
10599         (munmap): Likewise.
10600         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10601         * sysdeps/unix/mman/syscalls.list: Remove.
10602         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10603
10604         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10605         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10606         * configure: Regenerated.
10607         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10608         $(libgcc_s_suffix).
10609         * config.make.in (libgcc_s_suffix): Remove variable.
10610
10611 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10612
10613         * sysdeps/unix/sysv/gethostname.c: Move to ...
10614         * sysdeps/posix/gethostname.c: ... here.
10615
10616         * sysdeps/unix/execve.S: Remove file.
10617
10618         * sysdeps/unix/_exit.S: Remove file.
10619
10620 2012-04-23  Andreas Jaeger  <aj@suse.de>
10621
10622         [BZ #13739]
10623         * manual/Makefile: Remove make dist support, there's no
10624         need for a stand-alone documentation tar ball.
10625         (TEXI2DVI): Define always, it's not in Makeconfig.
10626         (dist): Removed.
10627         (tar-it): Removed.
10628         (edition): Removed.
10629         (glibc-doc-$(edition).tar): Removed
10630         (%.Z): Removed.
10631         (%.gz): Removed.
10632         (%.uu): Removed.
10633         (ETAGS): Remove, it's in Makeconfig.
10634         (move-if-change): Remove, it's in Makeconfig.
10635
10636 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10637
10638         [BZ #13970]
10639         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10640         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10641         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10642         (strtod_l, strtof_l, strtold_l): Remove __wur.
10643         It is not necessarily an error to ignore strtol's return value.
10644         One can reliably look at the stored endptr to decide whether
10645         the number had valid syntax.
10646
10647 2012-04-21  Andreas Jaeger  <aj@suse.de>
10648
10649         [BZ #13739]
10650         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10651
10652 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10653
10654         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10655         * sysdeps/unix/sysv/Versions: Remove file.
10656
10657 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10658
10659         [BZ #13927]
10660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10661
10662 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10663
10664         [BZ #7064]
10665         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10666         version from __vm86.
10667
10668 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10669
10670         * sysdeps/unix/common/lxstat.c: Remove file.
10671         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10672
10673         * sysdeps/unix/sysv/Makefile: Remove file.
10674
10675         * sysdeps/unix/sysv/direct.h: Remove file.
10676
10677         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10678         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10679         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10680         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10681         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10682         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10683         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10684
10685         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10686
10687         * sysdeps/unix/xmknod.c: Remove file.
10688         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10689
10690         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10691
10692         * sysdeps/unix/sysv/i386/time.S: Remove file.
10693
10694         * sysdeps/unix/fxstat.c: Remove file.
10695         * sysdeps/unix/xstat.c: Likewise.
10696         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10697
10698         * sysdeps/unix/sysv/sigaction.c: Remove file.
10699
10700         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10701         (sysdep_headers): Remove variable.
10702         [termio.h not in sysdep_headers] (generated): Likewise.
10703         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10704         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10705         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10706         * sysdeps/unix/sysv/tcflow.c: Likewise.
10707         * sysdeps/unix/sysv/tcflush.c: Likewise.
10708         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10709         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10710         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10711         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10712         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10713
10714         * sysdeps/unix/siglist.c: Remove file.
10715
10716         * sysdeps/unix/getppid.S: Remove file.
10717
10718         * sysdeps/unix/mkdir.c: Remove file.
10719         * sysdeps/unix/rmdir.c: Likewise.
10720
10721 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10722
10723         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10724         ERR_MAX value.
10725         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10726         errlist-compat value.
10727
10728 2012-04-18  David S. Miller  <davem@davemloft.net>
10729
10730         * sysdeps/generic/memcopy.h (reg_char): Delete.
10731         * debug/strcat_chk.c: Use char, not reg_char.
10732         * debug/strcpy_chk.c: Likewise.
10733         * debug/strncat_chk.c: Likewise.
10734         * debug/strncpy_chk.c: Likewise.
10735         * string/memchr.c: Likewise.
10736         * string/memrchr.c: Likewise.
10737         * string/rawmemchr.c: Likewise.
10738         * string/strcat.c: Likewise.
10739         * string/strchr.c: Likewise.
10740         * string/strchrnul.c: Likewise.
10741         * string/strcmp.c: Likewise.
10742         * string/strcpy.c: Likewise.
10743         * string/strncat.c: Likewise.
10744         * string/strncmp.c: Likewise.
10745         * string/strncpy.c: Likewise.
10746
10747 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10748
10749         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10750         __builtin_memcopy is called when src and dest ranges are known to not
10751         overlap.
10752
10753 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10754
10755         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10756         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10757         fwd_align_merge macro call.
10758         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10759         bwd_align_merge macro call.
10760         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10761
10762 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10763
10764         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10765         bwd_align_merge macros.
10766         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10767         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10768         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10769
10770 2012-04-18  David S. Miller  <davem@davemloft.net>
10771
10772         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10773
10774 2012-04-18  Andreas Jaeger  <aj@suse.de>
10775
10776         [BZ# 6794]
10777         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10778         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10779         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10780
10781         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10782         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10783         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10784
10785         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10786         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10787         Adjust for changed ldbl-128 files.
10788
10789         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10790         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10791         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10792
10793 2012-04-17  David S. Miller  <davem@davemloft.net>
10794
10795         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10796
10797 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10798
10799         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10800         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10801         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10802         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10803         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10804         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10805
10806 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10807
10808         [BZ #6794]
10809         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10810         * math/libm-test.inc: Add ilogb errno and exception tests.
10811         * math/w_ilogb.c: New file: ilogb wrapper.
10812         * math/w_ilogbf.c: New file: ilogbf wrapper.
10813         * math/w_ilogbl.c: New file: ilogbl wrapper.
10814         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10815         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10816         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10817         exception being thrown with 0.0 as argument.
10818         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10819         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10820         exception being thrown with 0.0 as argument.
10821         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10822         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10823         exception being thrown with 0.0 as argument.
10824         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10825         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10826         exception being thrown with 0.0 as argument.
10827         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10828         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10829         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10830         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10831         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10832         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10833         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10834         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10835         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10836
10837 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10838
10839         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10840         with altivec.
10841
10842 2012-04-16  Marek Polacek  <polacek@redhat.com>
10843
10844         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10845
10846 2012-04-16  Marek Polacek  <polacek@redhat.com>
10847
10848         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10849         operands of fdivp instruction.
10850
10851 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10852
10853         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10854         * elf/tst-auditmod3b.c: Likewise.
10855         * elf/tst-auditmod4b.c: Likewise.
10856         * elf/tst-auditmod5b.c: Likewise.
10857         * elf/tst-auditmod6b.c: Likewise.
10858         * elf/tst-auditmod6c.c: Likewise.
10859         * elf/tst-auditmod7b.c: Likewise.
10860         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10861         * sysdeps/x86_64/preconfigure.in: Likewise.
10862         * sysdeps/x86_64/preconfigure: Regenerated.
10863
10864 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10865
10866         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10867         __ILP32__.
10868
10869 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10870
10871         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10872         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10873
10874 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10875
10876         [BZ #13973]
10877         * locale/iso-639.def: Fix gl language name. Spotted by
10878         Yaron Shahrabani.
10879
10880 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10881
10882         [BZ #2074]
10883         * libio/libio.h (__io_write_fn): Update comment.
10884
10885 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10886
10887         [BZ #2074]
10888         * stdio.texi (Hook Functions): The user provided writer function
10889         is not allowed to return -1.
10890
10891 2012-04-11  David S. Miller  <davem@davemloft.net>
10892
10893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10894
10895 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10896
10897         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10898         Add a leading slash to rtkaio.
10899
10900 2012-04-11  Jim Meyering  <meyering@redhat.com>
10901
10902         [BZ #11959]
10903         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10904         It is not necessarily an error to ignore fwrite's return
10905         value.  One can reliably use ferror to test for errors after
10906         the fact.
10907
10908 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10909
10910         * bits/types.h (__snseconds_t): New type.
10911         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10912
10913         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10914         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10915         (__SNSECONDS_T_TYPE): Likewise.
10916         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10917         (__SNSECONDS_T_TYPE): Likewise.
10918         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10919         (__SNSECONDS_T_TYPE): Likewise.
10920
10921 2012-04-10  Andreas Jaeger  <aj@suse.de>
10922
10923         [BZ #2636]
10924         * manual/time.texi (Processor Time): Return type of times is
10925         elapsed real time since an arbitrary point in the past.
10926         (CPU Time): Move CLK_TCK from here...
10927         (Processor Time): ...to here.  Correct description.
10928         * manual/conf.texi (Constants for Sysconf): Correct description of
10929         _SC_CLK_TCK.
10930
10931 2012-04-10  David S. Miller  <davem@davemloft.net>
10932
10933         [BZ #13967]
10934         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10935         where the is a gap between DT_REL(A) and DT_JMPREL.
10936
10937 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10938
10939         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10940         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10941         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10942
10943 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10944
10945         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10946         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10947         (dl_main): Handle --inhibit-cache.
10948         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10949         _dl_inhibit_cache.
10950         * elf/dl-load.c (_dl_map_object): Use it.
10951         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10952
10953 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10954
10955         [BZ #13872]
10956         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10957         (__ieee754_powl): Saturate large exponents rather than testing for
10958         overflow of y*log2(x).
10959         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10960         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10961         exceptions.
10962
10963         [BZ #11521]
10964         * math/s_ctan.c: Include <float.h>.
10965         (__ctan): Avoid internal overflow or cancellation in calculating
10966         denominator.
10967         * math/s_ctanf.c: Likewise.
10968         * math/s_ctanl.c: Likewise.
10969         * math/s_ctanh.c: Likewise.
10970         * math/s_ctanhf.c: Likewise.
10971         * math/s_ctanhl.c: Likewise.
10972         * math/libm-test.inc (ctan_test): Add more tests.
10973         (ctanh_test): Likewise.
10974         * sysdeps/i386/fpu/libm-test-ulps: Update.
10975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10976
10977 2012-04-09  Andreas Jaeger  <aj@suse.de>
10978
10979         [BZ #6894]
10980         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10981         is an optional BSD extension.
10982
10983         [BZ #10254]
10984         * manual/stdio.texi (Opening Streams): Document additional fopen
10985         parameters.
10986
10987 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10988
10989         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10990         %eax without telling the compiler.
10991
10992 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10993
10994         [BZ # 13963]
10995         * manual/install.texi: Use sourceware.org.
10996
10997 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10998
10999         [BZ #13873]
11000         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11001         (__ieee754_pow): Generate overflow and underflow using huge*huge
11002         and tiny*tiny rather than just returning constant infinity or zero
11003         for large exponents.
11004         * math/libm-test.inc (pow_test): Require overflow exceptions for
11005         applicable cases of large exponents.
11006
11007         [BZ #706]
11008         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11009         (__ieee754_pow): Use iterative multiplication algorithm only for
11010         integer exponents with absolute value below 1024.  Check for odd
11011         integer exponents when using algorithm for real exponents.
11012         * math/libm-test.inc (pow_test): Add more tests.
11013         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11014
11015 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11016
11017         [BZ #13705]
11018         * math/libm-test.inc (exp_test): Do not allow overflow exception
11019         on underflow test.
11020
11021 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11022
11023         [BZ #13705]
11024         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11025         instead of __kernel_standard_f.
11026
11027 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11028
11029         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11030         * sysdeps/x86_64/memset_chk.S: Likewise.
11031
11032 2012-04-08  Andreas Jaeger  <aj@suse.de>
11033
11034         [BZ #10153]
11035         * manual/startup.texi (Environment Access): Describe return value
11036         for putenv and setenv.
11037
11038         [BZ #6895]
11039         * manual/filesys.texi (Directory Entries): Add description for
11040         DT_LNK.
11041
11042         [BZ #6890]
11043         * manual/filesys.texi (Directory Entries): Clarify that it's file
11044         system not operating system in the description of DT_UNKNOWN.
11045
11046         [BZ #6578]
11047         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11048
11049 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11050
11051         [BZ #6649]
11052         * manual/llio.texi (Opening and Closing Files): Add cross
11053         reference to explain mode argument.
11054
11055 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11056
11057         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11058         * sysdeps/x86_64/memset_chk.S: Likewise.
11059
11060 2012-04-07  David S. Miller  <davem@davemloft.net>
11061
11062         * elf/elf.h (R_SPARC_WDISP10): Define.
11063         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11064         R_SPARC_SIZE32.
11065         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11066         R_SPARC_SIZE64 and R_SPARC_H34.
11067
11068 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11069
11070         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11071         conditions and remove no longer applicable assertion.
11072
11073 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11074
11075         * bits/byteswap.h: Include <features.h>.
11076         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11077         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11078
11079 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11080
11081         * bits/byteswap.h (__bswap_16): Removed.
11082         Include <bits/byteswap-16.h> to get __bswap_16.
11083         * sysdeps/i386/bits/byteswap.h: Likewise.
11084         * sysdeps/s390/bits/byteswap.h: Likewise.
11085         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11086         * bits/byteswap-16.h: New file.
11087         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11088         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11089         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11090         * string/Makefile (headers): Add bits/byteswap-16.h.
11091
11092 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11093
11094         [BZ #13895]
11095         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11096         extra indirection.
11097         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11098         * nss/tst-nss-static.c: New.
11099
11100 2012-04-06  Robert Millan  <rmh@gnu.org>
11101
11102         [BZ #6486]
11103         * manual/llio.texi (File Position Primitive): lseek
11104         refers to WHENCE when it really means OFFSET.
11105
11106 2012-04-06  Andreas Jaeger  <aj@suse.de>
11107
11108         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11109         strncmp declarations.
11110
11111         * abilist/libc.abilist: Add __poll and __ppoll.
11112
11113 2012-04-05  David S. Miller  <davem@davemloft.net>
11114
11115         * scripts/check-local-headers.sh: Accept a host triplet in the
11116         path matched by the exclude regexp.
11117
11118         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11119         definition.
11120         * sysdeps/powerpc/powerpc32/dl-machine.h
11121         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11122         * sysdeps/s390/s390-32/dl-machine.h
11123         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11124         * sysdeps/sparc/sparc32/dl-machine.h
11125         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11126         * sysdeps/sparc/sparc64/dl-machine.h
11127         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11128
11129         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11130         lazy binding.
11131         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11132         undefined symbol errors.
11133
11134         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11135         DT_NEEDED entries.
11136
11137 2012-04-05  Michael Matz  <matz@suse.de>
11138
11139         [BZ #13592]
11140         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11141
11142 2012-04-05  Andreas Jaeger  <aj@suse.de>
11143
11144         [BZ #13908]
11145         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11146         comment.
11147
11148 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11149
11150         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11151         which ROUND is no valid rounding mode.
11152
11153 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11154
11155         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11156         read again.
11157         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11158
11159 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11160
11161         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11162         an exception using FPU order intentionally.
11163
11164 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11165
11166         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11167         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11168         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11169         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11170
11171 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11172
11173         [BZ #12340]
11174         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11175         EINVAL when BUFLEN is too smal.
11176
11177 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11178
11179         [BZ #13553]
11180         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11181         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11182
11183 2012-04-03  Andreas Jaeger  <aj@suse.de>
11184
11185         [BZ #13938]
11186         * manual/setjmp.texi (System V contexts): Fix sentence.
11187
11188         [BZ #13926]
11189         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11190         New macro for this case.
11191         [!__GNUC__] (__bswap_64): New inline function for this case.
11192         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11193         * bits/byteswap.h: Likewise.
11194         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11195         ull, guard with __GLIBC_HAVE_LONG_LONG.
11196
11197         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11198         __GLIBC_HAVE_LONG_LONG.
11199
11200         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11201         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11202
11203 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11204
11205         [BZ #13691]
11206         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11207         inptr and inend, rather than using last_ch.
11208
11209 2012-04-02  David S. Miller  <davem@davemloft.net>
11210
11211         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11212         * stdio-common/printf-parse.h (read_int): Change return type to
11213         'int', return -1 on INT_MAX overflow.
11214         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11215         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11216         overflows INT_MAX.  Check for overflow of in-format-string precision
11217         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11218         SIZE_MAX not INT_MAX for integer overflow test.
11219         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11220         skip the construct in the format string but do not record anything.
11221         * stdio-common/bug22.c: Adjust to test both width/prevision
11222         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11223         explicitly for proper errno values.
11224
11225 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11226
11227         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11228         CHAR_MAX.
11229         * string/test-strcmp.c [! WIDE]: Likewise.
11230         * time/tst-mktime2.c: Likewise for INT_MAX.
11231         * string/test-string.h: #include <sys/param.h> for MIN.
11232
11233         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11234         * sysdeps/i386/init-first.c (init): Likewise.
11235         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11236         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11237         * sysdeps/sh/init-first.c (init): Likewise.
11238
11239 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11240
11241         * po/ru.po: Update from translation team.
11242         * po/vi.po: Likewise.
11243
11244 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11245
11246         * resolv/nss_dns/dns-host.c: Merge copyright years.
11247
11248 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11249
11250         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11251         Optimize memcpy with prefetch if
11252         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11253         src, dst pointers have unequal 16 byte alignments.
11254
11255 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11256
11257         [BZ #13928]
11258         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11259         from a CNAME entry and return the minimum ttl for the query.
11260         (gaih_getanswer_slice): Likewise.
11261
11262 2012-03-30  Jeff Law  <law@redhat.com>
11263
11264         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11265         due to long keys.
11266         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11267         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11268
11269         * resolv/nss_dns/dns-host.c: Update copyright year.
11270
11271 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11272
11273         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11274         requests to save a system call.  Fix check that all bytes are sent.
11275
11276         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11277         comments for sendmmsg.
11278
11279 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11280
11281         [BZ #13691]
11282         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11283         with only 1 character between 0x0041 and 0x01b0.
11284         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11285         * wcsmbs/tst-mbsnrtowcs.c: New file.
11286
11287 2012-03-29  David S. Miller  <davem@davemloft.net>
11288
11289         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11290         small copies by hand.
11291
11292 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11293
11294         [BZ #13761]
11295         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11296         _nss_compat_initgroups_dyn): Fall back to malloc/free
11297         for large group memberships.
11298
11299 2012-03-28  David S. Miller  <davem@davemloft.net>
11300
11301         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11302         that branches into memcpy.
11303         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11304         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11305         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11306         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11307         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11308         bits.
11309         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11310         implementation too.
11311         * sysdeps/sparc/mempcpy.S: New file.
11312
11313         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11314         the IFUNC routine in the libc case.
11315         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11316
11317         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11318         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11319         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11320         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11321         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11322         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11323         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11324         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11325
11326         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11327         loop to 256 bytes instead of 64 bytes and fix test signedness.
11328
11329         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11330         * sysdeps/sparc/sparc32/Makefile: rather than here...
11331         * sysdeps/sparc/sparc64/Makefile: and here.
11332
11333 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11334
11335         * malloc/mallocbug.c: Avoid warnings about unused variables.
11336
11337 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11338
11339         [BZ #13760]
11340         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11341         in the right place. Discard and retry query if response is
11342         larger than input buffer size.
11343
11344 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11345
11346         [BZ #369]
11347         [BZ #2678]
11348         [BZ #3866]
11349         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11350         x for large integer exponent.
11351         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11352         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11353         sign of result as needed afterwards.
11354         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11355         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11356         result for underflowing pow the same as for overflow.
11357         (__kernel_standard_l): Handle powl overflow and underflow here
11358         rather than calling __kernel_standard.
11359         * math/libm-test.inc (pow_test): Add more tests.
11360
11361         [BZ #3868]
11362         [BZ #13879]
11363         [BZ #13910]
11364         [BZ #13911]
11365         [BZ #13912]
11366         [BZ #13913]
11367         [BZ #13915]
11368         [BZ #13916]
11369         [BZ #13917]
11370         [BZ #13918]
11371         [BZ #13919]
11372         [BZ #13920]
11373         [BZ #13921]
11374         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11375         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11376         (__kernel_standard_l): New function.
11377         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11378         __kernel_standard.
11379         * math/w_acosl.c (__acosl): Likewise.
11380         * math/w_asinl.c (__asinl): Likewise.
11381         * math/w_atan2l.c (__atan2l): Likewise.
11382         * math/w_atanhl.c (__atanhl): Likewise.
11383         * math/w_coshl.c (__coshl): Likewise.
11384         * math/w_exp10l.c (__exp10l): Likewise.
11385         * math/w_exp2l.c (__exp2l): Likewise.
11386         * math/w_fmodl.c (__fmodl): Likewise.
11387         * math/w_hypotl.c (__hypotl): Likewise.
11388         * math/w_j0l.c (__j0l, __y0l): Likewise.
11389         * math/w_j1l.c (__j1l, __y1l): Likewise.
11390         * math/w_jnl.c (__jnl, __ynl): Likewise.
11391         * math/w_lgammal.c (__lgammal): Likewise.
11392         * math/w_log10l.c (__log10l): Likewise.
11393         * math/w_log2l.c (__log2l): Likewise.
11394         * math/w_logl.c (__logl): Likewise.
11395         * math/w_powl.c (__powl): Likewise.
11396         * math/w_remainderl.c (__remainderl): Likewise.
11397         * math/w_scalbl.c (sysv_scalbl): Likewise.
11398         * math/w_sinhl.c (__sinhl): Likewise.
11399         * math/w_sqrtl.c (__sqrtl): Likewise.
11400         * math/w_tgammal.c (__tgammal): Likewise.
11401         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11402         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11403         * math/libm-test.inc (acos_test): Add more tests.
11404         (acosh_test): Likewise.
11405         (asin_test): Likewise.
11406         (atanh_test): Likewise.
11407         (exp_test): Likewise.
11408         (exp10_test): Likewise.
11409         (exp2_test): Likewise.
11410         (expm1_test): Likewise.
11411         (lgamma_test): Likewise.
11412         (log_test): Likewise.
11413         (log10_test): Likewise.
11414         (log1p_test): Likewise.
11415         (log2_test): Likewise.
11416         (pow_test): Do not allow some spurious overflow exceptions.
11417         (sqrt_test): Add more tests.
11418         (tgamma_test): Likewise.
11419         (y0_test): Likewise.
11420         (y1_test): Likewise.
11421         (yn_test): Likewise.
11422
11423 2012-03-27  Anton Blanchard  <anton@samba.org>
11424
11425         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11426         MAP_HUGETLB.
11427         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11428         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11429         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11430
11431 2012-03-27  David S. Miller  <davem@davemloft.net>
11432
11433         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11434
11435         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11436         have-as-vis3 check.
11437
11438 2012-03-27  Andreas Jaeger  <aj@suse.de>
11439
11440         * sysdeps/x86_64/elf/configure.in: Moved to ...
11441         * sysdeps/x86_64/configure.in: ... here.
11442         * sysdeps/x86_64/elf/start.S: Moved to ...
11443         * sysdeps/x86_64/start.S: ... here.
11444         * sysdeps/x86_64/elf/configure: Delete.
11445
11446         * sysdeps/x86_64/configure.in: Merge contents from
11447         sysdeps/i386/configure.in (without i686 check).
11448
11449         * sysdeps/i386/elf/Versions: Merge into ...
11450         * sysdeps/i386/Versions: ... this.
11451         * sysdeps/i386/elf/Versions: Delete file.
11452         * sysdeps/i386/elf/start.S: Moved to ...
11453         * sysdeps/i386/start.S: ...here.
11454         * sysdeps/i386/elf/configure.in: Merge into...
11455         * sysdeps/i386/configure.in: ...here.
11456         * sysdeps/i386/elf/configure.in: Delete file.
11457         * sysdeps/i386/elf/configure: Delete file.
11458
11459         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11460         * debug/backtracesyms.c: ... here.
11461         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11462         * debug/backtracesymsfd.c: ... here.
11463         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11464         * sysdeps/generic/ifunc-sel.h: ... here.
11465
11466         * sysdeps/unix/i386/start.c: Delete file.
11467         * sysdeps/unix/sparc/start.c: Delete file.
11468         * sysdeps/unix/start.c: Delete file.
11469
11470         * sysdeps/sh/elf/configure.in: Moved to ...
11471         * sysdeps/sh/configure.in: ... here.
11472         * sysdeps/sh/elf/start.S: Moved to ...
11473         * sysdeps/sh/start.S: ... here.
11474         * sysdeps/sh/elf/configure: Delete file.
11475
11476         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11477         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11478         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11479         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11480         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11481         * sysdeps/powerpc/powerpc64/start.S: here.
11482         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11483         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11484         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11485         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11486         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11487
11488         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11489         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11490         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11491         * sysdeps/powerpc/powerpc32/start.S: ... here.
11492         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11493         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11494         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11495
11496         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11497         * sysdeps/powerpc/ifunc-sel.h: ... here.
11498         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11499         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11500
11501         * sysdeps/sparc/elf/configure.in: Moved to ...
11502         * sysdeps/sparc/configure.in: ... here.
11503         * sysdeps/sparc/elf/configure: Delete file.
11504         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11505         * sysdeps/sparc/sparc32/start.S: ... here.
11506         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11507         * sysdeps/sparc/sparc64/start.S: ... here.
11508         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11509         * sysdeps/sparc/sparc32/Makefile: ... this.
11510         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11511         * sysdeps/sparc/sparc64/Makefile: ... this.
11512
11513         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11514         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11515         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11516         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11517         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11518         * sysdeps/s390/s390-32/setjmp.S: ... here.
11519         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11520         * sysdeps/s390/s390-32/configure.in: ... here.
11521         * sysdeps/s390/s390-32/elf/configure: Delete file.
11522         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11523         * sysdeps/s390/s390-32/start.S: ... here.
11524
11525         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11526         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11527         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11528         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11529         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11530         * sysdeps/s390/s390-64/setjmp.S: ... here.
11531         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11532         * sysdeps/s390/s390-64/configure.in: ... here
11533         * sysdeps/s390/s390-64/elf/configure: Delete file.
11534         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11535         * sysdeps/s390/s390-64/start.S: ... here.
11536         * sysdeps/s390/s390-64/elf/configure: Delete.
11537
11538         * configure.in: Remove support for elf directories in sysdeps.
11539
11540         * configure: Regenerated.
11541         * sysdeps/i386/configure: Regenerated.
11542         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11543         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11544         * sysdeps/s390/s390-32/configure: Regenerated.
11545         * sysdeps/s390/s390-64/configure: Regenerated.
11546         * sysdeps/sh/configure: Regenerated.
11547         * sysdeps/sparc/configure: Regenerated.
11548         * sysdeps/x86_64/configure: Regenerated.
11549
11550 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11551
11552         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11553
11554         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11555         denormal result into account.
11556
11557 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11558
11559         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11560         Reported by Allan McRae <allan@archlinux.org>.
11561
11562 2012-03-23  Jeff Law  <law@redhat.com>
11563
11564         * nss/getnssent.c (__nss_getent): Fix typo.
11565
11566 2012-03-23  David S. Miller  <davem@davemloft.net>
11567
11568         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11569
11570 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11571
11572         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11573         to pad to uint64_t for each field.
11574         (dl_tls_index): Replace unsigned long with uint64_t.
11575
11576 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11577         Paul Pluzhnikov  <ppluzhnikov@google.com>
11578
11579         [BZ #6528]
11580         * grp/Makefile (otherlibs): Don't set it.
11581         * inet/Makefile (otherlibs): Likewise.
11582         * login/Makefile (otherlibs): Likewise.
11583         * nscd/Makefile (otherlibs): Likewise.
11584         * posix/Makefile (otherlibs): Likewise.
11585         * pwd/Makefile (otherlibs): Likewise.
11586         * rt/Makefile (otherlibs): Likewise.
11587         * sunrpc/Makefile (otherlibs): Likewise.
11588         * nss/Makefile (otherlibs): Likewise.
11589         Add libnss_files to routines and static-only-routines.
11590         ($(objpfx)getent): Remove rule.
11591         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11592         static-only-routines.
11593
11594 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11595
11596         [BZ #13892]
11597         * math/s_cexp.c: Include <float.h>.
11598         (__cexp): Handle exp result overflowing not necessarily
11599         overflowing both real and imaginary parts of result.
11600         * math/s_cexpf.c: Likewise.
11601         * math/s_cexpl.c: Likewise.
11602         * math/libm-test.inc (cexp_test): Add more tests.
11603         * sysdeps/i386/fpu/libm-test-ulps: Update.
11604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11605
11606 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11607
11608         * include/link.h (ELFW): New macro.
11609         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11610         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11611
11612 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11613
11614         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11615         with uint64_t.
11616
11617 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11618
11619         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11620         declaration.
11621         (struct La_x32_retval): Likewise.
11622
11623 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11624
11625         * sysdeps/x86_64/preconfigure.in: New file.
11626         * sysdeps/x86_64/preconfigure: New generated file.
11627
11628 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11629
11630         [BZ #13824]
11631         * math/e_exp2l.c: Include <float.h>.
11632         (__ieee754_exp2l): Handle overflow and underflow cases
11633         separately.  Only pass fractional part of argument to
11634         __ieee754_expl.
11635         * math/libm-test.inc (exp2_test): Add more tests.
11636
11637         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11638         negating x to take absolute value.
11639         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11640         Likewise.
11641         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11642         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11643         Likewise.
11644         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11645         computing low part if x was negated.
11646         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11647
11648 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11649
11650         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11651         la_x32_gnu_pltexit.
11652         (pltexit): Cast int_retval to ptrdiff_t.
11653         * elf/tst-auditmod3b.c: Likewise.
11654         * elf/tst-auditmod4b.c: Likewise.
11655         * elf/tst-auditmod5b.c: Likewise.
11656         * elf/tst-auditmod6b.c: Likewise.
11657         * elf/tst-auditmod6c.c: Likewise.
11658         * elf/tst-auditmod7b.c: Likewise.
11659
11660         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11661         and x32_gnu_pltexit.
11662
11663         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11664         __ELF_NATIVE_CLASS.
11665         (La_x32_regs): New macro.
11666         (La_x32_retval): Likewise.
11667         (la_x32_gnu_pltenter): New function prototype.
11668         (la_x32_gnu_pltexit): Likewise.
11669
11670 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11671
11672         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11673         exponent.
11674
11675         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11676
11677         * configure.in (libc_cv_cc_nofma): Check for option to disable
11678         generation of FMA instructions.
11679         * configure: Regenerate.
11680         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11681         * sysdeps/ieee754/dbl-64/Makefile: New file.
11682         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11683         Remove brandred-fma4.
11684         (CFLAGS-brandred-fma4.c): Remove.
11685         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11686         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11687         define.
11688         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11689         define.
11690
11691 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11692
11693         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11694         LLONG_MAX != LONG_MAX.
11695         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11696         (_fitoa_word): Likewise.
11697         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11698         LLONG_MAX != LONG_MAX.
11699         * stdio-common/_itowa.h: Include <_itoa.h>.
11700         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11701         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11702         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11703         only if not defined.
11704         (_ITOA_WORD_TYPE): Likewise.
11705         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11706         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11707
11708 2012-03-21  David S. Miller  <davem@davemloft.net>
11709
11710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11711
11712 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11713
11714         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11715         of x86_64 when setting libc_cv_slibdir, libdir and
11716         libc_cv_localedir.
11717         * sysdeps/unix/sysv/linux/configure: Regenerated.
11718
11719 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11720
11721         * manual/lang.texi (Old Varargs): Remove section.
11722         (How Variadic): Update menu.
11723         (va_start): Do not mention varargs.h.
11724
11725 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11726             Joseph Myers  <joseph@codesourcery.com>
11727
11728         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11729         link test.
11730         * configure: Regenerated.
11731
11732 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11733
11734         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11735         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11736         conformtest.pl
11737
11738 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11739
11740         * NOTES: Remove.
11741         * Makefile (files-for-dist): Remove NOTES.
11742         (NOTES): Remove rule.
11743         * README: Don't refer to NOTES.
11744         * manual/creature.texi: Don't include macros.texi.
11745         * manual/intro.texi (creature.texi): Remove comment referring to
11746         NOTES.
11747
11748         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11749         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11750         * configure: Regenerated.
11751         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11752         LIBC_TRY_CC_OPTION.
11753         (libc_cv_as_i686): Likewise.
11754         (libc_cv_cc_avx): Likewise.
11755         (libc_cv_cc_sse2avx): Likewise.
11756         (libc_cv_cc_fma4): Likewise.
11757         (libc_cv_cc_novzeroupper): Likewise.
11758         * sysdeps/i386/configure: Regenerated.
11759
11760         [BZ #13883]
11761         * sysdeps/i386/fpu/s_cexp.S: Remove.
11762         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11763         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11764         * math/libm-test.inc (cexp_test): Add more tests.
11765         * sysdeps/i386/fpu/libm-test-ulps: Update.
11766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11767
11768 2012-03-21  Allan McRae  <allan@archlinux.org>
11769
11770         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11771
11772 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11773
11774         [BZ #13871]
11775         * math/w_exp2.c: Do not include <float.h>.
11776         (o_threshold, u_threshold): Remove.
11777         (__exp2): Calculate result before checking finiteness and calling
11778         __kernel_standard.
11779         * math/w_exp2f.c: Likewise.
11780         * math/w_exp2l.c: Likewise.
11781         * math/libm-test.inc (exp2_test): Require overflow exception for
11782         1e6 input.
11783
11784         [BZ #3866]
11785         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11786         range of signed 64-bit integers before using fistpll.  Remove
11787         checks for whether integers fit in mantissa bits.
11788         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11789         the range of signed 32-bit integers before using fistpl.  Remove
11790         checks for whether integers fit in mantissa bits.
11791         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11792         (__ieee754_powl): Test for y outside the range of signed 64-bit
11793         integers before using fistpll.  Reduce 64-bit values to 63-bit
11794         ones as needed.
11795         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11796         divide-by-zero is raised for zero to large negative powers.
11797         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11798         (__ieee754_powl): Test for y outside the range of signed 64-bit
11799         integers before using fistpll.  Reduce 64-bit values to 63-bit
11800         ones as needed.
11801         * math/libm-test.inc (pow_test): Add more tests.
11802
11803 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11804
11805         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11806         <stdio-common/_itoa.h>.
11807         * debug/segfault.c: Likewise.
11808         * elf/dl-cache.c: Likewise.
11809         * elf/dl-minimal.c: Likewise.
11810         * elf/dl-misc.c: Likewise.
11811         * elf/dl-sysdep.c: Likewise.
11812         * elf/dl-version.c: Likewise.
11813         * elf/rtld.c: Likewise.
11814         * hurd/hurdsock.c: Likewise.
11815         * hurd/lookup-retry.c: Likewise.
11816         * malloc/malloc.c: Likewise.
11817         * malloc/mtrace.c: Likewise.
11818         * nscd/nscd_getgr_r.c: Likewise.
11819         * nscd/nscd_getpw_r.c: Likewise.
11820         * nscd/nscd_getserv_r.c: Likewise.
11821         * posix/getopt_init.c: Likewise.
11822         * posix/wordexp.c: Likewise.
11823         * stdio-common/_itoa.c: Likewise.
11824         * stdio-common/printf_fphex.c: Likewise.
11825         * stdio-common/vfprintf.c: Likewise.
11826         * string/_strerror.c: Likewise.
11827         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11828         * sysdeps/i386/i686/hp-timing.h: Likewise.
11829         * sysdeps/mach/_strerror.c: Likewise.
11830         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11831         * sysdeps/mach/hurd/sethostid.c: Likewise.
11832         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11833         * sysdeps/mach/xpg-strerror.c: Likewise.
11834         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11835         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11836         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11837         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11838         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11839         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11840         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11841         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11842         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11843         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11844         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11845         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11846         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11847         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11848         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11849         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11850         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11851         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11852         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11853         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11854         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11855
11856         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11857
11858         * stdio-common/_itoa.h: Moved to ...
11859         * sysdeps/generic/_itoa.h: Here.
11860
11861         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11862
11863         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11864         instead of "_itoa.h" and "_itowa.h".
11865         * stdio-common/vfprintf.: Likewise.
11866
11867 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11868
11869         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11870         <bits/wordsize.h>.
11871         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11872         (__signbit): Likwise.
11873         (llrintf): Likwise.
11874         (llrint): Likwise.
11875
11876 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11877
11878         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11879         __WORDSIZE != 64.
11880
11881 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11882
11883         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11884         OVERFLOW_EXCEPTION_OK.
11885         * math/libm-test.inc ("Philosophy"): Update comment about
11886         exception testing.
11887         (OVERFLOW_EXCEPTION): Define.
11888         (OVERFLOW_EXCEPTION_OK): Likewise.
11889         (INVALID_EXCEPTION_OK): Renumber.
11890         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11891         (IGNORE_ZERO_INF_SIGN): Likewise.
11892         (test_exceptions): Handle FE_OVERFLOW.
11893         (exp10_test): Expect overflow exceptions.
11894         (exp2_test): Likewise.
11895         (expm1_test): Likewise.
11896         (nextafter_test): Likewise.
11897         (pow_test): Likewise.
11898         (scalbn_test): Likewise.
11899         (scalbln_test): Likewise.
11900
11901 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11902
11903         * sysdeps/x86_64/bits/atomic.h
11904         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11905         64bit integer.
11906         (atomic_exchange_acq): Likewise.
11907         (__arch_exchange_and_add_body): Likewise.
11908         (__arch_add_body): Likewise.
11909         (atomic_add_negative): Likewise.
11910         (atomic_add_zero): Likewise.
11911
11912 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11913
11914         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11915         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11916
11917 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11918
11919         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11920         Check __x86_64__ instead of __WORDSIZE.
11921
11922 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11925
11926 2012-03-19  David S. Miller  <davem@davemloft.net>
11927
11928         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11929
11930         * sysdeps/sparc/fpu/fenv_private.h: New file.
11931         * sysdeps/sparc/fpu/math_private.h: Use it.
11932         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11933         Remove.
11934         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11935         (libc_feholdexcept_setroundl): Remove.
11936         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11937         Remove.
11938         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11939         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11940
11941 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11944         int64_t instead of long int.
11945         (INSERT_WORDS64): Likwise.
11946
11947 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11948
11949         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11950         _Unwind_GetCFA return to _Unwind_Ptr first.
11951
11952 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11953
11954         [BZ #13629]
11955         * math/s_clog.c: Include <float.h>.
11956         (__clog): Scale large or subnormal inputs.
11957         * math/s_clogf.c: Likewise.
11958         * math/s_clogl.c: Likewise.
11959         * math/s_clog10.c: Include <float.h>.
11960         (M_LOG10_2): Define.
11961         (__clog10): Scale large or subnormal inputs.
11962         * math/s_clog10f.c: Likewise.
11963         * math/s_clog10l.c: Likewise.
11964         * math/libm-test.inc (clog_test): Add more tests.
11965         (clog10_test): Likewise.
11966         * sysdeps/i386/fpu/libm-test-ulps: Update.
11967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11968
11969         [BZ #11451]
11970         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11971         x and y.
11972         * math/libm-test.inc (atan2_test): Add another test.
11973
11974         * Makerules (common-objdir-compile): Remove.
11975         * sysdeps/unix/Makefile (config-generated): Do not add
11976         $(unix-generated) to variable.
11977         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11978         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11979         Remove rule.
11980         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11981         Likewise.
11982         [generic bits/local_lim.h] (before-compile): Do not append to
11983         variable.
11984         [generic bits/local_lim.h] (common-generated): Likewise.
11985         [generic sys/param.h] (before-compile): Do not append to variable.
11986         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11987         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11988         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11989         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11990         include.
11991         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11992         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11993         [generic sys/param.h] ($(addprefix
11994         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11995         [generic sys/param.h] (common-generated): Do not append to
11996         variable.
11997         [generic sys/param.h] (sysdep_headers): Likewise.
11998         [generic bits/errno.h] (before-compile): Do not append to
11999         variable.
12000         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12001         rule.
12002         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12003         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12004         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12005         [generic bits/errno.h] (common-generated): Do not append to
12006         variable.
12007         [generic bits/ioctls.h] (before-compile): Do not append to
12008         variable.
12009         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12010         rule.
12011         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12012         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12013         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12014         rule.
12015         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12016         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12017         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12018         [generic bits/ioctls.h] (common-generated): Do not append to
12019         variable.
12020         [generic sys/syscall.h] (syscall.h): Remove variable.
12021         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12022         rule.
12023         [generic sys/syscall.h] (before-compile): Do not append to
12024         variable.
12025         [generic sys/syscall.h] (common-generated): Likewise.
12026         * sysdeps/unix/errnos-tmpl.c: Remove file.
12027         * sysdeps/unix/errnos.awk: Likewise.
12028         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12029         * sysdeps/unix/ioctls.awk: Likewise.
12030         * sysdeps/unix/mk-local_lim.c: Likewise.
12031         * sysdeps/unix/snarf-ioctls: Likewise.
12032
12033 2012-03-19  Richard Henderson  <rth@twiddle.net>
12034
12035         * sysdeps/i386/fpu/fenv_private.h: New file.
12036         * sysdeps/i386/fpu/math_private.h: Use it.
12037         (math_opt_barrier, math_force_eval): Remove.
12038         (libc_feholdexcept_setround_53bit): Remove.
12039         (libc_feupdateenv_53bit): Remove.
12040         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12041         (math_opt_barrier, math_force_eval): Remove.
12042         (libc_feholdexcept): Remove.
12043         (libc_feholdexcept_setround): Remove.
12044         (libc_fetestexcept, libc_fesetenv): Remove.
12045         (libc_feupdateenv_test): Remove.
12046         (libc_feupdateenv, libc_feholdsetround): Remove.
12047         (libc_feresetround): Remove.
12048
12049         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12050         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12051
12052         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12053         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12054         (libc_feupdateenv_testl): New.
12055         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12056         (libc_feupdateenv_testf): New.
12057         (libc_feupdateenv): Use libc_feupdateenv_test.
12058         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12059         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12060
12061         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12062         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12063         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12064         (libc_feresetround_noex): New.
12065         (libc_feresetround_noexf): New.
12066         (libc_feresetround_noexl): New.
12067         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12068         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12069         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12070         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12071         SET_RESTORE_ROUND.
12072         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12073         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12074         (__cos): Likewise.
12075         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12076         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12077         SET_RESTORE_ROUND_NOEX.
12078         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12079         SET_RESTORE_ROUND_NOEXF.
12080         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12081         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12082         (libc_feholdsetroundf): New.
12083         (libc_feresetround, libc_feresetroundf): New.
12084
12085         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12086         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12087         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12088
12089         * sysdeps/generic/math_private.h: Include <fenv.h>.
12090         (default_libc_feholdexcept): New.
12091         (default_libc_feholdexcept_setround): New.
12092         (default_libc_fesetenv, default_libc_feupdateenv): New.
12093         (libc_feholdexcept): Only define if undefined.
12094         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12095         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12096         (libc_feholdexcept_setroundl): Likewise.
12097         (libc_feholdexcept_setround_53bit): Likewise.
12098         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12099         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12100         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12101         (libc_feupdateenv_53bit): Likewise.
12102         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12103         (libc_feholdexcept): Convert from macro to inline function.
12104         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12105         (libc_fesetenv, libc_feupdateenv): Likewise.
12106
12107         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12108         not previously defined.
12109         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12110         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12111         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12112         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12113         * sysdeps/ieee754/flt-32/math_private.h: New file.
12114         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12115         math_private.h below SET_FLOAT_WORD.
12116         (__isnan, __isinf_ns, __finite): Remove.
12117         (__isnanf, __isinf_nsf, __finitef): Remove.
12118
12119 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12120
12121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12122
12123 2012-03-17  David S. Miller  <davem@davemloft.net>
12124
12125         [BZ #6471]
12126         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12127         for 2.16.
12128
12129 2012-03-16  David S. Miller  <davem@davemloft.net>
12130
12131         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12132         warnings.
12133
12134         [BZ #6471]
12135         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12136         properly.
12137         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12138         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12139         sysdep_routines when subdir is sysvipc.
12140         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12141         __getshmlba helper.
12142
12143         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12144
12145 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12146
12147         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12148         [__LP64__].
12149
12150 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12151
12152         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12153         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12154         (__lround): Renamed to ...
12155         (__llround): This.  Replace long int with long long int.
12156         Define lround functions as aliases of llround functions.
12157         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12158
12159 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12160
12161         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12162         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12163         adresses to uintptr_t.  Replace "long int" and "unsigned long
12164         int" with "greg_t" on va_arg.
12165
12166 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12167
12168         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12169         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12170
12171         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12172         Move e_machine check before EI_CLASS check.  Handle x32
12173         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12174         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12175         SKIP_EM_IA_64 and include
12176         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12177
12178         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12179         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12180         (add_system_dir): New macro.
12181
12182         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12183         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12184
12185 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12186
12187         [BZ #2551]
12188         [BZ #2552]
12189         [BZ #2553]
12190         [BZ #2554]
12191         [BZ #2562]
12192         [BZ #2563]
12193         [BZ #2565]
12194         [BZ #2566]
12195         [BZ #2576]
12196         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12197         (y0): Likewise.
12198         * math/w_j0f.c (j0f): Likewise.
12199         (y0f): Likewise.
12200         * math/w_j0l.c (__j0l): Likewise.
12201         (__y0l): Likewise.
12202         * math/w_j1.c (j1): Likewise.
12203         (y1): Likewise.
12204         * math/w_j1f.c (j1f): Likewise.
12205         (y1f): Likewise.
12206         * math/w_j1l.c (__j1l): Likewise.
12207         (__y1l): Likewise.
12208         * math/w_jn.c (jn): Likewise.
12209         (yn): Likewise.
12210         * math/w_jnf.c (jnf): Likewise.
12211         (ynf): Likewise.
12212         * math/w_jnl.c (__jnl): Likewise.
12213         (__ynl): Likewise.
12214         * math/libm-test.inc (j0_test): Add more tests.
12215         (j1_test): Likewise.
12216         (jn_test): Likewise.  Add trailing semicolon to existing test.
12217         (y0_test): Likewise.
12218         (y1_test): Likewise.
12219         * sysdeps/i386/fpu/libm-test-ulps: Update.
12220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12221
12222         [BZ #13851]
12223         [BZ #13854]
12224         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12225         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12226         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12227         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12228         (__tanl): Set errno for infinite argument.
12229         * sysdeps/i386/fpu/mptan.c: Remove.
12230         * sysdeps/i386/fpu/s_tan.S: Likewise.
12231         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12232         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12233         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12234         * math/libm-test.inc (tan_test): Add more tests and enable more
12235         tests for double and long double.
12236         * sysdeps/i386/fpu/libm-test-ulps: Update.
12237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12238
12239 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12240
12241         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12242         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12243
12244 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12245
12246         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12247         * configure.in: Use it for both main tree and add-ons.
12248         * configure: Regenerated.
12249
12250 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12251
12252         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12253
12254 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12255
12256         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12257         in comment.
12258
12259         [BZ #13851]
12260         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12261         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12262         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12265         infinite argument.
12266         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12267         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12268         != 0 for prec == 2.
12269         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12270         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12271         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12272         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12273         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12274         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12275         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12276         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12277         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12278         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12279         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12280         * math/libm-test.inc (cos_test): Add more tests and enable more
12281         tests for long double.
12282         (sin_test): Likewise.
12283         (sincos_test): Likewise.
12284         * sysdeps/i386/fpu/libm-test-ulps: Update.
12285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12286
12287 2012-03-16  David S. Miller  <davem@davemloft.net>
12288
12289         * sysdeps/sparc/fpu/math_private.h: New file.
12290
12291 2012-03-15  David S. Miller  <davem@davemloft.net>
12292
12293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12294         file.
12295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12297         file.
12298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12299         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12300         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12301         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12302         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12303         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12304         sysdep routines.
12305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12306
12307         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12308         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12309
12310         * sysdeps/sparc/sparc-ifunc.h: New file.
12311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12312         sparc-ifunc.h
12313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12315         Likewise.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12317         Likewise.
12318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12322         Likewise.
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12328         Likewise.
12329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12330         Likewise.
12331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12335         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12336         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12337         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12338         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12340         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12341         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12342         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12343         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12344         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12346         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12348         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12349         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12350         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12351         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12352         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12353         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12354         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12355
12356 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12357
12358         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12359         scaling.
12360         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12361
12362 2012-03-15  Andreas Jaeger  <aj@suse.de>
12363
12364         [BZ #13852]
12365         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12366         ieee754/flt-32 implementation for sin, cos and sincos.
12367         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12368         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12369         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12370         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12371         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12372         ieee754/flt-32 implementation for tan.
12373
12374         * math/libm-test.inc (cos_test): Enable some large input tests for
12375         float as well
12376         (sin_test): Likewise.
12377         (sincos_test): Likewise.
12378         (tan_test): Add tests for large input.
12379
12380         * sysdeps/i386/fpu/libm-test-ulps: Update.
12381
12382 2012-03-15  Andreas Jaeger  <aj@suse.de>
12383
12384         [BZ #13658]
12385         * math/libm-test.inc (cos_test): Add more test cases.
12386         (sin_test): Likewise.
12387         (sincos_test): Likewise.
12388
12389 2012-03-15  Andreas Jaeger  <aj@suse.de>
12390
12391         [BZ #13837]
12392         * math/libm-test.inc (cos_test): Add a test case for large input
12393         value.
12394         (sin_test): Likewise.
12395         (sincos_test): Likewise.
12396
12397 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12398         Joseph Myers  <joseph@codesourcery.com>
12399
12400         [BZ #13658]
12401         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12402         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12403         * sysdeps/i386/fpu/branred.c: Likewise.
12404         * sysdeps/i386/fpu/dosincos.c: Likewise.
12405         * sysdeps/i386/fpu/mpa.c: Likewise.
12406         * sysdeps/i386/fpu/s_cos.S: Likewise.
12407         * sysdeps/i386/fpu/s_sin.S: Likewise.
12408         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12409         * sysdeps/i386/fpu/sincos32.c: Likewise.
12410
12411         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12412         Define.
12413         (libc_feupdateenv_53bit): Define.
12414         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12415         Define.
12416         (libc_feupdateenv_53bit): Define.
12417
12418         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12419         53 bit (without extend i386 double precision).
12420
12421         * math/libm-test.inc (sincos_test): Add tests for large input.
12422         (sin): Likewise.
12423         (cos): Likewise.
12424
12425         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12426
12427 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12428
12429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12430
12431 2012-03-15  David S. Miller  <davem@davemloft.net>
12432
12433         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12434         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12435         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12436         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12437         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12438         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12441         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12442         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12443         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12444         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12445         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12446         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12447         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12449         file.
12450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12452         file.
12453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12455         file.
12456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12458         file.
12459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12460         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12461         fmin/fmax sysdep routines.
12462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12463
12464 2012-03-14  David S. Miller  <davem@davemloft.net>
12465
12466         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12470         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12471         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12472         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12473         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12474         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12475         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12476         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12477         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12481         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12482         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12483         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12484         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12485         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12486         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12487         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12488         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12489         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12490         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12491         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12492         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12493         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12494         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12495         routines.
12496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12497         file.
12498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12500         file.
12501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12503         file.
12504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12506         file.
12507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12509         file.
12510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12512         file.
12513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12514         file.
12515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12516         file.
12517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12518         file.
12519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12520         New file.
12521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12522         file.
12523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12524         file.
12525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12527         file.
12528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12530         file.
12531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12533         file.
12534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12536         VIS3 routines.
12537
12538         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12539         New file.
12540
12541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12542
12543         * sysdeps/sparc/configure.in: New file.
12544         * sysdeps/sparc/configure: Generate.
12545         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12546         * configure: Regenerate.
12547         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12548         * config.make.in (have-as-vis3): New.
12549         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12550         available use -Av9d instead of -Av9a.
12551         * sysdeps/sparc/sparc64/Makefile: Likewise.
12552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12554         New file.
12555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12556         file.
12557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12558         New file.
12559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12560         file.
12561         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12562         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12563         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12564         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12565         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12566
12567         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12568         fzeros/fnegs to load 0x80000000 into a float register instead of
12569         using the stack.
12570         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12571
12572 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12573
12574         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12575         bits/syscall.h.
12576         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12577         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12578         ($(inst_includedir)/bits/syscall.h): Remove rule.
12579         ($(objpfx)bits/syscall.d): Include instead of
12580         $(objpfx)syscall-list.d.
12581         (generated): Change syscall-list.h and syscall-list.d to
12582         bits/syscall.h and bits/syscall.d.
12583
12584 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12585
12586         [BZ #13846]
12587         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12588
12589 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12590
12591         [BZ #13841]
12592         * math/s_csqrt.c: Include <float.h>.
12593         (__csqrt): Scale large or subnormal inputs.
12594         * math/s_csqrtf.c: Likewise.
12595         * math/s_csqrtl.c: Likewise.
12596         * math/libm-test.inc (csqrt_test): Add more tests.
12597         * sysdeps/i386/fpu/libm-test-ulps: Update.
12598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12599
12600         [BZ #13840]
12601         * math/libm-test.inc (hypot_test): Add more tests.
12602
12603 2012-03-13  David S. Miller  <davem@davemloft.net>
12604
12605         [BZ #13840]
12606         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12607         double-precision for the calculation instead of scaling.
12608
12609 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12612         manipulate bits before adding and subtracting TWO52[sx].
12613         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12614         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12615         Likewise.
12616         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12617
12618 2012-03-13  David S. Miller  <davem@davemloft.net>
12619
12620         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12621         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12622         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12623         rtld-global-offsets.h
12624         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12625
12626         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12627         large parameters.
12628
12629         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12630
12631         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12632         'err' in the ifdef scope in which it is actually used.
12633
12634         * nss/nss_db/db-init.c: Include string.h
12635
12636 2012-03-12  David S. Miller  <davem@davemloft.net>
12637
12638         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12639         masking out of the most significant byte of random value used.
12640         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12641         Fix coding style in previous change.
12642
12643         * sysdeps/unix/sysv/linux/kernel-features.h
12644         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12645         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12646         expression.
12647         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12648         later.
12649
12650 2012-03-11  David S. Miller  <davem@davemloft.net>
12651
12652         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12653         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12654         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12655         for 'resultvar' otherwise things get truncated on 64-bit.
12656
12657         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12658         Fix masking out of the most significant byte of random value used.
12659
12660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12661
12662 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12663
12664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12665
12666 2012-03-09  David S. Miller  <davem@davemloft.net>
12667
12668         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12669         variables with appropriate CPP guards.
12670         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12671         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12672         on resulting framesize and the management of the outregs buffer for pltexit.
12673         Preserve floating point return values across _dl_call_pltexit call.
12674         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12675         framesize and the management of the outregs buffer for pltexit.
12676         Preserve floating point return values across _dl_call_pltexit
12677         call.
12678         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12679         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12680         (print_exit): Fix format string for return register value.
12681
12682 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12683
12684         * sunrpc/Makefile (others): Add rpcgen.
12685         ($(objpfx)rpcgen): Remove special build rule and dependency on
12686         libc.
12687         * sunrpc/rpcgen.c: New file.
12688
12689 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12690
12691         [BZ #13673]
12692         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12693         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12694         * sysdeps/i386/crti.S: Likewise.
12695         * sysdeps/i386/crtn.S: Likewise.
12696         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12697         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12698         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12699         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12700         * sysdeps/sh/crti.S: Likewise.
12701         * sysdeps/sh/crtn.S: Likewise.
12702         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12703
12704         [BZ #13673]
12705         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12706         with URL.
12707         * locale/programs/locfile-kw.gperf: Likewise.
12708         * locale/programs/charmap-kw.h: Regenerated.
12709         * locale/programs/locfile-kw.h: Likewise.
12710
12711         [BZ #13673]
12712         * intl/plural.y: Replace FSF snail mail address with URL.
12713         * intl/plural.c: Regenerated.
12714
12715 2012-03-09  Richard Henderson  <rth@twiddle.net>
12716
12717         * include/math_private.h: Remove file.
12718         * math/math_private.h: Move file ...
12719         * sysdeps/generic/math_private.h: ... here.
12720
12721         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12722         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12723         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12724
12725         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12726         and <math_private.h>.
12727         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12728         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12729         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12730         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12731         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12799         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12804         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12815         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12816         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12817         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12818         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12819         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12820         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12821         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12822         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12823         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12824         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12825         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12826         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12827         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12828         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12829         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12830         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12832         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12833         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12834         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12835         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12836         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12837         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12838         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12840         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12841         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12842         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12844         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12846         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12847         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12848         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12849         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12850         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12851         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12852         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12853         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12854         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12855         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12856         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12857         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12858         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12860         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12861         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12862         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12863         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12864         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12865         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12866         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12867         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12868         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12869         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12870         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12871         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12872         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12873         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12874         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12875         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12876         * sysdeps/ieee754/k_standard.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12992         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12996         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12997         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12999         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13001         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13004         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13005         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13007         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13009         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13014         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13025         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13026         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13027         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13028         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13037         * sysdeps/ieee754/s_lib_version.c: Likewise.
13038         * sysdeps/ieee754/s_matherr.c: Likewise.
13039         * sysdeps/ieee754/s_signgam.c: Likewise.
13040         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13041         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13042         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13043         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13044         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13045         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13046         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13047         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13048         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13049         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13050         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13051         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13052         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13053         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13054         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13055         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13056         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13057         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13058         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13059         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13060         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13061
13062 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13063
13064         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13065         * sunrpc/rpc_main.c: Likewise.
13066         * sunrpc/rpc_svcout.c: Likewise.
13067
13068 2012-03-09  David S. Miller  <davem@davemloft.net>
13069
13070         * include/math_private.h: New file.
13071
13072 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13073
13074         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13075         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13076         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13077         from <bits/socket_type.h>.
13078         (enum __socket_type): Don't define here.
13079         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13080         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13081         bits/socket_type.h.
13082
13083         [BZ #13566]
13084         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13085         checking __USE_GNU.
13086
13087         * Makerules ($(inst_includedir)/%.h): New rule.
13088         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13089         (install-others): Remove variable setting.
13090         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13091
13092 2012-03-08  Richard Henderson  <rth@twiddle.net>
13093
13094         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13095         from macro to inline function; merge with the
13096         !__LIBC_INTERNAL_MATH_INLINES version.
13097         (__ieee754_sqrtf): Likewise.
13098
13099         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13100         to inline function.
13101         (__rintf, __floor, __floorf): Likewise.
13102
13103         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13104         macro to inline function.
13105         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13106
13107         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13108         not <math/math_private.h>.
13109
13110 2012-03-08  David S. Miller  <davem@davemloft.net>
13111
13112         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13113         copyright year.
13114         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13115
13116 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13117
13118         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13119         normalization.
13120         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13121         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13122
13123 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13124
13125         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13126         be defined individually, they must be defined as a block.  Define
13127         S for printing a string instead of hidint the different by using a
13128         macro for adding the 'l'.
13129         * stdio-common/tst-fphex-wide.c: Adjust.
13130
13131 2012-03-07  Marek Polacek  <polacek@redhat.com>
13132
13133         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13134
13135 2012-03-08  Marek Polacek  <polacek@redhat.com>
13136
13137         [BZ #13806]
13138         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13139         * stdio-common/tst-fphex.c: Define a few macros to make the
13140         test reusable.  Use them.
13141         * stdio-common/tst-fphex-wide.c: New file.
13142
13143 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13144
13145         [BZ #6911]
13146         * manual/macros.texi (gnusystems): New macro.
13147         (nongnusystems): Likewise.
13148         (gnulinuxhurdsystems): Likewise.
13149         (gnuhurdsystems): Likewise..
13150         (gnulinuxsystems): Likewise.
13151         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13152         variants of the GNU system, not "GNU system".
13153         * manual/conf.texi: Likewise.
13154         * manual/errno.texi: Likewise.  Update example of errno macro
13155         expansion.
13156         * manual/filesys.texi: Likewise.
13157         (getumask): Document as specific to GNU/Hurd.
13158         * manual/install.texi: Likewise.  Reword some references to
13159         GNU/Linux.
13160         * manual/intro.texi: Likewise.
13161         * manual/io.texi: Likewise.
13162         (File Name Portability): Detail which constraints are inapplicable
13163         to all GNU systems and which are only inapplicable to GNU/Hurd.
13164         * manual/job.texi: Likewise.
13165         * manual/llio.texi: Likewise.
13166         (O_NOCTTY): Document as present on GNU/Linux.
13167         * manual/maint.texi: Likewise.
13168         * manual/memory.texi: Likewise.
13169         * manual/pattern.texi: Likewise.
13170         * manual/pipe.texi: Likewise.
13171         * manual/process.texi: Likewise.
13172         * manual/resource.texi: Likewise.
13173         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13174         child on GNU/Hurd.
13175         * manual/setjmp.texi: Likewise.
13176         * manual/signal.texi: Likewise.
13177         * manual/startup.texi: Likewise.
13178         * manual/stdio.texi: Likewise.
13179         * manual/terminal.texi: Likewise.
13180         (ONLCR): Document as POSIX.
13181         (OXTABS): Document availability on GNU/Linux as XTABS.
13182         (ONOEOT): Document availability separately from other bits.
13183         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13184         * manual/time.texi: Likewise.
13185         * manual/users.texi: Likewise.
13186         * INSTALL: Regenerated.
13187         * sysdeps/gnu/errlist.c: Regenerated.
13188
13189         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13190         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13191         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13192         puts.
13193         * configure: Regenerated.
13194
13195 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13196
13197         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13198         default includes instead of AC_HEADER_CHECK.
13199         * sysdeps/i386/configure: Regenerated.
13200
13201         [BZ #10716]
13202         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13203         * math/s_cacoshf.c (__cacoshf): Likewise.
13204         * math/s_cacoshl.c (__cacoshl): Likewise.
13205         * math/s_casinh.c (__casinh): Set signs of result from argument.
13206         * math/s_casinhf.c (__casinhf): Likewise.
13207         * math/s_casinhl.c (__casinhl): Likewise.
13208         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13209         (casinh_test): Add more tests.
13210         * sysdeps/i386/fpu/libm-test-ulps: Update.
13211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13212
13213 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13214
13215         * po/zh_TW.po: Update from translation team.
13216
13217         * login/Makefile (distribute): Remove variable.
13218         * catgets/Makefile: Likewise.
13219         * mach/Makefile: Likewise.
13220         * malloc/Makefile: Likewise.
13221         * misc/Makefile: Likewise.
13222         * iconv/Makefile: Likewise.
13223         * nscd/Makefile: Likewise.
13224         * hurd/Makefile: Likewise.
13225         * manual/Makefile: Likewise.
13226         * locale/Makefile: Likewise.
13227         * intl/Makefile: Likewise.
13228         * conform/Makefile: Likewise.
13229         * nss/Makefile: Likewise.
13230         * time/Makefile: Likewise.
13231         * soft-fp/Makefile: Likewise.
13232         * dirent/Makefile: Likewise.
13233         * gmon/Makefile: Likewise.
13234         * po/Makefile: Likewise.
13235         * rt/Makefile: Likewise.
13236         * socket/Makefile: Likewise.
13237         * math/Makefile: Likewise.
13238         * signal/Makefile: Likewise.
13239         * debug/Makefile: Likewise.
13240         * elf/Makefile: Likewise.
13241         * timezone/Makefile: Likewise.
13242         * stdlib/Makefile: Likewise.
13243         * iconvdata/Makefile: Likewise.
13244         * sunrpc/Makefile: Likewise.
13245         * io/Makefile: Likewise.
13246         * argp/Makefile: Likewise.
13247         * inet/Makefile: Likewise.
13248         * hesiod/Makefile: Likewise.
13249         * grp/Makefile: Likewise.
13250         * csu/Makefile: Likewise.
13251         * wctype/Makefile: Likewise.
13252         * crypt/Makefile: Likewise.
13253         * libio/Makefile: Likewise.
13254         * string/Makefile: Likewise.
13255         * nis/Makefile: Likewise.
13256         * resolv/Makefile: Likewise.
13257         * stdio-common/Makefile: Likewise.
13258         * wcsmbs/Makefile: Likewise.
13259         * dlfcn/Makefile: Likewise.
13260         * posix/Makefile: Likewise.
13261
13262         [BZ #6959]
13263         * timezone/Makefile: Don't install timezone files, just the programs
13264         and scripts.
13265
13266 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13267
13268         * nss/databases.def: Add missing gshadow entry.
13269
13270         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13271
13272 2012-03-06  Marek Polacek  <polacek@redhat.com>
13273
13274         [BZ #13726]
13275         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13276         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13277         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13278         * stdio-common/tst-long-dbl-fphex.c: New file.
13279
13280 2012-03-06  David S. Miller  <davem@davemloft.net>
13281
13282         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13283         (set_obp_int): New function.
13284         (get_obp_int): New function.
13285         (__get_clockfreq_via_dev_openprom): Likewise.
13286         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13287         Avoid unused variable warnings on 'val' and use builtin_expect.
13288         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13289         __builtin_expect.
13290         (INLINE_CLONE_SYSCALL): Likewise.
13291
13292 2012-03-05  David S. Miller  <davem@davemloft.net>
13293
13294         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13295
13296 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13297
13298         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13299
13300         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13301         only for |x| >= 40.
13302         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13303
13304 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13305
13306         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13307         Replace gettimeofday with __vdso_gettimeofday.
13308
13309         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13310         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13311         __vdso_clock_gettime and __vdso_getcpu.
13312
13313         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13314         time with __vdso_time.
13315
13316 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13317
13318         * manual/lang.texi (size_t): Note types to which size_t may be
13319         equivalent with the GNU C Library, but do not describe when
13320         differences between them are significant.
13321
13322 2012-03-05  Andreas Jaeger  <aj@suse.de>
13323
13324         * sysdeps/i386/fpu/libm-test-ulps: Update.
13325
13326 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13327
13328         [BZ #3976]
13329         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13330         (__ieee754_pow): Save and restore rounding mode and use
13331         round-to-nearest for main computations.
13332         * math/libm-test.inc (pow_test_tonearest): New function.
13333         (pow_test_towardzero): Likewise.
13334         (pow_test_downward): Likewise.
13335         (pow_test_upward): Likewise.
13336         (main): Call the new functions.
13337         * sysdeps/i386/fpu/libm-test-ulps: Update.
13338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13339
13340         [BZ #3976]
13341         * math/libm-test.inc (cosh_test_tonearest): New function.
13342         (cosh_test_towardzero): Likewise.
13343         (cosh_test_downward): Likewise.
13344         (cosh_test_upward): Likewise.
13345         (sinh_test_tonearest): Likewise.
13346         (sinh_test_towardzero): Likewise.
13347         (sinh_test_downward): Likewise.
13348         (sinh_test_upward): Likewise.
13349         (main): Call the new functions.
13350         * sysdeps/i386/fpu/libm-test-ulps: Update.
13351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13352
13353 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13354
13355         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13356         default stack guard is set in last bytes.
13357         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13358
13359 2012-03-05  Kees Cook  <keescook@chromium.org>
13360
13361         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13362
13363         [BZ #13656]
13364         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13365         possibly allocate from heap instead of stack.
13366         * stdio-common/bug-vfprintf-nargs.c: New file.
13367         * stdio-common/Makefile (tests): Add nargs overflow test.
13368
13369 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13370
13371         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13372
13373 2012-03-03  Marek Polacek  <polacek@redhat.com>
13374
13375         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13376         * math/math_private.h: Likewise.
13377         * stdlib/tst-strtod.c: Likewise.
13378         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13379         * sysdeps/x86_64/bits/atomic.h: Likewise.
13380
13381 2012-03-02  David S. Miller  <davem@davemloft.net>
13382
13383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13387         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13388         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13389         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13390         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13391
13392 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13393
13394         [BZ #13792]
13395         * manual/examples/README: New file, says the example source files
13396         can be used under GPL>=2.
13397         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13398         line containing just "*/".
13399         * manual/examples/add.c: Add copyright header (GPL>=2).
13400         * manual/examples/argp-ex1.c: Likewise.
13401         * manual/examples/argp-ex2.c: Likewise.
13402         * manual/examples/argp-ex3.c: Likewise.
13403         * manual/examples/argp-ex4.c: Likewise.
13404         * manual/examples/atexit.c: Likewise.
13405         * manual/examples/db.c: Likewise.
13406         * manual/examples/dir.c: Likewise.
13407         * manual/examples/dir2.c: Likewise.
13408         * manual/examples/execinfo.c: Likewise.
13409         * manual/examples/filecli.c: Likewise.
13410         * manual/examples/filesrv.c: Likewise.
13411         * manual/examples/fmtmsgexpl.c: Likewise.
13412         * manual/examples/genpass.c: Likewise.
13413         * manual/examples/inetcli.c: Likewise.
13414         * manual/examples/inetsrv.c: Likewise.
13415         * manual/examples/isockad.c: Likewise.
13416         * manual/examples/longopt.c: Likewise.
13417         * manual/examples/memopen.c: Likewise.
13418         * manual/examples/memstrm.c: Likewise.
13419         * manual/examples/mkfsock.c: Likewise.
13420         * manual/examples/mkisock.c: Likewise.
13421         * manual/examples/mygetpass.c: Likewise.
13422         * manual/examples/pipe.c: Likewise.
13423         * manual/examples/popen.c: Likewise.
13424         * manual/examples/rprintf.c: Likewise.
13425         * manual/examples/search.c: Likewise.
13426         * manual/examples/select.c: Likewise.
13427         * manual/examples/setjmp.c: Likewise.
13428         * manual/examples/sigh1.c: Likewise.
13429         * manual/examples/sigusr.c: Likewise.
13430         * manual/examples/stpcpy.c: Likewise.
13431         * manual/examples/strdupa.c: Likewise.
13432         * manual/examples/strftim.c: Likewise.
13433         * manual/examples/strncat.c: Likewise.
13434         * manual/examples/subopt.c: Likewise.
13435         * manual/examples/swapcontext.c: Likewise.
13436         * manual/examples/termios.c: Likewise.
13437         * manual/examples/testopt.c: Likewise.
13438         * manual/examples/testpass.c: Likewise.
13439         * manual/examples/timeval_subtract.c: Likewise.
13440
13441         [BZ #13792]
13442         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13443         function to ...
13444         * manual/timeval_subtract.c.texi: ... here, new file.
13445
13446 2012-03-02  David S. Miller  <davem@davemloft.net>
13447
13448         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13449
13450 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13451
13452         [BZ #3976]
13453         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13454         (__sin): Save and restore rounding mode and use round-to-nearest
13455         for all computations.
13456         (__cos): Save and restore rounding mode and use round-to-nearest
13457         for all computations.
13458         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13459         <fenv.h>.
13460         (tan): Save and restore rounding mode and use round-to-nearest for
13461         all computations.
13462         * math/libm-test.inc (cos_test_tonearest): New function.
13463         (cos_test_towardzero): Likewise.
13464         (cos_test_downward): Likewise.
13465         (cos_test_upward): Likewise.
13466         (sin_test_tonearest): Likewise.
13467         (sin_test_towardzero): Likewise.
13468         (sin_test_downward): Likewise.
13469         (sin_test_upward): Likewise.
13470         (tan_test_tonearest): Likewise.
13471         (tan_test_towardzero): Likewise.
13472         (tan_test_downward): Likewise.
13473         (tan_test_upward): Likewise.
13474         (main): Call the new functions.
13475         * sysdeps/i386/fpu/libm-test-ulps: Update.
13476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13477
13478         [BZ #10135]
13479         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13480         small n, then large n, before computing and testing k+n.
13481         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13482         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13483         Likewise.
13484         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13485         Likewise.
13486         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13487         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13488         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13489         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13490         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13492         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13493         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13494         * math/libm-test.inc (scalbn_test): Add more tests.
13495         (scalbln_test): Likewise.
13496
13497         * manual/filesys.texi (mode_t): Describe constraints on size and
13498         signedness, not exact equivalence to a particular type.
13499         (ino_t): Likewise.
13500         (ino64_t): Likewise.
13501         (dev_t): Likewise.
13502         (nlink_t): Likewise.
13503         (blkcnt_t): Likewise.
13504         (blkcnt64_t): Likewise.
13505         * manual/llio.texi (off_t): Likewise.
13506
13507         [BZ #3976]
13508         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13509         (__ieee754_exp): Save and restore rounding mode and use
13510         round-to-nearest for all computations.
13511         * math/libm-test.inc (exp_test_tonearest): New function.
13512         (exp_test_towardzero): Likewise.
13513         (exp_test_downward): Likewise.
13514         (exp_test_upward): Likewise.
13515         (main): Call the new functions.
13516         * sysdeps/i386/fpu/libm-test-ulps: Update.
13517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13518
13519 2012-03-01  Chris Demetriou  <cgd@google.com>
13520
13521         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13522         have predictable order.
13523
13524 2012-03-01  David S. Miller  <davem@davemloft.net>
13525
13526         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13527
13528         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13529         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13530         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13531         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13532
13533         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13534         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13535         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13537         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13538         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13539         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13540         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13541         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13542
13543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13544
13545         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13546         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13547         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13548
13549         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13550         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13551         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13552         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13553         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13554         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13555         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13556         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13557         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13558         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13559         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13560         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13561         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13562         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13563         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13564         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13565         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13566         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13567         * sysdeps/sparc/elf/configure: Regenerated.
13568
13569 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * configure.in (AS, LD): Require binutils 2.20 or later.
13572         * configure: Regenerated.
13573         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13574         as required minimum version.
13575         * INSTALL: Regenerated.
13576
13577         [BZ #2541]
13578         [BZ #4108]
13579         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13580         before squaring exponent.
13581         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13582         bottom long double and 27 bits of top long double before squaring
13583         exponent.
13584         * math/libm-test.inc (erfc_test): Add more tests.
13585         * sysdeps/i386/fpu/libm-test-ulps: Update.
13586         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13588
13589 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13590
13591         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13592         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13593         containing bit-fields.
13594         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13595         * soft-fp/single.h (_FP_UNION_S): Likewise.
13596         * soft-fp/double.h (_FP_UNION_D): Likewise.
13597
13598 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13599
13600         [BZ #13786]
13601         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13602         not include ../strcmp.S.
13603         [USE_AS_STRNCASECMP_L]: Likewise.
13604         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13605         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13606         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13607         (__strncasecmp_l_ia32): Define as alias to
13608         __strncasecmp_l_nonascii.
13609
13610         [BZ #5794]
13611         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13612         * sysdeps/i386/fpu/libm-test-ulps: Update.
13613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13614
13615         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13617
13618 2012-02-29  Jeff Law  <law@redhat.com>
13619
13620         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13621         out of bounds read.
13622
13623 2012-02-29  Marek Polacek  <polacek@redhat.com>
13624
13625         [BZ #13706]
13626         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13627         * elf/Makefile: Add rules to run tst-unused-dep.out.
13628
13629 2012-02-28  David S. Miller  <davem@davemloft.net>
13630
13631         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13632         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13633         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13634         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13635         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13636         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13637
13638 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13639
13640         * math/libm-test.inc (llround_test): Move one test from
13641         lround_test.  Use TEST_f_L in moved test.
13642         (lround_test): Move misplaced test to llround_test.  Add testcase
13643         from bug 2561.
13644
13645 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13646
13647         * sysdeps/x86_64/fpu/e_expf.S: New file.
13648         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13649
13650 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13651
13652         [BZ #13637]
13653         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13654         of remain_len that may cause incomplete multi-byte character and
13655         false match.
13656         * posix/bug-regex33.c: New file.
13657         * posix/Makefile (tests): Add bug-regex33.
13658
13659 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13660
13661         * manual/macros.texi: New file.
13662         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13663         * manual/libc.texinfo: Include macros.texi.
13664         * manual/creatute.texi: Likewise.
13665         * manual/install.texi: Likewise.
13666         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13667         @glibcadj{} in references to the GNU C Library.
13668         * manual/charset.texi: Likewise.
13669         * manual/conf.texi: Likewise.
13670         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13671         when not using those macros.
13672         * manual/creature.texi: Likewise.
13673         * manual/crypt.texi: Likewise.
13674         * manual/errno.texi: Likewise.
13675         * manual/filesys.texi: Likewise.
13676         * manual/header.texi: Likewise.
13677         * manual/install.texi: Likewise.
13678         * manual/intro.texi: Likewise.
13679         * manual/io.texi: Likewise.
13680         * manual/job.texi: Likewise.
13681         * manual/lang.texi: Likewise.
13682         * manual/libc.texiinfo: Likewise.
13683         * manual/llio.texi: Likewise.
13684         * manual/locale.texi: Likewise.
13685         * manual/maint.texi: Likewise.
13686         * manual/math.texi: Likewise.
13687         * manual/memory.texi: Likewise.
13688         * manual/message.texi: Likewise.
13689         * manual/nss.texi: Likewise.
13690         * manual/pattern.texi: Likewise.
13691         * manual/process.texi: Likewise.
13692         * manual/resource.texi: Likewise.
13693         * manual/search.texi: Likewise.
13694         * manual/setjmp.texi: Likewise.
13695         * manual/signal.texi: Likewise.
13696         * manual/socket.texi: Likewise.
13697         * manual/startup.texi: Likewise.
13698         * manual/stdio.texi: Likewise.
13699         * manual/string.texi: Likewise.
13700         * manual/sysinfo.texi: Likewise.
13701         * manual/syslog.texi: Likewise.
13702         * manual/terminal.texi: Likewise.
13703         * manual/time.texi: Likewise.
13704         * manual/users.texi: Likewise.
13705         * INSTALL: Regenerated.
13706         * NOTES: Regenerated.
13707         * sysdeps/gnu/errlist.c: Regenerated.
13708
13709 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13710
13711         * include/dirent.h: Include <dirstream.h> before
13712         <dirent/dirent.h>.
13713
13714 2012-02-28  David S. Miller  <davem@davemloft.net>
13715
13716         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13717         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13718         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13719         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13720
13721 2012-02-27  David S. Miller  <davem@davemloft.net>
13722
13723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13724         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13725         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13726         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13727
13728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13729         frame pointer instead of stack pointer relative arg slot.
13730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13731         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13732         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13733
13734 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13735
13736         [BZ #3992]
13737         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13738
13739 2012-02-27  David S. Miller  <davem@davemloft.net>
13740
13741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13745         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13746         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13747         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13748         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13749
13750 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13751
13752         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13753         later.  Allow versions 5-9.
13754         * configure: Regenerated.
13755         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13756         required minimum version and 4.6 as recommended version.  Do not
13757         mention bugs in GCC 2.7 and 2.8.
13758         * INSTALL: Regenerated.
13759
13760 2012-02-27  David S. Miller  <davem@davemloft.net>
13761
13762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13766         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13767         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13768         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13769         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13770
13771         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13772         manipulate bits before adding and subtracting TWO112[sx].
13773         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13774
13775 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13776
13777         [BZ #13775]
13778         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13779         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13780         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13781         being in POSIX, because they are in 1003.1-2008.
13782
13783         * rt/tst-aio.c: Include <fcntl.h>.
13784         * rt/tst-aio7.c: Likewise.
13785         * rt/tst-aio64.c: Likewise.
13786
13787         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13788
13789 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13790
13791         * manual/install.texi (--with-headers): Describe headers as
13792         interface headers, not private headers.
13793         (Specific advice for GNU/Linux systems): Describe use of headers
13794         from "make headers_install", not private headers from older
13795         kernels.
13796         * INSTALL: Regenerated.
13797         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13798         Change to 2.6.19.
13799         * sysdeps/unix/sysv/linux/configure: Regenerated.
13800
13801         * manual/llio.texi (fclean): Remove documentation.
13802
13803         * manual/Makefile (libc-texi-generated): New variable.  Include
13804         version.texi.
13805         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13806         $(libc-texi-generated), not duplicated list of files.
13807         (version.texi, stamp-version): New rules.
13808         (realclean): Remove $(libc-texi-generated), not individual files
13809         from that list.  Do not remove dir-add.texinfo.
13810         * manual/libc.texinfo: Comment out uses of edition numbers and
13811         references to printed manual.  Remove last-updated dates.
13812         (EDITION): Comment out.
13813         (ISBN): Likewise.
13814         (VERSION, UPDATED): Remove.
13815         (version.texi): Include.
13816
13817 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13818
13819         * sysdeps/posix/spawni.c: Include <signal.h>.
13820         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13821         * sysdeps/pthread/aio_fsync.c: Likewise.
13822
13823 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13824
13825         * conform/Makefile (tests): Run only when not cross-compiling and
13826         when fast-check is not defined.
13827
13828         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13829         * conform/data/limits.h-data: Fixes for POSIX2008.
13830         * conform/run-conformtest.sh: Run all tests.
13831         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13832         headers.
13833         * include/bits/dlfcn.h: Likewise.
13834         * include/langinfo.h: Likewise.
13835         * include/monetary.h: Likewise.
13836         * include/sys/poll.h: Likewise.
13837
13838         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13839         for __USE_GNU.
13840         * posix/spawn.h: Define __need_sigset_t.
13841         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13842         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13843         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13844         to get sigevent_t only.
13845         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13846         only for __USE_GNU.
13847         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13848         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13849         process_vm_writev only for __USE_GNU.
13850         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13851
13852         * conform/Makefile: For now ignore errors from run-conformtest.
13853         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13854         POSIX to avoid namespace pollution.  Don't prepend headers.
13855         * conform/data/aio.h-data: Fixes for POSIX testing.
13856         * conform/data/fcntl.h-data: Likewise.
13857         * conform/data/glob.h-data: Likewise.
13858         * conform/data/grp.h-data: Likewise.
13859         * conform/data/pthread.h-data: Likewise.
13860         * conform/data/pwd.h-data: Likewise.
13861         * conform/data/signal.h-data: Likewise.
13862         * conform/data/spawn.h-data: Likewise.
13863         * conform/data/stdio.h-data: Likewise.
13864         * conform/data/stdlib.h-data: Likewise.
13865         * conform/data/stropts.h-data: Likewise.
13866         * conform/data/sys/mman.h-data: Likewise.
13867         * conform/data/sys/stat.h-data: Likewise.
13868         * conform/data/sys/types.h-data: Likewise.
13869         * conform/data/sys/wait.h-data: Likewise.
13870         * conform/data/time.h-data: Likewise.
13871         * conform/data/unistd.h-data: Likewise.
13872         * conform/data/utime.h-data: Likewise.
13873
13874         * io/sys/stat.h: fchmod was always in POSIX.
13875         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13876         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13877         * rt/aio.h: Define __need_timespec before including <time.h>.
13878         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13879         struct.  Add forward declaration of pthread_attr_t and use it in
13880         sigevent.
13881         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13882         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13883         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13884         always remove CLK_TCK definition.
13885
13886 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13887
13888         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13889
13890 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13891
13892         * conform/run-conformtest.sh: New file.
13893         * conform/Makefile: Run run-conformtest for tests.
13894         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13895         support.
13896
13897         * conform/data/uchar.h-data: New file.
13898         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13899         * conform/data/arpa/inet.h-data: Likewise.
13900         * conform/data/assert.h-data: Likewise.
13901         * conform/data/complex.h-data: Likewise.
13902         * conform/data/cpio.h-data: Likewise.
13903         * conform/data/ctype.h-data: Likewise.
13904         * conform/data/dirent.h-data: Likewise.
13905         * conform/data/dlfcn.h-data: Likewise.
13906         * conform/data/errno.h-data: Likewise.
13907         * conform/data/fcntl.h-data: Likewise.
13908         * conform/data/float.h-data: Likewise.
13909         * conform/data/fmtmsg.h-data: Likewise.
13910         * conform/data/fnmatch.h-data: Likewise.
13911         * conform/data/ftw.h-data: Likewise.
13912         * conform/data/glob.h-data: Likewise.
13913         * conform/data/grp.h-data: Likewise.
13914         * conform/data/iconv.h-data: Likewise.
13915         * conform/data/inttypes.h-data: Likewise.
13916         * conform/data/langinfo.h-data: Likewise.
13917         * conform/data/libgen.h-data: Likewise.
13918         * conform/data/limits.h-data: Likewise.
13919         * conform/data/locale.h-data: Likewise.
13920         * conform/data/math.h-data: Likewise.
13921         * conform/data/monetary.h-data: Likewise.
13922         * conform/data/mqueue.h-data: Likewise.
13923         * conform/data/ndbm.h-data: Likewise.
13924         * conform/data/net/if.h-data: Likewise.
13925         * conform/data/netdb.h-data: Likewise.
13926         * conform/data/netinet/in.h-data: Likewise.
13927         * conform/data/nl_types.h-data: Likewise.
13928         * conform/data/poll.h-data: Likewise.
13929         * conform/data/pthread.h-data: Likewise.
13930         * conform/data/pwd.h-data: Likewise.
13931         * conform/data/regex.h-data: Likewise.
13932         * conform/data/sched.h-data: Likewise.
13933         * conform/data/search.h-data: Likewise.
13934         * conform/data/semaphore.h-data: Likewise.
13935         * conform/data/setjmp.h-data: Likewise.
13936         * conform/data/signal.h-data: Likewise.
13937         * conform/data/spawn.h-data: Likewise.
13938         * conform/data/stdarg.h-data: Likewise.
13939         * conform/data/stdio.h-data: Likewise.
13940         * conform/data/stdlib.h-data: Likewise.
13941         * conform/data/string.h-data: Likewise.
13942         * conform/data/strings.h-data: Likewise.
13943         * conform/data/stropts.h-data: Likewise.
13944         * conform/data/sys/ipc.h-data: Likewise.
13945         * conform/data/sys/mman.h-data: Likewise.
13946         * conform/data/sys/msg.h-data: Likewise.
13947         * conform/data/sys/resource.h-data: Likewise.
13948         * conform/data/sys/select.h-data: Likewise.
13949         * conform/data/sys/sem.h-data: Likewise.
13950         * conform/data/sys/shm.h-data: Likewise.
13951         * conform/data/sys/socket.h-data: Likewise.
13952         * conform/data/sys/stat.h-data: Likewise.
13953         * conform/data/sys/statvfs.h-data: Likewise.
13954         * conform/data/sys/time.h-data: Likewise.
13955         * conform/data/sys/timeb.h-data: Likewise.
13956         * conform/data/sys/times.h-data: Likewise.
13957         * conform/data/sys/types.h-data: Likewise.
13958         * conform/data/sys/uio.h-data: Likewise.
13959         * conform/data/sys/un.h-data: Likewise.
13960         * conform/data/sys/utsname.h-data: Likewise.
13961         * conform/data/sys/wait.h-data: Likewise.
13962         * conform/data/syslog.h-data: Likewise.
13963         * conform/data/tar.h-data: Likewise.
13964         * conform/data/termios.h-data: Likewise.
13965         * conform/data/utime.h-data: Likewise.
13966         * conform/data/utmpx.h-data: Likewise.
13967         * conform/data/varargs.h-data: Likewise.
13968         * conform/data/wchar.h-data: Likewise.
13969         * conform/data/wctype.h-data: Likewise.
13970         * conform/data/wordexp.h-data: Likewise.
13971
13972         * include/stropts.h: New file.
13973         * include/uchar.h: New file.
13974         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13975         * include/assert.h: Likewise.
13976         * include/ctype.h: Likewise.
13977         * include/dirent.h: Likewise.
13978         * include/dlfcn.h: Likewise.
13979         * include/fcntl.h: Likewise.
13980         * include/fnmatch.h: Likewise.
13981         * include/glob.h: Likewise.
13982         * include/grp.h: Likewise.
13983         * include/libio.h: Likewise.
13984         * include/locale.h: Likewise.
13985         * include/math.h: Likewise.
13986         * include/net/if.h: Likewise.
13987         * include/netdb.h: Likewise.
13988         * include/netinet/in.h: Likewise.
13989         * include/pthread.h: Likewise.
13990         * include/pwd.h: Likewise.
13991         * include/regex.h: Likewise.
13992         * include/sched.h: Likewise.
13993         * include/search.h: Likewise.
13994         * include/setjmp.h: Likewise.
13995         * include/signal.h: Likewise.
13996         * include/stdio.h: Likewise.
13997         * include/stdlib.h: Likewise.
13998         * include/string.h: Likewise.
13999         * include/sys/cdefs.h: Likewise.
14000         * include/sys/mman.h: Likewise.
14001         * include/sys/msg.h: Likewise.
14002         * include/sys/resource.h: Likewise.
14003         * include/sys/select.h: Likewise.
14004         * include/sys/socket.h: Likewise.
14005         * include/sys/stat.h: Likewise.
14006         * include/sys/statvfs.h: Likewise.
14007         * include/sys/time.h: Likewise.
14008         * include/sys/times.h: Likewise.
14009         * include/sys/uio.h: Likewise.
14010         * include/sys/utsname.h: Likewise.
14011         * include/sys/wait.h: Likewise.
14012         * include/termios.h: Likewise.
14013         * include/time.h: Likewise.
14014         * include/ulimit.h: Likewise.
14015         * include/unistd.h: Likewise.
14016         * include/utime.h: Likewise.
14017         * include/wchar.h: Likewise.
14018         * include/wctype.h: Likewise.
14019         * include/wordexp.h: Likewise.
14020
14021         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14022
14023         * time/time.h: TIME_UTC must be a macro.
14024         Make timespec_get available for ISO C11 only as well.
14025
14026 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14027
14028         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14029         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14030
14031 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14032
14033         * configure.in: Use -o not -a in test for unsupported multi-arch.
14034
14035 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14036
14037         * manual/texinfo.tex: Update to version 2012-01-19.16.
14038
14039 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14040
14041         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14042
14043 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14044
14045         [BZ #13738]
14046         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14047         * manual/fdl-1.3.texi: New file.
14048         * manual/fdl-1.1.texi: File removed.
14049
14050         [BZ #13738]
14051         * manual/libc.texinfo (FDL_VERSION): New @set.
14052         Use it for mention of FDL in cover text.
14053         (Documentation License): Use it in @include file name.
14054
14055 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14056             Roland McGrath  <roland@hack.frob.com>
14057
14058         [BZ #5461]
14059         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14060         not LONG_LONG_MAX and LONG_LONG_MIN.
14061         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14062         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14063         name.
14064         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14065
14066 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14067
14068         [BZ #2547]
14069         [BZ #11365]
14070         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14071         manipulate bits before adding and subtracting TWO23[sx].
14072         * math/libm-test.inc (nearbyint_test): Add more tests.
14073
14074 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14075
14076         [BZ #2548]
14077         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14078         bits before adding and subtracting TWO23[sx].
14079         * math/libm-test.inc (rint_test): Add more tests.
14080         (rint_test_tonearest): Likewise.
14081         (rint_test_towardzero): Likewise.
14082         (rint_test_downward): Likewise.
14083         (rint_test_upward: Likewise.
14084
14085 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14086
14087         [BZ #10110]
14088         * include/stdc-predef.h: New file.  Extracted from features.h.
14089         * include/features.h: Include stdc-predef.h.
14090         * Makefile (headers): Add stdc-predef.h.
14091         * CONFORMANCE (Compiler limitations): Update.
14092
14093 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14094
14095         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14096
14097 2012-02-21  David S. Miller  <davem@davemloft.net>
14098
14099         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14100         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14101
14102 2012-02-20  David S. Miller  <davem@davemloft.net>
14103
14104         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14105         using a normal save/restore sequence, rather than allocating a
14106         dummy stack frame just to store a frame pointer and restore.
14107         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14108
14109 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14110
14111         * manual/install.texi: Fix stray word in line-wrapped comment.
14112
14113 2012-02-20  David S. Miller  <davem@davemloft.net>
14114
14115         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14116         both binutils and gcc support GOTDATA.
14117
14118         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14119         "rd %pc" in the PIC register setup sequences.
14120
14121         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14122         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14123         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14124         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14125         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14126         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14127         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14128         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14129         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14130         (SYSCALL_ERROR_HANDLER): Likewise.
14131         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14132         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14133         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14134         (SYSCALL_ERROR_HANDLER): Likewise.
14135
14136         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14137         (HAVE_GCC_GOTDATA): New.
14138         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14139         relocation support in both binutils and gcc.
14140         * sysdeps/sparc/elf/configure: Regenerate.
14141
14142         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14143         * sysdeps/sparc/sparc32/elf/configure: Delete.
14144         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14145         * sysdeps/sparc/sparc64/elf/configure: Delete.
14146         * sysdeps/sparc/elf/configure.in: New file.
14147         * sysdeps/sparc/elf/configure: Generate.
14148
14149         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14150         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14151         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14152         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14153         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14154
14155 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14156
14157         * manual/install.texi: Do not mention specific glibc version
14158         numbers.
14159         * manual/libc.texinfo (VERSION, UPDATED): Update.
14160         (@copying): Use @copyright{} and range of years.
14161
14162 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14163
14164         [BZ #13695]
14165         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14166         [crti.S not in sysdirs] (generated): Do not append.
14167         [crti.S not in sysdirs] (omit-deps): Likewise.
14168         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14169         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14170         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14171         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14172         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14173         Likewise.
14174         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14175         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14176         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14177         * csu/defs.awk: Remove file.
14178         * sysdeps/generic/initfini.c: Likewise.
14179         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14180         variable.
14181         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14182         Likewise.
14183
14184 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14185
14186         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14187         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14188         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14189         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14190         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14191         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14192         <bits/epoll.h>.
14193         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14194         (__EPOLL_PACKED): Define to empty if not defined by
14195         <bits/epoll.h>.
14196         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14198         bits/epoll.h.
14199
14200 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14201
14202         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14203         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14204         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14205         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14206         <bits/timerfd.h>.
14207         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14208         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14209         bits/timerfd.h.
14210
14211 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14212
14213         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14214         in C locale.
14215         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14216         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14217         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14219
14220 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14221
14222         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14223         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14224
14225 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14226
14227         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14228         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14229         defined.
14230         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14231         Likewise.
14232         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14233         entry for 2.16.
14234
14235 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14236
14237         * math/w_acos.c: Use non-signaling floating-point comparisons.
14238         * math/w_acosf.c: Likewise.
14239         * math/w_acosh.c: Likewise.
14240         * math/w_acoshf.c: Likewise.
14241         * math/w_acoshl.c: Likewise.
14242         * math/w_acosl.c: Likewise.
14243         * math/w_asin.c: Likewise.
14244         * math/w_asinf.c: Likewise.
14245         * math/w_asinl.c: Likewise.
14246         * math/w_atanh.c: Likewise.
14247         * math/w_atanhf.c: Likewise.
14248         * math/w_atanhl.c: Likewise.
14249         * math/w_exp2.c: Likewise.
14250         * math/w_exp2f.c: Likewise.
14251         * math/w_exp2l.c: Likewise.
14252         * math/w_j0.c: Likewise.
14253         * math/w_j0f.c: Likewise.
14254         * math/w_j0l.c: Likewise.
14255         * math/w_j1.c: Likewise.
14256         * math/w_j1f.c: Likewise.
14257         * math/w_j1l.c: Likewise.
14258         * math/w_jn.c: Likewise.
14259         * math/w_jnf.c: Likewise.
14260         * math/w_log.c: Likewise.
14261         * math/w_log10.c: Likewise.
14262         * math/w_log10f.c: Likewise.
14263         * math/w_log10l.c: Likewise.
14264         * math/w_log2.c: Likewise.
14265         * math/w_log2f.c: Likewise.
14266         * math/w_log2l.c: Likewise.
14267         * math/w_logf.c: Likewise.
14268         * math/w_logl.c: Likewise.
14269         * math/w_sqrt.c: Likewise.
14270         * math/w_sqrtf.c: Likewise.
14271         * math/w_sqrtl.c: Likewise.
14272         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14273         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14274         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14275         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14276         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14277
14278 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14279
14280         [BZ #9739]
14281         * manual/string.texi (strnlen): Use correct parameter name in
14282         equivalent expression.
14283
14284 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14285
14286         [BZ #11174]
14287         * manual/users.texi (seteuid): Consistently use neweuid for
14288         argument name.
14289
14290 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14291
14292         [BZ #13704]
14293         * manual/nss.texi (Services in the NSS configuration): Correct
14294         list of services in example configuration file.
14295
14296 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14297
14298         [BZ #11322]
14299         * manual/arith.texi: Remove statements about negative zero
14300         behaving identically to zero.
14301
14302 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14303
14304         [BZ #5993]
14305         * manual/install.texi: Do not document upgrading from libc5.
14306
14307 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14308
14309         [BZ #4596]
14310         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14311
14312 2012-02-18  David S. Miller  <davem@davemloft.net>
14313
14314         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14315         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14316         %o7 across the call.
14317         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14318         instead.
14319         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14320         SETUP_PIC_REG_LEAF.
14321         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14322         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14323         * sysdeps/sparc/crtn.S: Likewise.
14324
14325 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14326
14327         * aout/Makefile: Remove.
14328
14329 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14330
14331         [BZ #13058]
14332         * manual/examples/argp-ex1.c (main): Format definition in GNU
14333         style.
14334         * manual/examples/argp-ex2.c (main): Likewise.
14335         * manual/examples/argp-ex3.c (main): Likewise.
14336         * manual/examples/argp-ex4.c (main): Likewise.
14337         * manual/examples/longopt.c (main): Use new-style prototype
14338         definition.
14339         * manual/examples/strncat.c (main): Specify return type and use
14340         (void) for arguments.
14341         * manual/examples/subopt.c (main): Use char **argv argument.
14342
14343 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14344
14345         [BZ #5077]
14346         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14347         rounding modes.
14348
14349 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14350
14351         [BZ #6907]
14352         * manual/string.texi (strchr): Change when strchrnul is
14353         recommended.
14354
14355 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14356
14357         [BZ #174]
14358         * manual/locale.texi (setlocale): Document LOCPATH.
14359
14360 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14361
14362         [BZ #10210]
14363         * manual/process.texi (execle): Move @dots{} before last argument.
14364
14365 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14366
14367         [BZ #12047]
14368         * manual/charset.texi (Generic Charset Conversion): Fix typo
14369         (LC_TYPE -> LC_CTYPE).
14370
14371 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14372
14373         [BZ #5805]
14374         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14375         (scalbnf): Likewise.
14376         (scalbnl): Likewise.
14377         (scalbln): Likewise.
14378         (scalblnf): Likewise.
14379         (scalblnl): Likewise.
14380         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14381         (vwarnx): Likewise.
14382         (verr): Likewise.
14383         (verrx): Likewise.
14384         * manual/filesys.texi (telldir): Use braces around return type.
14385         * manual/llio.texi (mmap): Add space after comma.
14386         (mmap64): Likewise.
14387         * manual/math.texi (jn): Use @var{} on parameter names.
14388         (jnf): Likewise.
14389         (jnl): Likewise.
14390         (yn): Likewise.
14391         (ynf): Likewise.
14392         (ynl): Likewise.
14393         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14394         line.
14395         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14396         "...".
14397         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14398         (sched_get_priority_max): Likewise.
14399         * manual/signal.texi (sigvec): Add space after comma.
14400         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14401         names.
14402         (if_indextoname): Likewise.
14403         (if_freenameindex): Likewise.
14404         (sendto): Use ',' instead of '.' in prototype.
14405         * manual/startup.texi (syscall): Use @dots{} instead of literal
14406         "...".
14407         * manual/stdio.texi (__fpending): Separate initial words of
14408         paragraph from @deftypefun line.
14409         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14410         "...".
14411         (vsyslog): Use @var{} on parameter names.
14412         * manual/terminal.texi (stty): Use @var{} on parameter names.
14413         * manual/users.texi (getutmp): Use @var{} on parameter names.
14414         (getutmpx): Likewise.
14415
14416 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14417
14418         [BZ #6884]
14419         * manual/stdio.texi (fopen): Fix typos in description of
14420         ",ccs=STRING".
14421
14422 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14423
14424         [BZ #4026]
14425         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14426         get clock_id definition.
14427
14428 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14429
14430         [BZ #4822]
14431         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14432         (madvise): Cast every argument to void on its own.
14433
14434 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14435
14436         [BZ #9902]
14437         * manual/startup.texi (Exit Status): Fix typo.
14438
14439 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14440
14441         [BZ #10140]
14442         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14443         * manual/examples/argp-ex2.c: Likewise.
14444         * manual/examples/argp-ex3.c: Likewise.
14445
14446 2012-02-16  Richard Henderson  <rth@redhat.com>
14447
14448         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14449         * sysdeps/s390/s390-32/initfini.c: Remove.
14450         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14451         * sysdeps/s390/s390-64/initfini.c: Remove.
14452
14453 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14454
14455         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14456         compiler output for sysdeps/generic/initfini.c.
14457         * sysdeps/sh/elf/initfini.c: Remove file.
14458
14459 2012-02-16  David S. Miller  <davem@davemloft.net>
14460
14461         [BZ #11494]
14462         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14463
14464         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14465         * sysdeps/sparc/crti.S: New file.
14466         * sysdeps/sparc/crtn.S: New file.
14467         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14468         * sysdeps/sparc/sparc64/Makefile: Likewise.
14469
14470 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14471
14472         [BZ #3335]
14473         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14474
14475 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14476
14477         [BZ #4822]
14478         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14479
14480         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14481         (write, read, close): Likewise.
14482         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14483
14484 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14485
14486         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14487         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14488         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14489         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14490         <bits/signalfd.h>.
14491         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14492         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14493         bits/signalfd.h.
14494
14495 2012-02-14  Marek Polacek  <polacek@redhat.com>
14496
14497         * sysdeps/x86_64/crti.S: New file.
14498         * sysdeps/x86_64/crtn.S: New file.
14499         * sysdeps/x86_64/elf/initfini.c: Remove file.
14500
14501 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14502
14503         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14504         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14505         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14506         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14507         <bits/inotify.h>.
14508         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14509         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14510         bits/inotify.h.
14511
14512 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14513
14514         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14515         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14516         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14517         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14518         <bits/eventfd.h>.
14519         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14520         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14521         bits/eventfd.h.
14522
14523 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14524
14525         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14526         __feraiseexcept instead of feraiseexcept.
14527
14528         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14529         nanosleep invocations.
14530         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14531         strings, and add error checking for a nanosleep invocations.
14532
14533 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         Replace FSF snail mail address with URLs, as per GNU coding standards.
14536         Most of the snail mail addresses were wrong anyway, and omitting
14537         them makes the source code easier to maintain.  Almost all of the
14538         changes are to license notices and to locale LC_IDENTIFICATION
14539         addresses, except for this one:
14540         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14541         not its snail mail address.
14542
14543 2012-02-09  Richard Henderson  <rth@twiddle.net>
14544
14545         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14546         of kernel-features.h.
14547
14548         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14549
14550 2012-02-08  Marek Polacek  <polacek@redhat.com>
14551
14552         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14553         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14554         * sysdeps/gnu/_G_config.h: Likewise.
14555         * sysdeps/generic/_G_config.h: Likewise.
14556
14557 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14558
14559         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14560         tests.
14561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14562
14563         * sysdeps/powerpc/powerpc32/crti.S: New file.
14564         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14565         * sysdeps/powerpc/powerpc64/crti.S: New file.
14566         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14567
14568         * Makeconfig (have-initfini): Don't set.
14569         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14570         * configure.in (nopic_initfini): Don't substitute.
14571         * config.h.in (HAVE_INITFINI): Don't #undef.
14572         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14573         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14574
14575 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14576
14577         Support crti.S and crtn.S provided directly by architectures.
14578         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14579         [crti.S in sysdirs] (omit-deps): Likewise.
14580         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14581         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14582         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14583         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14584         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14585         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14586         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14587         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14588         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14589         compiler output for sysdeps/generic/initfini.c.
14590         * sysdeps/i386/elf/Makefile: Remove file.
14591         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14592
14593 2012-02-07  Marek Polacek  <polacek@redhat.com>
14594
14595         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14596         * sysdeps/gnu/_G_config.h: Likewise.
14597         * sysdeps/mach/hurd/_G_config.h: Likewise.
14598
14599 2012-02-07  Marek Polacek  <polacek@redhat.com>
14600
14601         * math/Makefile (tests): Add tst-CMPLX2.
14602         * math/tst-CMPLX2.c: New file.
14603
14604 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14605
14606         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14607
14608         * math/libm-test.inc (jn_test): Add missing L suffix.
14609
14610 2012-02-06  Marek Polacek  <polacek@redhat.com>
14611
14612         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14613         * sysdeps/i386/fpu/e_powf.S: Likewise.
14614         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14615         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14616         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14617         * sysdeps/i386/fpu/e_pow.S: Likewise.
14618         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14619         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14620         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14621         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14622         * sysdeps/i386/fpu/e_log2.S: Likewise.
14623         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14624         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14625         * sysdeps/i386/fpu/e_powl.S: Likewise.
14626         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14627         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14628         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14629         * sysdeps/i386/fpu/e_logl.S: Likewise.
14630         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14631         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14632         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14633         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14634         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14635         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14636         * sysdeps/i386/fpu/e_log.S: Likewise.
14637         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14638         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14639         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14640         * sysdeps/i386/fpu/e_logf.S: Likewise.
14641         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14642         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14643         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14644         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14645         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14646         * sysdeps/i386/fpu/e_log10.S: Likewise.
14647         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14648         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14649         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14650         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14651         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14652         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14653         * sysdeps/i386/asm-syntax.h: Likewise.
14654         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14655         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14656         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14657         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14658         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14659         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14660         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14661         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14662         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14663         * sysdeps/powerpc/sysdep.h: Likewise.
14664         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14665         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14666
14667 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14668
14669         [BZ #411]
14670         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14671
14672 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14673
14674         * sysdeps/i386/sysdep.h: Include <features.h>.
14675         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14676         version.
14677
14678 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14679
14680         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14681         Define.
14682         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14683         LOAD_PIC_REG_STR.
14684
14685 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14686
14687         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14688         (SETUP_PIC_REG): Use GET_PC_THUNK.
14689         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14690         macro.
14691
14692 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14693
14694         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14695         for non-PIC compilation.
14696         (SETUP_PIC_REG): Add .p2align directive.
14697         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14698         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14699         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14700         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14701         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14702         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14703         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14704         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14705         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14706         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14707         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14708         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14709         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14710         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14711         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14712         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14713         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14714         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14715         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14716         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14717         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14718         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14719         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14720         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14721         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14722         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14723         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14724         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14725         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14726         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14727         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14728         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14729         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14730         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14731         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14732         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14733         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14734         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14735         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14736         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14737         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14738
14739 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14740
14741         * math/tst-CMPLX.c: Include <stdio.h>.
14742
14743 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14744
14745         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14746         float.
14747         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14748         * sysdeps/sparc/bits/mathdef.h: Likewise.
14749
14750 2012-01-31  Marek Polacek  <polacek@redhat.com>
14751
14752         * libio/libio.h: Don't define _PARAMS.
14753         * locale/programs/config.h: Don't define PARAMS.
14754         * stdlib/strtol_l.c: Likewise.
14755         (__strtol_l): Remove PARAMS from the prototype.
14756
14757 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14758
14759         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14760         names.  Just use the correct names.  Remove unnecessary wrapper
14761         functions.
14762         * malloc/arena.c: Likewise.
14763         * malloc/hooks.c: Likewise.
14764
14765         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14766         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14767         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14768
14769 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14770
14771         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14772         into tail calls.
14773         (update_get_addr): New function.
14774         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14775         GET_ADDR_MODULE parameter.
14776
14777 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14778
14779         * crypt/cert.c: Remove __STDC__ conditionals.
14780         * crypt/crypt-entry.c: Likewise.
14781         * crypt/crypt_util.c: Likewise.
14782         * libio/filedoalloc.c: Likewise.
14783         * libio/fileops.c: Likewise.
14784         * libio/genops.c: Likewise.
14785         * libio/iofclose.c: Likewise.
14786         * libio/iofdopen.c: Likewise.
14787         * libio/iofopen.c: Likewise.
14788         * libio/iofopen64.c: Likewise.
14789         * libio/iogetdelim.c: Likewise.
14790         * libio/iopopen.c: Likewise.
14791         * libio/obprintf.c: Likewise.
14792         * libio/oldfileops.c: Likewise.
14793         * libio/oldiofclose.c: Likewise.
14794         * libio/oldiofdopen.c: Likewise.
14795         * libio/oldiofopen.c: Likewise.
14796         * libio/oldiopopen.c: Likewise.
14797         * libio/wfiledoalloc.c: Likewise.
14798         * libio/wgenops.c: Likewise.
14799         * locale/programs/xmalloc.c: Likewise.
14800         * misc/syslog.c: Likewise.
14801         * stdio-common/xbug.c: Likewise.
14802         * string/memchr.c: Likewise.
14803         * string/memcmp.c: Likewise.
14804         * string/memrchr.c: Likewise.
14805         * string/rawmemchr.c: Likewise.
14806         * sysdeps/posix/getcwd.c: Likewise.
14807         * time/strftime_l.c: Likewise.
14808
14809 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14810
14811         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14812         * config.make.in (config-cflags-sse2avx): Define.
14813         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14814         Fix typo.
14815
14816 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14817
14818         * scripts/config.guess: Update from upstream config git repository.
14819         * scripts/config.sub: Likewise.
14820
14821 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14822
14823         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14824         (EM_NUM): Update.
14825         (R_TILEPRO_*, R_TILEGX_*): New macros.
14826
14827         * scripts/firstversions.awk: Fix bug in version range handling.
14828
14829         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14830
14831         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14832
14833         * include/sys/epoll.h: New file.
14834         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14835         libc_hidden_def.
14836
14837 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14838
14839         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14840         Avoid unnecessary __WORDSIZE == 64 test.
14841         (fmaxf): Use VEX format if possible.
14842         (fmax): Likewise.
14843         (fminf): Likewise.
14844         (fmin): Likewise.
14845
14846         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14847         * math/math_private.h: Remove libc_fegetround* and
14848         libc_fesetround*.
14849         * sysdeps/i386/configure.in: Check for -msse2avx.
14850         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14851         also if SSE2AVX is defined.
14852         Remove libc_fegetround* and libc_fesetround*.
14853         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14854         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14855         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14856         of HAS_YMM_USABLE.
14857         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14858         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14859         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14860         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14861         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14862
14863         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14864
14865 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14866
14867         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14868         size is not set.
14869         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14870
14871 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14872
14873         [BZ #13618]
14874         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14875         relocation.
14876         * Makeconfig (libm): Define.
14877         * elf/Makefile: Add rules to build and run tst-relsort1.
14878         * elf/tst-relsort1.c: New file.
14879         * elf/tst-relsort1mod1.c: New file.
14880         * elf/tst-relsort1mod2.c: New file.
14881
14882 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14883
14884         * math/s_ldexp.c: Remove __STDC__ conditionals.
14885         * math/s_ldexpf.c: Likewise.
14886         * math/s_ldexpl.c: Likewise.
14887         * math/s_nextafter.c: Likewise.
14888         * math/s_nexttowardf.c: Likewise.
14889         * math/s_significand.c: Likewise.
14890         * math/s_significandf.c: Likewise.
14891         * math/s_significandl.c: Likewise.
14892         * math/w_jnl.c: Likewise.
14893         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14894         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14895         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14896         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14897         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14898         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14899         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14900         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14901         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14902         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14903         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14904         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14905         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14906         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14907         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14908         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14909         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14910         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14911         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14912         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14913         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14914         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14915         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14916         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14917         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14918         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14919         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14920         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14921         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14922         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14923         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14924         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14925         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14926         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14927         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14928         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14929         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14930         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14931         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14932         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14933         * sysdeps/ieee754/k_standard.c: Likewise.
14934         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14937         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14938         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14939         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14941         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14942         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14943         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14944         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14946         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14947         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14948         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14949         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14952         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14953         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14954         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14955         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14956         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14957         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14959         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14960         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14965         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14966         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14989         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14995         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14997         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15002         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15003         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15004         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15005         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15006         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15007         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15008         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15009         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15010         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15011         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15013         * sysdeps/ieee754/s_matherr.c: Likewise.
15014         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15015         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15016         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15017         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15018
15019 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15020
15021         * crypt/md5.h: Remove __STDC__ conditionals.
15022         * libio/libioP.h: Likewise.
15023         * locale/programs/config.h: Likewise.
15024         * sysdeps/generic/sysdep.h: Likewise.
15025         * sysdeps/i386/asm-syntax.h: Likewise.
15026         * sysdeps/s390/asm-syntax.h: Likewise.
15027         * sysdeps/unix/sysdep.h: Likewise.
15028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15030
15031 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15032
15033         * libio/libio.h: Remove __STDC__ conditionals.
15034         * malloc/obstack.h: Likewise.
15035         * math/complex.h: Likewise.
15036         * math/math.h: Likewise.
15037         * sysdeps/generic/_G_config.h: Likewise.
15038         * sysdeps/gnu/_G_config.h: Likewise.
15039         * sysdeps/mach/hurd/_G_config.h: Likewise.
15040         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15041         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15042         * sysdeps/sparc/bits/mathdef.h: Likewise.
15043
15044 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15045
15046         [BZ #13583]
15047         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15048         Clean up HAS_* macros.
15049         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15050         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15051         possible.
15052         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15053         HAS_AVX.
15054         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15055         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15056         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15057         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15058         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15059
15060 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15061
15062         * elf/tst-unique3.cc (gets): Remove declaration.
15063         * elf/tst-unique3lib.cc (gets): Likewise.
15064         * elf/tst-unique3lib2.cc (gets): Likewise.
15065         * elf/tst-unique4.cc (gets): Likewise.
15066
15067 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15068
15069         * include/stdio.h: Add C++ protection.  Add gets declarations and
15070         definitions.
15071         * debug/tst-chk1.c: Don't declare gets here.
15072         * stdio-common/tst-gets.c: Likewise.
15073
15074 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15075
15076         * posix/glob: Remove directory.
15077
15078 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15079
15080         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15081
15082 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15083
15084         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15085         of the non-standard EPFNOSUPPORT.
15086
15087 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15088
15089         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15090         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15091         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15092
15093 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15094
15095         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15096
15097 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15098
15099         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15100         transient errors.
15101         * nscd/grpcache.c (cache_addgr): Likewise.
15102         * nscd/hstcache.c (cache_addhst): Likewise.
15103         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15104         * nscd/pwdcache.c (cache_addpw): Likewise.
15105         * nscd/servicescache.c (cache_addserv): Likewise.
15106
15107 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15108
15109         * malloc/malloc.c: Various cleanups.
15110         * malloc/hooks.c: Likewise.
15111
15112         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15113         * stdlib/bug-fmtmsg1.c: New file.
15114
15115         * stdlib/fmtmsg.c (init): Add missing unlock.
15116         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15117
15118 2012-01-12  Marek Polacek  <polacek@redhat.com>
15119
15120         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15121         and _GNU_SOURCE.
15122
15123 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15124
15125         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15126         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15127         macro to ensure uniqueness of label name.
15128         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15129         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15130
15131 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15132
15133         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15134
15135         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15136         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15137         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15138         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15139
15140 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15141
15142         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15143
15144         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15145         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15146         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15147
15148         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15149
15150         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15151         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15152         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15154
15155         * math/bits/math-finite.h: Add ldexp support.
15156
15157 2012-01-10  Marek Polacek  <polacek@redhat.com>
15158
15159         * locale/programs/localedef.h (show_archive_content): Add noreturn
15160         attribute.
15161
15162 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15163
15164         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15165
15166 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15167
15168         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15169
15170         * io/Makefile (headers): Add bits/poll2.h.
15171
15172 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15173
15174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15175         typo #include statement.
15176
15177 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15178
15179         * include/sys/cdefs.h: Define __attribute_alloc_size.
15180         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15181         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15182         * elf/pldd.c: Likewise.
15183         * iconv/iconv_charmap.c: Likewise.
15184         * iconv/iconvconfig.c: Likewise.
15185         * iconv/strtab.c: Likewise.
15186         * locale/programs/locale.c: Likewise.
15187         * locale/programs/localedef.h: Likewise.
15188         * locale/programs/simple-hash.c: Likewise.
15189         * nscd/nscd.h: Likewise.
15190         * nss/makedb.c: Likewise.
15191         * sysdeps/generic/ldconfig.h: Likewise.
15192         * locale/programs/localedef.c: Remove xmalloc prototype.
15193         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15194
15195 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15196
15197         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15198         appropriate.
15199
15200 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15201
15202         * math/Makefile (tests): Add tst-CMPLX.
15203         * math/tst-CMPLX.c: New file.
15204
15205         * math/complex.h (CMPLXL): Fix typo.
15206
15207         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15208         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15209         GLIBC_2.16.
15210         * debug/tst-chk1.c: Add poll and ppoll tests.
15211         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15212         * include/sys/poll.h: Add hidden proto for ppoll.
15213         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15214         * sysdeps/mach/hurd/ppoll.c: Likewise.
15215         * io/ppoll.c: Likewise.
15216         * debug/poll_chk.c: New file.
15217         * debug/ppoll_chk.c: New file.
15218         * include/bits/poll2.h: New file.
15219         * io/bits/poll2.h: New file.
15220
15221         [BZ #1350]
15222         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15223
15224         * configure.in: static is always set to yes.  Remove.
15225         * config.make.in: Don't set build-static.
15226         * Makeconfig: Remove use of build-static.
15227         * dlfcn/Makefile: Likewise.
15228         * elf/Makefile: Likewise.
15229         * math/Makefile: Likewise.
15230         * misc/Makefile: Likewise.
15231         * nptl/Makefile: Likewise.
15232         * sysdeps/mach/hurd/Makefile: Likewise.
15233
15234         * configure.in: PWD_P is not used anymore.
15235         * config.make.in: Remove PWD_P entry.
15236
15237         * configure.in: Remove last remnants of RANLIB.
15238         No need to check for signed size_t anymore.
15239         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15240         and IA-64.
15241         Remove __builtin_expect test because we require at least gcc 3.4.
15242         * aclocal.m4: Likewise.
15243
15244         * wcsmbs/mbrtoc16.c: Implement using towc function.
15245         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15246         * wcsmbs/wcsmbsload.c: Likewise.
15247         * iconv/gconv_simple.c: Likewise.
15248         * iconv/gconv_int.h: Likewise.
15249         * iconv/gconv_builtin.h: Likewise.
15250         * iconv/iconv_prog.c: Remove CHAR16 handling.
15251
15252         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15253
15254         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15255
15256         * configure.in: Remove --with-elf and --enable-bounded options.
15257         Dont set base_machine for ia64.  More non-ELF conditions removed.
15258         Remove testing and setting of leading underscore information.
15259         * config.make.in (build-bounded): Set to no.
15260         * config.h.in: Remove NO_UNDERSCORES entry.
15261         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15262         them.
15263         * csu/start.c: Remove !NO_UNDERSCORE code.
15264         * locale/localeinfo.h: Likewise.
15265         * sysdeps/generic/machine-gmon.h: Likewise.
15266         * sysdeps/generic/sysdep.h: Likewise.
15267         * sysdeps/i386/sysdep.h: Likewise.
15268         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15269         * sysdeps/mach/sysdep.h: Likewise.
15270         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15271         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15272         * sysdeps/sh/sysdep.h: Likewise.
15273         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15274         * sysdeps/unix/i386/sysdep.S: Likewise.
15275         * sysdeps/unix/sparc/start.c: Likewise.
15276         * sysdeps/unix/sparc/sysdep.S: Likewise.
15277         * sysdeps/unix/sparc/sysdep.h: Likewise.
15278         * sysdeps/unix/start.c: Likewise.
15279         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15280         * sysdeps/x86_64/sysdep.h: Likewise.
15281
15282 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15283
15284         [BZ #13553]
15285         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15286         for non-gcc.
15287         * argp/argp-fmtstream.h: Use const instead __const.
15288         * argp/argp.h: Likewise.
15289         * assert/assert.h: Likewise.
15290         * bits/fenv.h: Likewise.
15291         * bits/sched.h: Likewise.
15292         * bits/sigset.h: Likewise.
15293         * bits/sigthread.h: Likewise.
15294         * catgets/nl_types.h: Likewise.
15295         * conform/data/pthread.h-data: Likewise.
15296         * crypt/crypt-private.h: Likewise.
15297         * crypt/crypt.h: Likewise.
15298         * crypt/crypt_util.c: Likewise.
15299         * ctype/ctype.h: Likewise.
15300         * debug/execinfo.h: Likewise.
15301         * debug/mbsnrtowcs_chk.c: Likewise.
15302         * debug/mbsrtowcs_chk.c: Likewise.
15303         * debug/wcsnrtombs_chk.c: Likewise.
15304         * debug/wcsrtombs_chk.c: Likewise.
15305         * debug/wcstombs_chk.c: Likewise.
15306         * dirent/dirent.h: Likewise.
15307         * dlfcn/dlfcn.h: Likewise.
15308         * elf/neededtest4.c: Likewise.
15309         * grp/grp.h: Likewise.
15310         * gshadow/gshadow.h: Likewise.
15311         * iconv/gconv.h: Likewise.
15312         * iconv/gconv_int.h: Likewise.
15313         * iconv/gconv_simple.c: Likewise.
15314         * iconv/iconv.h: Likewise.
15315         * iconv/loop.c: Likewise.
15316         * iconv/skeleton.c: Likewise.
15317         * include/aio.h: Likewise.
15318         * include/aliases.h: Likewise.
15319         * include/argz.h: Likewise.
15320         * include/arpa/inet.h: Likewise.
15321         * include/assert.h: Likewise.
15322         * include/dirent.h: Likewise.
15323         * include/dlfcn.h: Likewise.
15324         * include/execinfo.h: Likewise.
15325         * include/fcntl.h: Likewise.
15326         * include/fenv.h: Likewise.
15327         * include/glob.h: Likewise.
15328         * include/grp.h: Likewise.
15329         * include/libintl.h: Likewise.
15330         * include/mntent.h: Likewise.
15331         * include/netdb.h: Likewise.
15332         * include/pwd.h: Likewise.
15333         * include/rpc/netdb.h: Likewise.
15334         * include/sched.h: Likewise.
15335         * include/search.h: Likewise.
15336         * include/shadow.h: Likewise.
15337         * include/signal.h: Likewise.
15338         * include/stdio.h: Likewise.
15339         * include/stdlib.h: Likewise.
15340         * include/string.h: Likewise.
15341         * include/sys/socket.h: Likewise.
15342         * include/sys/stat.h: Likewise.
15343         * include/sys/statfs.h: Likewise.
15344         * include/sys/statvfs.h: Likewise.
15345         * include/sys/syslog.h: Likewise.
15346         * include/sys/time.h: Likewise.
15347         * include/sys/uio.h: Likewise.
15348         * include/time.h: Likewise.
15349         * include/unistd.h: Likewise.
15350         * include/utmp.h: Likewise.
15351         * include/wchar.h: Likewise.
15352         * include/wctype.h: Likewise.
15353         * inet/aliases.h: Likewise.
15354         * inet/arpa/inet.h: Likewise.
15355         * inet/netinet/ether.h: Likewise.
15356         * inet/netinet/in.h: Likewise.
15357         * intl/libintl.h: Likewise.
15358         * io/bits/fcntl2.h: Likewise.
15359         * io/fcntl.h: Likewise.
15360         * io/ftw.h: Likewise.
15361         * io/sys/poll.h: Likewise.
15362         * io/sys/stat.h: Likewise.
15363         * io/sys/statfs.h: Likewise.
15364         * io/sys/statvfs.h: Likewise.
15365         * io/utime.h: Likewise.
15366         * libio/bits/stdio.h: Likewise.
15367         * libio/bits/stdio2.h: Likewise.
15368         * libio/libio.h: Likewise.
15369         * libio/libioP.h: Likewise.
15370         * libio/stdio.h: Likewise.
15371         * locale/lc-ctype.c: Likewise.
15372         * locale/locale.h: Likewise.
15373         * login/utmp.h: Likewise.
15374         * malloc/arena.c: Likewise.
15375         * malloc/malloc.c: Likewise.
15376         * malloc/malloc.h: Likewise.
15377         * malloc/mcheck.c: Likewise.
15378         * malloc/mtrace.c: Likewise.
15379         * math/bits/mathcalls.h: Likewise.
15380         * math/fenv.h: Likewise.
15381         * math/math_private.h: Likewise.
15382         * misc/bits/error.h: Likewise.
15383         * misc/bits/syslog.h: Likewise.
15384         * misc/err.h: Likewise.
15385         * misc/error.h: Likewise.
15386         * misc/fstab.h: Likewise.
15387         * misc/mntent.h: Likewise.
15388         * misc/regexp.h: Likewise.
15389         * misc/search.h: Likewise.
15390         * misc/sgtty.h: Likewise.
15391         * misc/sys/mman.h: Likewise.
15392         * misc/sys/syslog.h: Likewise.
15393         * misc/sys/uio.h: Likewise.
15394         * misc/sys/xattr.h: Likewise.
15395         * misc/ttyent.h: Likewise.
15396         * nis/rpcsvc/ypclnt.h: Likewise.
15397         * nss/nss.h: Likewise.
15398         * posix/bits/unistd.h: Likewise.
15399         * posix/fnmatch.h: Likewise.
15400         * posix/glob.h: Likewise.
15401         * posix/sched.h: Likewise.
15402         * posix/spawn.h: Likewise.
15403         * posix/sys/wait.h: Likewise.
15404         * posix/unistd.h: Likewise.
15405         * posix/wordexp.h: Likewise.
15406         * pwd/pwd.h: Likewise.
15407         * resolv/netdb.h: Likewise.
15408         * resource/sys/resource.h: Likewise.
15409         * rt/aio.h: Likewise.
15410         * rt/bits/mqueue2.h: Likewise.
15411         * rt/mqueue.h: Likewise.
15412         * shadow/shadow.h: Likewise.
15413         * signal/signal.h: Likewise.
15414         * socket/send.c: Likewise.
15415         * socket/sendto.c: Likewise.
15416         * socket/sys/socket.h: Likewise.
15417         * stdio-common/printf.h: Likewise.
15418         * stdlib/bits/stdlib.h: Likewise.
15419         * stdlib/fmtmsg.h: Likewise.
15420         * stdlib/monetary.h: Likewise.
15421         * stdlib/stdlib.h: Likewise.
15422         * stdlib/ucontext.h: Likewise.
15423         * streams/stropts.h: Likewise.
15424         * string/argz.h: Likewise.
15425         * string/bits/string2.h: Likewise.
15426         * string/string.h: Likewise.
15427         * string/strings.h: Likewise.
15428         * sunrpc/rpc/auth.h: Likewise.
15429         * sunrpc/rpc/auth_des.h: Likewise.
15430         * sunrpc/rpc/clnt.h: Likewise.
15431         * sunrpc/rpc/netdb.h: Likewise.
15432         * sunrpc/rpc/pmap_clnt.h: Likewise.
15433         * sunrpc/rpc/xdr.h: Likewise.
15434         * sysdeps/generic/inttypes.h: Likewise.
15435         * sysdeps/generic/net/if.h: Likewise.
15436         * sysdeps/generic/sys/swap.h: Likewise.
15437         * sysdeps/gnu/net/if.h: Likewise.
15438         * sysdeps/gnu/utmpx.h: Likewise.
15439         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15440         * sysdeps/i386/i486/bits/string.h: Likewise.
15441         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15442         * sysdeps/s390/bits/string.h: Likewise.
15443         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15444         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15445         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15446         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15447         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15448         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15449         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15450         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15451         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15452         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15453         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15454         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15455         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15456         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15457         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15458         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15459         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15460         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15461         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15462         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15463         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15464         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15465         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15466         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15467         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15468         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15469         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15470         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15471         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15472         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15473         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15474         * sysvipc/sys/ipc.h: Likewise.
15475         * sysvipc/sys/msg.h: Likewise.
15476         * sysvipc/sys/sem.h: Likewise.
15477         * sysvipc/sys/shm.h: Likewise.
15478         * termios/termios.h: Likewise.
15479         * time/sys/time.h: Likewise.
15480         * time/time.h: Likewise.
15481         * wcsmbs/bits/wchar2.h: Likewise.
15482         * wcsmbs/uchar.h: Likewise.
15483         * wcsmbs/wchar.h: Likewise.
15484         * wctype/wctype.h: Likewise.
15485
15486         [BZ #13551]
15487         * Makeconfig: Remove all but ELF support including AIX support.
15488         * Makerules: Likewise.
15489         * config.h.in: Likewise.
15490         * config.make.in: Likewise.
15491         * configure: Likewise.
15492         * configure.in: Likewise.
15493         * csu/Makefile: Likewise.
15494         * csu/version.c: Likewise.
15495         * debug/Makefile: Likewise.
15496         * dlfcn/Makefile: Likewise.
15497         * elf/Makefile: Likewise.
15498         * extra-lib.mk: Likewise.
15499         * iconv/Makefile: Likewise.
15500         * include/libc-symbols.h: Likewise.
15501         * include/shlib-compat.h: Likewise.
15502         * resolv/Makefile: Likewise.
15503         * resolv/res_libc.c: Likewise.
15504         * rt/Makefile: Likewise.
15505         * sysdeps/i386/asm-syntax.h: Likewise.
15506         * sysdeps/i386/sysdep.h: Likewise.
15507         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15508         * sysdeps/mach/sysdep.h: Likewise.
15509         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15510         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15511         * sysdeps/s390/asm-syntax.h: Likewise.
15512         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15513         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15514         * sysdeps/sh/sysdep.h: Likewise.
15515         * sysdeps/unix/sparc/sysdep.h: Likewise.
15516         * sysdeps/wordsize-32/divdi3.c: Likewise.
15517         * sysdeps/x86_64/sysdep.h: Likewise.
15518
15519         * argp/Versions: Remove _argp_unlock_xxx.
15520
15521         [BZ #13559]
15522         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15523         * abilist/libBrokenLocale.abilist: Likewise.
15524         * abilist/libanl.abilist: Likewise.
15525         * abilist/libc.abilist: Likewise.
15526         * abilist/libcrypt.abilist: Likewise.
15527         * abilist/libdl.abilist: Likewise.
15528         * abilist/libm.abilist: Likewise.
15529         * abilist/libnsl.abilist: Likewise.
15530         * abilist/libpthread.abilist: Likewise.
15531         * abilist/libresolv.abilist: Likewise.
15532         * abilist/librt.abilist: Likewise.
15533         * abilist/libthread_db.abilist: Likewise.
15534         * abilist/libutil.abilist: Likewise.
15535         * abilist/libnss_db.abilist: New file.
15536
15537         * scripts/abilist.awk: Add support for indirect functions.
15538
15539         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15540
15541         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15542
15543         * shlib-versions: Remove entries for ports architectures.
15544
15545         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15546         files in ports.
15547         * elf/stackguard-macros.h: Remove support for IA-64.
15548         * elf/tst-auditmod1.c: Likewise.
15549         * sysdeps/generic/ldsodefs.h: Likewise.
15550
15551         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15552         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15553         configure files.
15554
15555         [BZ #13552]
15556         * configure.in: Remove --enable-omitfp support.
15557         * FAQ.in: Adjust.
15558         * config.make.in: Likewise.
15559         * Makeconfig: Likewise.
15560         * manual/install.texi: Likewise.
15561
15562         In case anyone cares, the IA-64 architecture could move to ports.
15563         * sysdeps/ia64/*: Removed.
15564         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15565         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15566
15567         [BZ #13555]
15568         * configure.in: Remove entries for unsupported architectures.
15569
15570         [BZ #13533]
15571         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15572         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15573         routines.
15574         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15575         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15576         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15577         fall back to using wcrtomb.
15578         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15579         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15580         renaming.
15581         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15582         * wcsmbs/tst-c16c32-1.c: New file.
15583
15584         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15585         local variable.
15586
15587         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15588
15589         * elf/tst-unique3.cc: Add explicit declaration of gets.
15590         * elf/tst-unique3lib.cc: Likewise.
15591         * elf/tst-unique3lib2.cc: Likewise.
15592         * elf/tst-unique4.cc: Likewise.
15593
15594         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15595
15596 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15597
15598         [BZ #13566]
15599         * assert/assert.h (static_assert): Don't define for C++.
15600         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15601         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15602
15603 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15604
15605         * iconv/loop.c (single loop): Fix assertion in storing of
15606         remaining bytes.
15607
15608         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15609
15610 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15611
15612         * posix/getconf.c: Update copyright year.
15613         * nss/getent.c: Likewise.
15614         * nss/makedb.c: Likewise.
15615         * iconv/iconvconfig.c: Likewise.
15616         * iconv/iconv_prog.c: Likewise.
15617         * elf/ldconfig.c: Likewise.
15618         * elf/pldd.c: Likewise.
15619         * elf/sotruss.ksh: Likewise.
15620         * catgets/gencat.c: Likewise.
15621         * csu/version.c: Likewise.
15622         * elf/ldd.bash.in: Likewise.
15623         * elf/sprof.c (print_version): Likewise.
15624         * locale/programs/locale.c: Likewise.
15625         * locale/programs/localedef.c: Likewise.
15626         * login/programs/pt_chown.c: Likewise.
15627         * nscd/nscd.c (print_version): Likewise.
15628         * debug/xtrace.sh: Likewise.
15629         * malloc/memusage.sh: Likewise.
15630         * malloc/mtrace.pl: Likewise.
15631         * debug/catchsegv.sh: Likewise.
15632
15633 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15634
15635         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15636         pure attribute.
15637
15638 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15639
15640         [BZ #13533]
15641         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15642         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15643         transformations.
15644         * iconv/gconv_int.h: Likewise.
15645         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15646         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15647         from libc for GLIBC_2.16.
15648         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15649         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15650         * wcsmbs/uchar.h: Really define mbstate_t.
15651         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15652         * wcsmbs/c16rtomb.c: New file.
15653         * wcsmbs/mbrtoc16.c: New file.
15654         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15655         for C/POSIX locale.
15656         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15657         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15658
15659         * wcsmbs/wchar.h: Add missing __restrict.
15660
15661 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15662
15663         [BZ #13532]
15664         * time/Makefile (routines): Add timespec_get.
15665         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15666         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15667         timespec for ISO C11.
15668         * time/timespec_get.c: New file.
15669         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15670         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15671
15672         [BZ #13531]
15673         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15674         * stdlib/stdlib.h: Declare aligned_alloc.
15675         * Versions.def: Add GLIBC_2.16 for libc.
15676         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15677
15678         [BZ 13527]
15679         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15680         ISO C11.
15681
15682         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15683         code.
15684
15685         [BZ #13528]
15686         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15687
15688         [BZ #13529]
15689         * assert/assert.h (static_assert): Define.
15690
15691         * version.h: Update for 2.16 development version.
15692
15693         [BZ #13526]
15694         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15695         _ISOC11_SOURCE.
15696
15697         * version.h (RELEASE): Bump for 2.15 release.
15698         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15699
15700         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15701         Patch by Marek Polacek <mpolacek@redhat.com>.
15702
15703         * bits/byteswap.h: Protect long long constants with __extension__.
15704         * sysdeps/i386/bits/byteswap.h: Likewise.
15705         * sysdeps/ia64/bits/byteswap.h: Likewise.
15706         * sysdeps/s390/bits/byteswap.h: Likewise.
15707         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15708
15709 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15710
15711         [BZ #13540]
15712         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15713         destination buffer.
15714         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15715
15716 2011-12-23  Marek Polacek  <polacek@redhat.com>
15717
15718         * elf/dl-addr.c (determine_info): Add inline keyword.
15719         * elf/tst-auditmod4b.c (check_avx): Likewise.
15720         * elf/tst-auditmod6b.c (check_avx): Likewise.
15721         * elf/tst-auditmod6c.c (check_avx): Likewise.
15722         * elf/tst-auditmod7b.c (check_avx): Likewise.
15723
15724 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15725
15726         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15727         !__SSE_MATH__.
15728
15729 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15730
15731         [BZ #13540]
15732         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15733         processing for last bytes.
15734
15735 2011-08-06  Bruno Haible  <bruno@clisp.org>
15736
15737         [BZ #13061]
15738         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15739         U+0385, not to U+1FEE.
15740
15741         [BZ #13062]
15742         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15743         entry for U+00A5 U+0301.
15744
15745 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15746
15747         [BZ #13166]
15748         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15749         buffer for the output is too small.
15750
15751         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15752         optimization.
15753
15754         [BZ #13185]
15755         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15756         SSE flags if possible.
15757
15758 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15759
15760         [BZ #13540]
15761         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15762         processing for last bytes.
15763
15764 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15765
15766         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15767         (syscall-list-default-options, syscall-list-default-condition)
15768         (syscall-list-includes): Define.
15769         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15770         list of ABIs and options and #if conditions for each ABI.  Do not
15771         handle common syscalls between ABIs specially.
15772         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15773         Remove.
15774         (syscall-list-variants, syscall-list-32bit-options)
15775         (syscall-list-32bit-condition, syscall-list-64bit-options)
15776         (syscall-list-64bit-condition): Define.
15777         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15778         (syscall-list-variants, syscall-list-32bit-options)
15779         (syscall-list-32bit-condition, syscall-list-64bit-options)
15780         (syscall-list-64bit-condition): Define.
15781         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15782         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/x86_64/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
15792 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15793
15794         * locale/iso-639.def: Add brx entry.
15795
15796         [BZ #13328]
15797         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15798         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15799
15800         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15801         __feraiseexcept_renamed.
15802
15803 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15804
15805         [BZ #13538]
15806         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15807         EPOLLET with unsigned values.
15808         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15809         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15810
15811         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15812         to large cancellation.
15813         * math/s_cacoshf.c: Likewise.
15814         * math/s_cacoshl.c: Likewise.
15815
15816 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15817
15818         [BZ #13305]
15819         [BZ #12786]
15820         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15821         * math/s_cacoshf.c: Likewise.
15822         * math/s_cacoshl.c: Likewise.
15823
15824 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15825
15826         [BZ #13439]
15827         * iconv/gconv.h: Define __GCONV_SWAP.
15828         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15829         * iconvdata/utf-16.c: Likewise.
15830         * iconvdata/utf-32.c: Likewise.
15831
15832 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15833
15834         [BZ #13524]
15835         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15836         numerator after shifting it by one limb.
15837
15838 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15839
15840         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15841         under [__USE_EXTERN_INLINES].
15842
15843 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15844
15845         [BZ #13446]
15846         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15847
15848 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15849
15850         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15851         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15852         optimized code.
15853         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15854         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15855         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15856         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15857         for strncasecmp/strncasecmp_l compilation.
15858         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15859         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15860
15861 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15862
15863         [BZ #13484]
15864         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15865         of __asm__.
15866
15867 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15868
15869         [BZ #13506]
15870         * time/tzfile.c (__tzfile_read): Check values from file header.
15871
15872 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15873
15874         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15875         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15876         * powerpc/powerpc32/dl-start.S: Likewise.
15877         * powerpc/powerpc32/elf/start.S: Likewise.
15878         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15879         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15880         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15881         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15882         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15883         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15884         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15885         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15886         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15887         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15888         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15889         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15890         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15891         * powerpc/powerpc32/memset.S: Likewise.
15892         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15893         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15894         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15895         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15896         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15897         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15898         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15899         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15900         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15901         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15902         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15903         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15904         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15905
15906 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15907
15908         * math/libm-test.inc: Added more nearbyint tests.
15909         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15910         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15911         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15912         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15913
15914 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15915
15916         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15917         FD_CLOEXEC.
15918
15919 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15920
15921         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15922         Add wcscpy-ssse3 wcscpy-c.
15923         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15924         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15925         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15926         * sysdeps/x86_64/wcschr.S: New file.
15927         * sysdeps/x86_64/wcsrchr.S: New file.
15928         * string/test-strcmp.c: Remove checking of wcscmp function for
15929         wrong alignments.
15930         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15931         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15932         wcsrchr-sse2 wcsrchr-c.
15933         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15934         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15935         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15936         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15937         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15938         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15939         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15940         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15941         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15942         * wcsmbc/wcschr.c (WCSCHR): New macro.
15943
15944 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15945
15946         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15947         * wcsmbs/test-wcsrchr.c: New file.
15948         * string/test-strrchr.c: Add wcsrchr support.
15949         (WIDE): New macro.
15950         * wcsmbs/test-wcscpy.c: New file.
15951         * string/test-strcpy.c: Add wcscpy support.
15952         (WIDE): New macro.
15953
15954 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15955
15956         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15957         the inner loop.
15958
15959 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15960
15961         [BZ #13472]
15962         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15963
15964 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15965
15966         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15967         Minor optimizations.
15968
15969         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15970         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15971         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15972
15973 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15974
15975         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15976         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15977         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15978         for gcc to avoid warnings.
15979         * inet/Makefile (tests): Add tst-checks.
15980         * inet/tst-checks.c: New file.
15981
15982         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15983         warning.
15984
15985         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15986         __wmemcmp_sse2.
15987
15988         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15989         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15990
15991         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15992
15993 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15994
15995         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15996         problem.
15997
15998         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15999
16000 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16001
16002         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16003         conditional on GCC version.
16004         (__arch_compare_and_exchange_val_8_acq)
16005         (__arch_compare_and_exchange_val_16_acq)
16006         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16007         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16008         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16009
16010 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16011
16012         * sysdeps/sh/backtrace.c: New file.
16013
16014 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16015
16016         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16017         parenthesis.
16018
16019 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16020
16021         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16022         falling back to utime.
16023
16024 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16025
16026         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16027         expectations for float.
16028
16029 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16030
16031         * locale/weight.h (findidx): Add parameter len.
16032         * locale/weightwc.h (findidx): Likewise.
16033         * posix/fnmatch_loop.c (FCT): Adjust caller.
16034         * posix/regcomp.c (build_equiv_class): Likewise.
16035         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16036         * posix/regexec.c (check_node_accept_bytes): Likewise.
16037         * string/strcoll_l.c (STRCOLL): Likewise.
16038         * string/strxfrm_l.c (STRXFRM): Likewise.
16039
16040 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16041
16042         * Makefile.in: Remove CVSOPT handling.
16043         * configure.in: Remove use of AC_REVISION.
16044         * iconvdata/Makefile (distribute): No need to filter out CVS.
16045         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16046         handling.
16047
16048 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16049
16050         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16051         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16052         [USE_AS_STRNCASECMP_L]: Likewise.
16053         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16054         NO_TLS_DIRECT_SEG_REFS.
16055         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16056         Fix argument offsets for non-PIC.
16057         [USE_AS_STRNCASECMP_L]: Likewise.
16058         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16059         NO_TLS_DIRECT_SEG_REFS.
16060
16061 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16062
16063         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16064         O_CLOEXEC.
16065         * locale/loadlocale.c (_nl_load_locale): Likewise.
16066
16067 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16068
16069         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16070         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16071         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16072         (SYSCALL_GETTIME): Set errno on error.
16073
16074         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16075         count references to noai6ai_cached.
16076
16077 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16078
16079         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16080
16081         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16082         FD_CLOEXEC for /proc/self/maps.
16083
16084         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16085         FD_CLOEXEC for /proc/meminfo.
16086
16087         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16088         gai.conf.
16089
16090         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16091         FD_CLOEXEC for given file.
16092
16093         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16094
16095         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16096         FD_CLOEXEC for /etc/hosts.
16097         (_gethtent): Likewise.
16098
16099         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16100
16101         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16102         cancellation and set FD_CLOEXEC for /etc/netgroup.
16103
16104         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16105         reading /etc/publickey.
16106
16107         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16108         allow cancellation when reading /etc/group.
16109
16110         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16111         cancellation.
16112         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16113
16114         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16115         when using data file.
16116
16117         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16118
16119         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16120         (write_nis_obj): Use "c" and "e" in fopen.
16121
16122         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16123
16124         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16125
16126         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16127
16128         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16129
16130         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16131         locale.alias.
16132
16133         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16134
16135         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16136
16137         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16138
16139         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16140         file parsing and set FD_CLOEXEC.
16141
16142 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16143
16144         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16145
16146 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16147
16148         * malloc/arena.c (arena_get2): Don't call reused_arena when
16149         _int_new_arena failed.
16150
16151 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16152
16153         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16154         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16155         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16156         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16157         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16158         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16159         to compile strcasecmp and strncasecmp.
16160         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16161         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16162
16163         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16164
16165 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16166
16167         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16168         locale-defines.sym to gen-as-const-headers.
16169         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16170         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16171         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16172         to compile strcasecmp and strncasecmp.
16173         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16174         strcasecmp_l and strncasecmp_l.
16175         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16176         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16177         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16178         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16179         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16180         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16181         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16182         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16183         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16184         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16185         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16186
16187 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16188
16189         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16190         result of SYSDEP_GETTIME_CPU to retval.
16191         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16192         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16193
16194         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16195         variable.
16196
16197         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16198         mantissa words.
16199         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16200
16201         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16202         from unused variable.
16203
16204         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16205         DWARF definitions.
16206         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16207         for assembling.
16208
16209         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16210         over namespaces.
16211
16212         * sunrpc/rpc_prot.c (rejected): Fix case value.
16213
16214         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16215         unsigned long long int to avoid warnings in shift.
16216
16217         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16218         of use of trans.
16219         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16220         variable tmp.
16221
16222         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16223         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16224         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16225
16226         * nis/nis_table.c (nis_list): Use variable of correct type for
16227         result of __follow_path call.
16228
16229 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16230
16231         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16232         of math functions ceil, trunc, floor, round, and sqrt, when
16233         avaliable on the platform.
16234         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16235         name clash.
16236         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16237         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16238         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16239
16240 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16241
16242         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16243         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16244
16245 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16246
16247         * include/unistd.h: Fix __readlink return type.
16248         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16249
16250 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16251
16252         * stdlib/ucontext.h: Undo last change for makecontext.
16253
16254 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16255
16256         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16257
16258         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16259         * setjmp/setjmp.h: Mark functions as non-leaf.
16260         * setjmp/bits/setjmp2.h: Likewise.
16261         * stdlib/ucontext.h: Likewise.
16262
16263 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16264
16265         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16266         (reused_arena): Don't check arena limit.
16267         (arena_get2): Atomically check arena limit.
16268
16269 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16270
16271         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16272         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16273
16274         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16275         instructions.
16276
16277 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16278
16279         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16280         handler when locking.
16281
16282         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16283         Fix size of allocated buffer.
16284
16285 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16286
16287         [BZ #10103]
16288         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16289         declarations for long double functions.
16290         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16291
16292         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16293
16294 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16295
16296         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16297         installed.
16298
16299         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16300         is disabled.
16301
16302 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16303
16304         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16305
16306 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16307
16308         * include/alloca.h (stackinfo_alloca_round): Define.
16309         (extend_alloca): Use it.
16310         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16311         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16312         here.
16313
16314         * scripts/check-local-headers.sh: Ignore libaudit.h.
16315
16316         * nscd/Makefile (extra-objs): Make recursively expanded.
16317
16318 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16319
16320         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16321         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16322
16323         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16324         * posix/tst-rfc3484-2.c: Likewise.
16325         * posix/tst-rfc3484-3.c: Likewise.
16326
16327         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16328         process_vm_writev.
16329         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16330         process_vm_writev.
16331         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16332         process_vm_writev from libc using GLIBC_2.15 version.
16333
16334         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16335
16336 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16337
16338         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16339         stack usage.
16340
16341 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16342
16343         [BZ #13367]
16344         * nss/getent.c (initgroups_keys): Show error message in case no group
16345         names are given.
16346
16347         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16348         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16349         __bump_nl_timestamp.
16350         * nscd/connections (nscd_init): When host database is served open
16351         netlink socket and request notification about configuration changes.
16352         (main_loop_poll): Track netlink file descriptor and bump timestamp
16353         in case data becomes available.
16354         (main_loop_epoll): Likewise.
16355         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16356         (database_pers_head): Add extra_data fileds.
16357         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16358         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16359         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16360         Adjust caller.
16361         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16362         in6ai data, call __free_in6ai.
16363         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16364         Add -DHAVE_NETLINK.
16365         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16366         interface information.  Reuse previous data if netlink timestamp
16367         is not changed.
16368         (__bump_nl_timestamp): New function.
16369         (__free_in6ai): New function.
16370
16371 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16372
16373         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16374         close_not_cancel_no_status here.
16375         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16376
16377 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16378
16379         [BZ #13276]
16380         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16381         return value.
16382
16383         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16384         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16385         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16386
16387 2011-07-03  Andreas Jaeger  <aj@suse.de>
16388
16389         [BZ #10709]
16390         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16391         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16392         * math/libm-test.inc (sin_test): Add test case.
16393
16394 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16395
16396         [BZ #13337]
16397         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16398         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16399
16400         * elf/chroot_canon.c (chroot_canon): Cleanups.
16401
16402         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16403
16404         [BZ #13335]
16405         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16406         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16407
16408         * string/test-strchr.c: Make usable for strchrnul testing.
16409         * string/test-strchrnul.c: New file.
16410         * string/Makefile (strop-tests): Add strchrnul.
16411
16412         * po/it.po: Update from translation team.
16413         * po/es.po: Likewise.
16414
16415 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16416
16417         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16418         the three constants needed as parameters.  Drop the others.
16419         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16420         __m128i_strloadu_tolower.
16421         Create and initialize variable zero and use it in all the places
16422         where _mm_setzero_si128 was used.
16423
16424         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16425         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16426         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16427         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16428         anymore.
16429         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16430         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16431         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16432         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16433         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16434         __mpranred, __mptan.
16435         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16436         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16437         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16438         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16439         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16440         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16441         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16442         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16443         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16444
16445 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16446
16447         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16448         redefine if SHARED.
16449         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16450
16451         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16452         wide char related routines to wcsmbs subdir.
16453
16454 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16455
16456         [BZ #13344]
16457         * misc/sys/cdefs.h (__THROWNL): Define.
16458         * posix/unistd.h: Use __THREADNL instead of __THREAD
16459         for memory synchronization functions.
16460
16461 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16462
16463         [BZ #13349]
16464         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16465         doesn't exist.
16466         * manual/stdio.texi (Obstack Streams): Node removed.
16467
16468 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16469
16470         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16471         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16472         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16473
16474         * math/math_private.h (math_force_eval): Allow non-addressable
16475         arguments.
16476         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16477
16478 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16479
16480         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16481         file is not needed.
16482
16483         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16484         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16485         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16486         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16487         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16488         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16489         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16490         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16491         Add AVX variants.
16492         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16493         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16494         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16495         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16496         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16497         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16498         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16499         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16500         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16501         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16502         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16503         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16504         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16505         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16506         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16507         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16508         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16509         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16510         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16511
16512         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16513         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16514
16515         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16516         place.  Use VEX encoding when compiling for AVX.
16517
16518 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16519
16520         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16521         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16522
16523         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16524
16525 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16526
16527         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16528         useless if() expression.
16529         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16530         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16531         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16532         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16533         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16534         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16535         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16537         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16538         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16539         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16540         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16541         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16542         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16543         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16544         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16545         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16546         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16547         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16548
16549         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16550
16551 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16552
16553         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16554         condition.
16555         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16556
16557 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16558
16559         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16560         .text section.  Avoid duplicate constants.
16561         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16562         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16563         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16565         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16571         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16573         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16575         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16576         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16577         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16578         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16579         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16580         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16584         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16585         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16586         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16587         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16588         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16589         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16590         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16591         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16592         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16593         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16594         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16595         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16596         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16597         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16598         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16599         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16600         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16601         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16602         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16603         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16604         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16605         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16606
16607 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16608
16609         * sysdeps/x86_64/dla.h: Move to ...
16610         * sysdeps/x86_64/fpu/dla.h: ...here.
16611         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16612         situations.  Use __builtin_fma only for gcc 4.6 and up.
16613
16614         * config.make.in: Add have-mfma4 entry.
16615         * configure.in: Substitute libc_cv_cc_fma4.
16616         * math/Makefile (dbl-only-routines): Add sincostab.
16617         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16618         Use __sincostab not sincos.
16619         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16620         name is a macro.
16621         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16622         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16623         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16624         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16625         using __copysign.
16626         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16627         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16628         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16629         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16630         and __inv.
16631         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16632         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16633         __copysign.
16634         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16635         define aliases when function name is a macro.
16636         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16637         sysdeps/ieee754/dbl-64/sincos.tbl.
16638         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16639         fma4-enabled routines.
16640         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16641         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16642         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16643         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16644         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16645         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16646         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16647         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16648         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16649         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16650         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16651         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16652         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16653         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16654         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16655         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16656         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16657         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16658         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16659         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16660         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16661         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16662         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16663         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16664         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16665         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16666         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16667         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16668         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16669         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16670
16671         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16672         rename.
16673         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16674         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16675         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16676         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16677         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16678         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16679         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16680         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16681
16682 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16683
16684         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16685
16686 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16687
16688         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16689
16690         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16691         prediction.
16692         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16693
16694         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16695         Remove unused variable magic_bits.
16696         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16697
16698         * string/strnlen.c: Define and use STRNLEN macro.
16699         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16700         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16701         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16702         * wcsmbs/wcslen.c: Define and use WCSLEN.
16703         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16704         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16705         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16706         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16707         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16708         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16709         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16710
16711 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16712
16713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16714         strnlen-sse2-no-bsf.
16715         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16716         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16717         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16718         Add strnlen support.
16719         (USE_AS_STRNLEN): New macro.
16720         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16721         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16722         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16723         * sysdeps/x86_64/wcslen.S: New file.
16724
16725 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16726
16727         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16728         XMM-moves are used for copying on small sizes.
16729
16730 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16731
16732         * wcsmbs/Makefile (strop-tests): Add wcschr.
16733         * wcsmbs/test-wcschr.c: New file.
16734         * string/test-strchr.c: Update.
16735         Add wcschr support.
16736         (WIDE): New macro.
16737
16738 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16739
16740         * wcsmbs/Makefile (strop-tests): Add wcslen.
16741         * wcsmbs/test-wcslen.c: New file.
16742         * string/test-strlen.c: Update.
16743         Add wcslen support.
16744         (WIDE): New macro.
16745
16746 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16747
16748         * po/it.po: Update from translation team.
16749
16750 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16751
16752         * sysdeps/x86_64/wcscmp.S: Update.
16753         Fix wrong comparison semantics.
16754         wcscmp shall use signed comparison not unsigned.
16755         Don't use substraction to avoid overflow bug.
16756         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16757         * wcsmbc/wcscmp.c: Likewise.
16758         * string/test-strcmp.c: Likewise.
16759         Add new tests to check cases with negative values.
16760
16761 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16762
16763         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16764         * sysdeps/x86_64/dla.h: ...here.  New file.
16765         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16766         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16767         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16768         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16769         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16770         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16771         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16772         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16773         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16774
16775 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16776
16777         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16778         __ynl_finite aliases.
16779
16780 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16781
16782         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16783
16784         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16785         define DLA_FMA.
16786         [DLA_FMA] (EMULV): Use DLA_FMA.
16787         [DLA_FMA] (MUL12): Use EMULV.
16788         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16789         that are not needed.
16790         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16791         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16793         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16794         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16795         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16796         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16797
16798 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16799
16800         * math/s_nan.c: Undef __nan.
16801         * math/s_nanf.c: Undef __nanf.
16802         * math/s_nanl.c: Undef __nanl.
16803         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16804         "math_private.h".
16805
16806 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16807
16808         * math/s_catan.c: Add branch predictions.
16809         * math/s_catanf.c: Likewise.
16810         * math/s_catanh.c: Likewise.
16811         * math/s_catanhf.c: Likewise.
16812         * math/s_catanhl.c: Likewise.
16813         * math/s_catanl.c: Likewise.
16814         * math/s_cexp.c: Likewise.
16815         * math/s_cexpf.c: Likewise.
16816         * math/s_cexpl.c: Likewise.
16817         * math/s_clog.c: Likewise.
16818         * math/s_clog10.c: Likewise.
16819         * math/s_clog10f.c: Likewise.
16820         * math/s_clog10l.c: Likewise.
16821         * math/s_clogf.c: Likewise.
16822         * math/s_clogl.c: Likewise.
16823         * math/s_csqrt.c: Likewise.
16824         * math/s_csqrtf.c: Likewise.
16825         * math/s_csqrtl.c: Likewise.
16826         * math/s_ctanf.c: Likewise.
16827         * math/s_ctanh.c: Likewise.
16828         * math/s_ctanhf.c: Likewise.
16829         * math/s_ctanhl.c: Likewise.
16830         * math/s_ctanl.c: Likewise.
16831
16832         * math/math_private.h: Define __nan, __nanf, __nanl.
16833         * math/s_cacosh.c: Include <math_private.h>.
16834         * math/s_cacoshl.c: Likewise.
16835         * math/s_casinh.c: Likewise.
16836         * math/s_casinhf.c: Likewise.
16837         * math/s_casinhl.c: Likewise.
16838         * math/s_ccos.c: Rely entire on ccosh.
16839         * math/s_ccosf.c: Rely entire on ccoshf.
16840         * math/s_ccosl.c: Rely entirely on ccoshl.
16841         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16842         Remove tests for FE_INVALID.
16843         * math/s_ccoshf.c: Likewise.
16844         * math/s_ccoshl.c: Likewise.
16845         * math/s_csin.c: Likewise.
16846         * math/s_csinf.c: Likewise.
16847         * math/s_csinh.c Likewise.
16848         * math/s_csinhf.c: Likewise.
16849         * math/s_csinhl.c: Likewise.
16850         * math/s_csinl.c: Likewise.
16851         * math/s_ctan.c: Likewise.
16852         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16853         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16854         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16855
16856 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16857
16858         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16859         compilation problems.
16860
16861         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16862         __builtin_expect.
16863
16864 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16865
16866         * sysdeps/i386/configure.in: Test for -mfma4 option.
16867         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16868         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16869         COMMON_CPUID_INDEX_80000001.
16870         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16871         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16872         use it if FMA3 is not supported.
16873         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16874
16875         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16876         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16877
16878 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16879
16880         [BZ #12892]
16881         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16882         it would create a cycle with a link time dependency.
16883
16884 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16885
16886         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16887         instruction.
16888         * string/Makefile (strop-tests): Add rawmemchr.
16889         * string/test-rawmemchr.c: New file.
16890
16891         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16892         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16893         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16894         when compiling str{,n}casecmp and when AVX is available.  Hook up
16895         new optimized code in initializers.
16896
16897 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16898
16899         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16900         __feraiseexcept instead of feraiseexcept.
16901
16902 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16903
16904         * math/math_private.h: Define defaults for libc_fetestexcept and
16905         libc_feupdateenv.
16906         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16907         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16908         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16909         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16910         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16911         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16912         libc_fetestexcept and libc_feupdateenv.
16913
16914         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16915         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16916         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16917         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16918         libc_feholdexcept_setround.
16919
16920         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16921         Add s_nearbyint-c and s_nearbyintf-c.
16922         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16923         nearbyintf inlines.
16924         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16925         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16926         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16927         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16928
16929         * math/math_private.h: Define defaults for libc_fegetround,
16930         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16931         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16932         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16933         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16934         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16935         standard functions.
16936         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16937         Remove comments and hacks for old compiler versions.
16938         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16939         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16940         libc_feholdexceptl.
16941
16942 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16943
16944         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16945         (__feraiseexcept_renamed): Add __NTH.
16946         (feraiseexcept): Add __NTH.  Rename local variables to fix
16947         namespace violations.
16948
16949 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16950
16951         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16952
16953         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16954
16955         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16956         recently added interfaces.
16957         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16958
16959         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16960         about macro parameter expansion.
16961
16962         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16963         __NO_MATH_INLINES is defined.  Cleanups.
16964
16965         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16966         and __floorf is target has SSE4.1.
16967         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16968         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16969         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16970         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16971
16972         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16973         name.
16974         (floorf): Likewise.
16975
16976         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16977
16978 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16979
16980         * misc/sys/cdefs.h: Fix last change.
16981
16982         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16983         database lookup.
16984
16985 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16986
16987         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16988
16989         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16990         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16991         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16992         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16993         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16994         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16995         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16996         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16997         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16998         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16999         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17000         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17001         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17002         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17003         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17004         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17005         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17006         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17007         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17008         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17009         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17010         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17011
17012         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17013         ceil, ceilf, floor, floorf.
17014
17015         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17016         Perform IRELATIVE relocations last.
17017
17018         * elf/do-rel.h: Add another parameter nrelative, replacing the
17019         local variable with the same name.  Change name of the function
17020         to end in Rel or Rela (uppercase).
17021         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17022         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17023         elf_dynamic_do_##reloc function.
17024
17025 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17026
17027         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17028         is sufficient, at least on modern CPUs.
17029
17030         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17031
17032         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17033         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17034
17035         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17036         __expl_finite.
17037         * math/bits/math-finite.h: Add entries for exp.
17038         * math/e_expl.c: Add __*_finite alias.
17039         * sysdeps/i386/fpu/e_exp.S: Likewise.
17040         * sysdeps/i386/fpu/e_expf.S: Likewise.
17041         * sysdeps/i386/fpu/e_expl.c: Likewise.
17042         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17043         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17044         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17045         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17046         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17047         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17048         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17049
17050         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17051         is sufficient, at least on modern CPUs.
17052
17053         * ctype/ctype-info.c (__ctype_init): Define.
17054         * include/ctype.h (__ctype_init): Declare.
17055         (__ctype_b_loc): The variable is always initialized.
17056         (__ctype_toupper_loc): Likewise.
17057         (__ctype_tolower_loc): Likewise.
17058         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17059         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17060
17061 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17062
17063         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17064
17065         * configure.in: Also look in $cxxmachine/include for C++ system
17066         headers.
17067
17068 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17069
17070         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17071         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17072         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17073         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17074         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17075         (USE_AS_WMEMCMP): New macro.
17076         Fixing indents.
17077         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17078         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17079         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17080         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17081         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17082         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17083         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17084         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17085         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17086         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17087         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17088         (USE_AS_WMEMCMP): New macro.
17089         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17090         * sysdeps/string/test-memcmp.c: Update.
17091         Fix simple_wmemcmp.
17092         Add new tests.
17093         * wcsmbs/wmemcmp.c: Update.
17094         (WMEMCMP): New macro.
17095         Fix overflow bug.
17096
17097 2011-10-12  Andreas Jaeger  <aj@suse.de>
17098
17099         [BZ #13268]
17100         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17101
17102 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17103
17104         * libio/iofwide.c (do_length): Avoid warning.
17105
17106         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17107
17108 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17109
17110         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17111
17112         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17113         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17114         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17115         * sysdeps/i386/i686/fpu/e_log.S: New file.
17116         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17117         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17118
17119         * ctype/ctype.h: Add support for inlined isXXX functions when
17120         compiling C++ code.
17121
17122 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17123
17124         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17125
17126         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17127
17128 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17129
17130         [BZ #13291]
17131         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17132
17133 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17134
17135         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17136         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17137         feraiseexcept.
17138
17139         * sysdeps/x86_64/memrchr.S: Check for zero size.
17140
17141         * string/stratcliff.c: Add memrchr tests.
17142
17143 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17144
17145         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17146         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17147         rawmemchr-sse2 rawmemchr-sse2-bsf.
17148         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17149         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17150         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17151         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17152         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17153         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17154         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17155         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17156         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17157         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17158         * string/memrchr.c (MEMRCHR): New macro.
17159
17160 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17161
17162         Add integration with gcc's -ffinite-math-only and optimize wrapper
17163         functions in libm.
17164         * Versions.def: Define GLIBC_2.15 version for libm.
17165         * math/Makefile (headers): Add bits/math-finite.h.
17166         * math/bits/math-finite.h: New file.
17167         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17168         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17169         * math/e_acoshl.c: Add __*_finite alias.
17170         * math/e_acosl.c: Likewise.
17171         * math/e_asinl.c: Likewise.
17172         * math/e_atan2l.c: Likewise.
17173         * math/e_atanhl.c: Likewise.
17174         * math/e_coshl.c: Likewise.
17175         * math/e_exp10.c: Likewise.
17176         * math/e_exp10f.c: Likewise.
17177         * math/e_exp10l.c: Likewise.
17178         * math/e_exp2l.c: Likewise.
17179         * math/e_fmodl.c: Likewise.
17180         * math/e_gammal_r.c: Likewise.
17181         * math/e_hypotl.c: Likewise.
17182         * math/e_j0l.c: Likewise.
17183         * math/e_j1l.c: Likewise.
17184         * math/e_jnl.c: Likewise.
17185         * math/e_lgammal_r.c: Likewise.
17186         * math/e_log10l.c: Likewise.
17187         * math/e_log2l.c: Likewise.
17188         * math/e_logl.c: Likewise.
17189         * math/e_powl.c: Likewise.
17190         * math/e_sinhl.c: Likewise.
17191         * math/e_sqrtl.c: Likewise.
17192         * math/e_scalb.c: Completely rewritten and optimized.
17193         * math/e_scalbf.c: Likewise.
17194         * math/e_scalbl.c: Likewise.
17195         * math/w_acos.c: Likewise.
17196         * math/w_acosf.c: Likewise.
17197         * math/w_acosl.c: Likewise.
17198         * math/w_acosh.c: Likewise.
17199         * math/w_acoshf.c: Likewise.
17200         * math/w_acoshl.c: Likewise.
17201         * math/w_asin.c: Likewise.
17202         * math/w_asinf.c: Likewise.
17203         * math/w_asinl.c: Likewise.
17204         * math/w_atan2.c: Likewise.
17205         * math/w_atan2f.c: Likewise.
17206         * math/w_atan2l.c: Likewise.
17207         * math/w_atanh.c: Likewise.
17208         * math/w_atanhf.c: Likewise.
17209         * math/w_atanhl.c: Likewise.
17210         * math/w_exp10.c: Likewise.
17211         * math/w_exp10f.c: Likewise.
17212         * math/w_exp10l.c: Likewise.
17213         * math/w_fmod.c: Likewise.
17214         * math/w_fmodf.c: Likewise.
17215         * math/w_fmodl.c: Likewise.
17216         * math/w_j0.c: Likewise.
17217         * math/w_j0f.c: Likewise.
17218         * math/w_j0l.c: Likewise.
17219         * math/w_j1.c: Likewise.
17220         * math/w_j1f.c: Likewise.
17221         * math/w_j1l.c: Likewise.
17222         * math/w_jn.c: Likewise.
17223         * math/w_jnf.c: Likewise.
17224         * math/w_log.c: Likewise.
17225         * math/w_logf.c: Likewise.
17226         * math/w_logl.c: Likewise.
17227         * math/w_log10.c: Likewise.
17228         * math/w_log10f.c: Likewise.
17229         * math/w_log10l.c: Likewise.
17230         * math/w_log2.c: Likewise.
17231         * math/w_log2f.c: Likewise.
17232         * math/w_log2l.c: Likewise.
17233         * math/w_pow.c: Likewise.
17234         * math/w_powf.c: Likewise.
17235         * math/w_powl.c: Likewise.
17236         * math/w_remainder.c: Likewise.
17237         * math/w_remainderf.c: Likewise.
17238         * math/w_remainderl.c: Likewise.
17239         * math/w_scalb.c: Likewise.
17240         * math/w_scalbf.c: Likewise.
17241         * math/w_scalbl.c: Likewise.
17242         * math/w_sqrt.c: Likewise.
17243         * math/w_sqrtf.c: Likewise.
17244         * math/w_sqrtl.c: Likewise.
17245         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17246         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17247         used.
17248         * math/math_private.h: Declare __kernel_standard_f.
17249         * math/w_cosh.c: Remove cruft and optimize a bit.
17250         * math/w_coshf.c: Likewise.
17251         * math/w_coshl.c: Likewise.
17252         * math/w_exp2.c: Likewise.
17253         * math/w_exp2f.c: Likewise.
17254         * math/w_exp2l.c: Likewise.
17255         * math/w_hypot.c: Likewise.
17256         * math/w_hypotf.c: Likewise.
17257         * math/w_hypotl.c: Likewise.
17258         * math/w_lgamma.c: Likewise.
17259         * math/w_lgamma_r.c: Likewise.
17260         * math/w_lgammaf.c: Likewise.
17261         * math/w_lgammaf_r.c: Likewise.
17262         * math/w_lgammal.c: Likewise.
17263         * math/w_lgammal_r.c: Likewise.
17264         * math/w_sinh.c: Likewise.
17265         * math/w_sinhf.c: Likewise.
17266         * math/w_sinhl.c: Likewise.
17267         * math/w_tgamma.c: Likewise.
17268         * math/w_tgammaf.c: Likewise.
17269         * math/w_tgammal.c: Likewise.
17270         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17271         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17272         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17273         Minor optimizations.  Pretty printing.  Remove cruft.
17274         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17275         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17276         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17277         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17278         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17279         * sysdeps/i386/fpu/e_asin.S: Likewise.
17280         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17281         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17282         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17283         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17284         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17285         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17286         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17287         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17288         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17289         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17290         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17291         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17292         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17293         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17294         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17295         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17296         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17297         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17298         * sysdeps/i386/fpu/e_log.S: Likewise.
17299         * sysdeps/i386/fpu/e_log10.S: Likewise.
17300         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17301         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17302         * sysdeps/i386/fpu/e_log2.S: Likewise.
17303         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17304         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17305         * sysdeps/i386/fpu/e_logf.S: Likewise.
17306         * sysdeps/i386/fpu/e_logl.S: Likewise.
17307         * sysdeps/i386/fpu/e_pow.S: Likewise.
17308         * sysdeps/i386/fpu/e_powf.S: Likewise.
17309         * sysdeps/i386/fpu/e_powl.S: Likewise.
17310         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17311         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17312         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17313         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17314         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17315         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17316         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17317         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17318         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17319         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17320         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17321         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17322         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17323         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17324         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17325         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17326         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17327         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17328         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17329         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17330         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17332         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17333         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17334         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17335         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17336         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17337         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17338         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17339         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17340         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17341         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17342         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17343         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17344         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17345         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17346         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17347         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17348         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17349         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17350         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17351         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17352         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17353         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17354         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17355         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17356         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17357         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17358         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17359         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17360         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17361         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17363         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17364         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17365         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17366         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17367         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17369         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17370         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17371         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17372         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17373         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17374         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17375         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17376         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17377         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17378         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17379         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17380         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17381         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17382         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17383         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17384         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17385         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17386         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17387         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17388         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17389         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17390         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17391         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17392         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17393         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17394         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17395         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17396         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17397         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17398         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17399         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17400         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17401         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17402         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17404         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17405         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17406         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17407         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17408         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17409         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17410         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17411         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17412         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17413         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17414         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17415         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17416         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17417         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17418         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17419         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17420         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17421         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17422         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17423         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17424         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17425         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17426         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17427         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17428         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17429         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17430         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17431         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17432         (__isnanf): Likewise.
17433         (__isinf_ns): Likewise.
17434         (__isinf_nsf): Likewise.
17435         (__finite): Likewise.
17436         (__finitef): Likewise.
17437         (__ieee754_sqrt): Define as macro.
17438         (__ieee754_sqrtf): Define as macro.
17439         (__ieee754_sqrtl): Define as macro.
17440         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17441         inlined copy.
17442         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17443         __FINITE_MATH_ONLY__ consistent.
17444         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17445
17446 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17447
17448         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17449         of rawmemchr.
17450
17451         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17452
17453 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17454
17455         * po/ja.po: Update from translation team.
17456
17457 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17458
17459         * locale/programs/locarchive.c (prepare_address_space): New function.
17460         (create_archive, enlarge_archive, open_archive): Use it.
17461
17462         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17463         inside [SHARED], where it is used.
17464
17465         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17466
17467         * nss/getent.c (netgroup_keys): Remove unused variable.
17468         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17469
17470 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17471
17472         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17473         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17474         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17475         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17476         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17477         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17478         * math/Makefile (libm-calls): Add s_isinf_ns.
17479         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17480         * math/multc3.c: Likewise.
17481         * math/s_casin.c: Likewise.
17482         * math/s_casinf.c: Likewise.
17483         * math/s_casinl.c: Likewise.
17484         * math/s_ccos.c: Likewise.
17485         * math/s_ccosf.c: Likewise.
17486         * math/s_ccosl.c: Likewise.
17487         * math/s_ctan.c: Likewise.
17488         * math/s_ctanf.c: Likewise.
17489         * math/s_ctanh.c: Likewise.
17490         * math/s_ctanhf.c: Likewise.
17491         * math/s_ctanhl.c: Likewise.
17492         * math/s_ctanl.c: Likewise.
17493         * math/w_fmod.c: Likewise.
17494         * math/w_fmodf.c: Likewise.
17495         * math/w_fmodl.c: Likewise.
17496         * math/w_remainder.c: Likewise.
17497         * math/w_remainderf.c: Likewise.
17498         * math/w_remainderl.c: Likewise.
17499         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17500         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17501         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17502         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17503         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17504         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17505         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17506         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17507
17508         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17509         of the number.
17510         * stdio-common/printf_fphex.c: Likewise.
17511         * stdio-common/printf_size.c: Likewise.
17512
17513         * math/e_exp10.c: Include math_private.h using <...> not "...".
17514         * math/e_exp10f.c: Likewise.
17515         * math/e_exp10l.c: Likewise.
17516         * math/e_exp2l.c: Likewise.
17517         * math/e_j0l.c: Likewise.
17518         * math/e_j1l.c: Likewise.
17519         * math/e_jnl.c: Likewise.
17520         * math/e_lgammal_r.c: Likewise.
17521         * math/e_rem_pio2l.c: Likewise.
17522         * math/e_scalb.c: Likewise.
17523         * math/e_scalbf.c: Likewise.
17524         * math/e_scalbl.c: Likewise.
17525         * math/k_cosl.c: Likewise.
17526         * math/k_sinl.c: Likewise.
17527         * math/k_tanl.c: Likewise.
17528         * math/s_cacoshf.c: Likewise.
17529         * math/s_catan.c: Likewise.
17530         * math/s_catanf.c: Likewise.
17531         * math/s_catanh.c: Likewise.
17532         * math/s_catanhf.c: Likewise.
17533         * math/s_catanhl.c: Likewise.
17534         * math/s_catanl.c: Likewise.
17535         * math/s_ccosh.c: Likewise.
17536         * math/s_ccoshf.c: Likewise.
17537         * math/s_ccoshl.c: Likewise.
17538         * math/s_cexp.c: Likewise.
17539         * math/s_cexpf.c: Likewise.
17540         * math/s_cexpl.c: Likewise.
17541         * math/s_clog.c: Likewise.
17542         * math/s_clog10.c: Likewise.
17543         * math/s_clog10f.c: Likewise.
17544         * math/s_clog10l.c: Likewise.
17545         * math/s_clogf.c: Likewise.
17546         * math/s_clogl.c: Likewise.
17547         * math/s_csin.c: Likewise.
17548         * math/s_csinf.c: Likewise.
17549         * math/s_csinh.c: Likewise.
17550         * math/s_csinhf.c: Likewise.
17551         * math/s_csinhl.c: Likewise.
17552         * math/s_csinl.c: Likewise.
17553         * math/s_csqrt.c: Likewise.
17554         * math/s_csqrtf.c: Likewise.
17555         * math/s_csqrtl.c: Likewise.
17556         * math/s_ctan.c: Likewise.
17557         * math/s_ctanf.c: Likewise.
17558         * math/s_ctanh.c: Likewise.
17559         * math/s_ctanhf.c: Likewise.
17560         * math/s_ctanhl.c: Likewise.
17561         * math/s_ctanl.c: Likewise.
17562         * math/s_ldexp.c: Likewise.
17563         * math/s_ldexpf.c: Likewise.
17564         * math/s_ldexpl.c: Likewise.
17565         * math/s_significand.c: Likewise.
17566         * math/s_significandf.c: Likewise.
17567         * math/s_significandl.c: Likewise.
17568         * math/w_acos.c: Likewise.
17569         * math/w_acosf.c: Likewise.
17570         * math/w_acosh.c: Likewise.
17571         * math/w_acoshf.c: Likewise.
17572         * math/w_acoshl.c: Likewise.
17573         * math/w_acosl.c: Likewise.
17574         * math/w_asin.c: Likewise.
17575         * math/w_asinf.c: Likewise.
17576         * math/w_asinl.c: Likewise.
17577         * math/w_atan2.c: Likewise.
17578         * math/w_atan2f.c: Likewise.
17579         * math/w_atan2l.c: Likewise.
17580         * math/w_atanh.c: Likewise.
17581         * math/w_atanhf.c: Likewise.
17582         * math/w_atanhl.c: Likewise.
17583         * math/w_cosh.c: Likewise.
17584         * math/w_coshf.c: Likewise.
17585         * math/w_coshl.c: Likewise.
17586         * math/w_dremf.c: Likewise.
17587         * math/w_exp10.c: Likewise.
17588         * math/w_exp10f.c: Likewise.
17589         * math/w_exp10l.c: Likewise.
17590         * math/w_exp2.c: Likewise.
17591         * math/w_exp2f.c: Likewise.
17592         * math/w_fmod.c: Likewise.
17593         * math/w_fmodf.c: Likewise.
17594         * math/w_fmodl.c: Likewise.
17595         * math/w_hypot.c: Likewise.
17596         * math/w_hypotf.c: Likewise.
17597         * math/w_hypotl.c: Likewise.
17598         * math/w_j0.c: Likewise.
17599         * math/w_j0f.c: Likewise.
17600         * math/w_j0l.c: Likewise.
17601         * math/w_j1.c: Likewise.
17602         * math/w_j1f.c: Likewise.
17603         * math/w_j1l.c: Likewise.
17604         * math/w_jn.c: Likewise.
17605         * math/w_jnf.c: Likewise.
17606         * math/w_jnl.c: Likewise.
17607         * math/w_lgamma.c: Likewise.
17608         * math/w_lgamma_r.c: Likewise.
17609         * math/w_lgammaf.c: Likewise.
17610         * math/w_lgammaf_r.c: Likewise.
17611         * math/w_lgammal.c: Likewise.
17612         * math/w_lgammal_r.c: Likewise.
17613         * math/w_log.c: Likewise.
17614         * math/w_log10.c: Likewise.
17615         * math/w_log10f.c: Likewise.
17616         * math/w_log10l.c: Likewise.
17617         * math/w_log2.c: Likewise.
17618         * math/w_log2f.c: Likewise.
17619         * math/w_log2l.c: Likewise.
17620         * math/w_logf.c: Likewise.
17621         * math/w_logl.c: Likewise.
17622         * math/w_pow.c: Likewise.
17623         * math/w_powf.c: Likewise.
17624         * math/w_powl.c: Likewise.
17625         * math/w_remainder.c: Likewise.
17626         * math/w_remainderf.c: Likewise.
17627         * math/w_remainderl.c: Likewise.
17628         * math/w_scalb.c: Likewise.
17629         * math/w_scalbf.c: Likewise.
17630         * math/w_scalbl.c: Likewise.
17631         * math/w_sinh.c: Likewise.
17632         * math/w_sinhf.c: Likewise.
17633         * math/w_sinhl.c: Likewise.
17634         * math/w_sqrt.c: Likewise.
17635         * math/w_sqrtf.c: Likewise.
17636         * math/w_sqrtl.c: Likewise.
17637         * math/w_tgamma.c: Likewise.
17638         * math/w_tgammaf.c: Likewise.
17639         * math/w_tgammal.c: Likewise.
17640
17641         * po/ja.po: Update from translation team.
17642
17643 2011-09-29  Andreas Jaeger  <aj@suse.de>
17644
17645         [BZ #13179]
17646         * sunrpc/netname.c (netname2host): Fix logic.
17647
17648         [BZ #6779]
17649         [BZ #6783]
17650         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17651         correctly.
17652         * math/w_remainder.c (__remainder): Likewise.
17653         * math/w_remainderf.c (__remainderf): Likewise.
17654         * math/libm-test.inc (remainder_test): Add test cases.
17655
17656 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17657
17658         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17659         sdiv_qrnnd.
17660
17661 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17662
17663         * string/test-memcmp.c: Avoid unncessary #defines.
17664         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17665
17666 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17667
17668         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17669         Use new sse2 version for core i3 - i7 as it's faster
17670         than sse42 version.
17671         (bit_Prefer_PMINUB_for_stringop): New.
17672         * sysdeps/x86_64/rawmemchr.S: Update.
17673         Replace with faster SSE2 version.
17674         * sysdeps/x86_64/memrchr.S: New file.
17675         * sysdeps/x86_64/memchr.S: Update.
17676         Replace with faster SSE2 version.
17677
17678 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17679
17680         * elf/dl-load.c (lose): Add cast to avoid warning.
17681
17682 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17683
17684         * po/ca.po: Update from translation team.
17685
17686         * inet/getnetgrent_r.c: Hook up nscd.
17687         * nscd/Makefile (routines): Add nscd_netgroup.
17688         (nscd-modules): Add netgroupcache.
17689         (CFLAGS-netgroupcache.c): Define.
17690         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17691         (cache_search): Add const to second parameter.
17692         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17693         INNETGR.
17694         (dbs): Add netgrdb entry.
17695         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17696         (verify_persistent_db): Handle netgrdb.
17697         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17698         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17699         GETFDNETGR.
17700         (netgroup_response_header): Define.
17701         (innetgroup_response_header): Define.
17702         (datahead): Add netgroup_response_header and innetgroup_response_header
17703         elements.
17704         * nscd/nscd.conf: Add entries for netgroup cache.
17705         * nscd/nscd.h (dbtype): Add netgrdb.
17706         (_PATH_NSCD_NETGROUP_DB): Define.
17707         (netgroup_iov_disabled): Declare.
17708         (xmalloc, xcalloc, xrealloc): Move declarations here.
17709         (cache_search): Adjust prototype.
17710         Add netgroup-related prototypes.
17711         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17712         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17713         (__nscd_innetgr): Declare.
17714         * nscd/selinux.c (perms): Use access_vector_t as element type and
17715         add netgroup-related initializers.
17716         * nscd/netgroupcache.c: New file.
17717         * nscd/nscd_netgroup.c: New file.
17718         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17719         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17720         For four parameters use innetgr.
17721         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17722         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17723         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17724         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17725
17726         * nscd/connections.c (register_traced_file): Don't register file
17727         for disabled databases.
17728
17729 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17730
17731         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17732
17733         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17734         from tree and freeing node.
17735
17736 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17737
17738         * nss/nsswitch.c (__nss_database_lookup): Handle
17739         nss_parse_service_list out of memory case.
17740
17741 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17742
17743         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17744         out of memory case.
17745
17746 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17747
17748         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17749         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17750         pass it down.
17751         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17752         elf_machine_rela, elf_machine_lazy_rel.
17753         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17754         (ELF_DYNAMIC_DO_REL): Likewise.
17755         (ELF_DYNAMIC_DO_RELA): Likewise.
17756         (ELF_DYNAMIC_RELOCATE): Likewise.
17757         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17758         to ELF_DYNAMIC_DO_REL.
17759         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17760         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17761         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17762         elf_machine_rela.
17763         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17764         skip_ifunc, don't call ifunc function if non-zero.
17765         (elf_machine_rela): Likewise.
17766         (elf_machine_lazy_rel): Likewise.
17767         (elf_machine_lazy_rela): Likewise.
17768         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17769         (elf_machine_lazy_rel): Likewise.
17770         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17771         Likewise.
17772         (elf_machine_lazy_rel): Likewise.
17773         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17774         Likewise.
17775         (elf_machine_lazy_rel): Likewise.
17776         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17777         (elf_machine_lazy_rel): Likewise.
17778         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17779         (elf_machine_lazy_rel): Likewise.
17780         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17781         (elf_machine_lazy_rel): Likewise.
17782         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17783         (elf_machine_lazy_rel): Likewise.
17784         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17785         (elf_machine_lazy_rel): Likewise.
17786         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17787         (elf_machine_lazy_rel): Likewise.
17788
17789 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17790
17791         * nss/nss_files/files-init.c (_nss_files_init): Use static
17792         initialization for all the *_traced_file variables.
17793
17794 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17795
17796         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17797
17798 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17799
17800         [BZ #13226]
17801         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17802
17803 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17804
17805         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17806         Reread the line before reparsing it.
17807
17808 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17809
17810         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17811
17812 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17813             Maxim Kuvyrkov  <maxim@codesourcery.com>
17814             Joseph Myers  <joseph@codesourcery.com>
17815
17816         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17817         if needed for __stack_chk_guard.
17818
17819 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17820
17821         * sysdeps/posix/spawni.c (script_execute): Always define it.
17822         It will be optimized away if unused.
17823         (maybe_script_execute): New function.
17824         (__spawni): Call it.
17825
17826         * Makerules: Don't include tls.make.
17827         (config-tls): Always set to thread.
17828         * tls.make.c: File removed.
17829
17830 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17831
17832         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17833         * config.make.in (CPPFLAGS-config): New substituted variable.
17834
17835 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17836
17837         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17838
17839         [BZ #13192]
17840         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17841         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17842
17843 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17844
17845         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17846         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17847         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17848         (CALL_FAIL): Likewise.
17849         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17850         (CALL_FAIL): Macro removed.
17851         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17852
17853 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17854
17855         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17856         for __FINITE_MATH_ONLY__ == 1.
17857
17858 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17859
17860         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17861         __ieee754_sqrt instead of sqrt.
17862         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17863         __ieee754_sqrtf instead of sqrtf.
17864         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17865         __floorf instead of floorf.
17866         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17867         __floorf, __truncf instead of floorf, truncf.
17868
17869 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17870
17871         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17872
17873         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17874         __extern_always_inline.
17875         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17876         32-bit.
17877
17878 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17879
17880         * elf/rtld.c (dl_main): Also relocate in dependency order when
17881         doing symbol dependency testing.
17882
17883 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17884
17885         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17886         Always define `refsym'.
17887
17888 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17889
17890         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17891         (__FD_ELT): Renamed from __FDELT.
17892         * misc/bits/select2.h (__FD_ELT): Likewise.
17893         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17894         __FD_MASK instead of __FDELT, __FDMASK.
17895         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17896         Likewise.
17897         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17898         Likewise.
17899
17900         * elf/Makefile (gen-ldd): Fix pattern.
17901
17902         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17903         (init_tls): Likewise.
17904
17905 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17906
17907         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17908
17909 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17910
17911         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17912         `struct cmsghdr *' instead of `void *'.
17913         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17914         Likewise.
17915
17916 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17917
17918         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17919         if non-absolute.
17920         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17921         ldd_rewrite_script.
17922
17923 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17924
17925         * configure.in: Remove --with-tls option.
17926         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17927         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17928         out in case it is missing.
17929         * sysdeps/ia64/elf/configure.in: Likewise.
17930         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17931         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17932         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17933         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17934         * sysdeps/sh/elf/configure.in: Likewise.
17935         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17936         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17937         * sysdeps/x86_64/elf/configure.in: Likewise.
17938         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17939         * sysdeps/mach/hurd/tls.h: Likewise.
17940
17941         [BZ #13067]
17942         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17943
17944         [BZ #13090]
17945         * configure.in: Fix use of AC_INIT.
17946
17947         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17948
17949 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17950
17951         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17952         __set_errno.
17953         * malloc/hooks.c: Likewise.
17954
17955         [BZ #11929]
17956         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17957         variables statically.
17958         (narenas): Initialize.
17959         (list_lock): Initialize.
17960         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17961         initializtion of main_arena and list_lock.  Small cleanups.
17962         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17963         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17964         Add initializers to main_arena and mp_.
17965         (malloc_state): Remove pagesize member.  Change all users to use
17966         GLRO(dl_pagesize).
17967
17968         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17969         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17970         is always initialized.
17971
17972         * malloc/malloc.c: Removed unused configurations and dead code.
17973         * malloc/arena.c: Likewise.
17974         * malloc/hooks.c: Likewise.
17975         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17976
17977         * include/tls.h: Removed.  USE___THREAD must always be defined.
17978         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17979         * elf/dl-libc.c: Likewise.
17980         * elf/dl-tsd.c: Likewise.
17981         * include/errno.h: Likewise.
17982         * include/netdb.h: Likewise.
17983         * include/resolv.h: Likewise.
17984         * inet/herrno-loc.c: Likewise.
17985         * inet/herrno.c: Likewise.
17986         * malloc/arena.c: Likewise.
17987         * malloc/hooks.c: Likewise.
17988         * malloc/malloc.c: Likewise.
17989         * resolv/res-state.c: Likewise.
17990         * resolv/res_libc.c: Likewise.
17991         * sysdeps/i386/dl-machine.h: Likewise.
17992         * sysdeps/ia64/dl-machine.h: Likewise.
17993         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17994         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17995         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17996         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17997         * sysdeps/sh/dl-machine.h: Likewise.
17998         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17999         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18000         * sysdeps/unix/i386/sysdep.S: Likewise.
18001         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18002         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18003         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18004         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18005         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18006         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18007         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18008         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18009         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18010         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18011         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18012         * sysdeps/x86_64/dl-machine.h: Likewise.
18013         * tls.make.c: Likewise.
18014
18015         * configure.in: Remove --with-__thread option.  Make tests for
18016         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18017         tls_model attribute fail if no support is available.  Remove
18018         USE_IN_LIBIO.
18019         * Makeconfig: Adjust for dropped configure option.  All features are
18020         now mandatory.
18021         * Makerules: Likewise.
18022         * Versions.def: Likewise.
18023         * argp/argp-fmtstream.c: Likewise.
18024         * argp/argp-fmtstream.h: Likewise.
18025         * argp/argp-help.c: Likewise.
18026         * assert/assert.c: Likewise.
18027         * config.h.in: Likewise.
18028         * config.make.in: Likewise.
18029         * configure: Likewise.
18030         * configure.in: Likewise.
18031         * csu/Versions: Likewise.
18032         * csu/init.c: Likewise.
18033         * elf/tst-audit2.c: Likewise.
18034         * elf/tst-tls10.c: Likewise.
18035         * elf/tst-tls10.h: Likewise.
18036         * elf/tst-tls11.c: Likewise.
18037         * elf/tst-tls12.c: Likewise.
18038         * elf/tst-tls14.c: Likewise.
18039         * elf/tst-tlsmod11.c: Likewise.
18040         * elf/tst-tlsmod12.c: Likewise.
18041         * elf/tst-tlsmod13.c: Likewise.
18042         * elf/tst-tlsmod13a.c: Likewise.
18043         * elf/tst-tlsmod14a.c: Likewise.
18044         * elf/tst-tlsmod15b.c: Likewise.
18045         * elf/tst-tlsmod16a.c: Likewise.
18046         * elf/tst-tlsmod16b.c: Likewise.
18047         * elf/tst-tlsmod7.c: Likewise.
18048         * elf/tst-tlsmod8.c: Likewise.
18049         * elf/tst-tlsmod9.c: Likewise.
18050         * gmon/gmon.c: Likewise.
18051         * grp/fgetgrent_r.c: Likewise.
18052         * grp/putgrent.c: Likewise.
18053         * hurd/fopenport.c: Likewise.
18054         * include/libc-symbols.h: Likewise.
18055         * include/tls.h: Likewise.
18056         * intl/gettextP.h: Likewise.
18057         * intl/loadinfo.h: Likewise.
18058         * locale/global-locale.c: Likewise.
18059         * locale/localeinfo.h: Likewise.
18060         * mach/devstream.c: Likewise.
18061         * malloc/arena.c: Likewise.
18062         * malloc/set-freeres.c: Likewise.
18063         * misc/err.c: Likewise.
18064         * misc/getttyent.c: Likewise.
18065         * misc/mntent_r.c: Likewise.
18066         * posix/getopt.c: Likewise.
18067         * posix/wordexp.c: Likewise.
18068         * pwd/fgetpwent_r.c: Likewise.
18069         * resolv/Versions: Likewise.
18070         * resolv/res_hconf.c: Likewise.
18071         * shadow/fgetspent_r.c: Likewise.
18072         * shadow/putspent.c: Likewise.
18073         * stdio-common/printf_fphex.c: Likewise.
18074         * stdio-common/tmpfile.c: Likewise.
18075         * stdlib/abort.c: Likewise.
18076         * stdlib/fmtmsg.c: Likewise.
18077         * sunrpc/auth_unix.c: Likewise.
18078         * sunrpc/clnt_perr.c: Likewise.
18079         * sunrpc/clnt_tcp.c: Likewise.
18080         * sunrpc/clnt_udp.c: Likewise.
18081         * sunrpc/clnt_unix.c: Likewise.
18082         * sunrpc/openchild.c: Likewise.
18083         * sunrpc/svc_simple.c: Likewise.
18084         * sunrpc/svc_tcp.c: Likewise.
18085         * sunrpc/svc_udp.c: Likewise.
18086         * sunrpc/svc_unix.c: Likewise.
18087         * sunrpc/xdr.c: Likewise.
18088         * sunrpc/xdr_array.c: Likewise.
18089         * sunrpc/xdr_rec.c: Likewise.
18090         * sunrpc/xdr_ref.c: Likewise.
18091         * sunrpc/xdr_stdio.c: Likewise.
18092
18093 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18094
18095         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18096
18097 2011-07-03  Andreas Jaeger  <aj@suse.de>
18098
18099         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18100         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18101         regenerate with gen-libm-tests.pl.
18102
18103 2010-05-12  Petr Baudis  <pasky@suse.cz>
18104
18105         [BZ #11589]
18106         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18107         around j0() zero points by switching to j1().
18108         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18109         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18110         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18111         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18112
18113 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18114
18115         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18116         instead of 0.
18117         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18118         instead of 0.                              .
18119         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18120         Patch in part by Pavel Roskin <proski@gnu.org>.
18121
18122         [BZ #13138]
18123         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18124         realloc.
18125         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18126         Free memory block if necessary.
18127
18128         [BZ #12847]
18129         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18130         be NULL.  Don't lock in this case.
18131
18132 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18133
18134         * elf/elf.h (ELFOSABI_GNU): New macro.
18135         (ELFOSABI_LINUX): Define to that.
18136
18137 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18138
18139         * string/strncat.c (strncat): Undef the symbol in case it has been
18140         defined in bits/string.h.
18141
18142 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18143
18144         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18145
18146         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18147         link map.
18148
18149 2011-08-17  Andreas Jaeger  <aj@suse.de>
18150
18151         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18152
18153 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18154             Ian Lance Taylor  <iant@google.com>
18155
18156         * math/libm-test.inc (lround_test): New testcase.
18157         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18158
18159 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18160
18161         * Makefile: Remove support for automatic cvs check-ins.
18162         * Makerules: Likewise.
18163         * config.make.in: Likewise.
18164         * configure.in: Likewise.
18165         * intl/Makefile: Likewise.
18166         * locale/Makefile: Likewise.
18167         * po/Makefile: Likewise.
18168         * posix/Makefile: Likewise.
18169         * sysdeps/gnu/Makefile: Likewise.
18170         * sysdeps/mach/hurd/Makefile: Likewise.
18171         * sysdeps/sparc/sparc32/Makefile: Likewise.
18172
18173         [BZ #13118]
18174         * posix/Makefile (bug-regex32-ENV): Define.
18175         Patch by John Stanley <jpsinthemix@verizon.net>.
18176
18177         * misc/Makefile (headers): Add bits/select2.h.
18178         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18179         * misc/bits/select2.h: New file.
18180         * include/bits/select2.h: New file.
18181         * debug/Makefile (routines): Add fdelt_chk.
18182         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18183         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18184         FD_ISSET.
18185         * debug/fdelt_chk.c: New file.
18186
18187         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18188         * wcsmbs/test-wmemcmp.c: Likewise.
18189         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18190         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18191
18192 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18193
18194         * string/Makefile (strop-tests): Add memcmp.
18195         * string/test-wmemcmp.c: New file.
18196         * string/test-memcmp.c: Add wmemcmp support.
18197
18198 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18199
18200         [BZ #13153]
18201         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18202         2011-07-19 change.
18203
18204         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18205         garbage value in a __mach_port_mod_refs call in the cases of the
18206         task-self and thread-self ports.
18207
18208 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18209
18210         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18211
18212 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18213
18214         * elf/dl-load.c (lose): Check for non-null L.
18215
18216 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18217
18218         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18219
18220         * elf/dl-libc.c (dlerror_run): Pass back error code from
18221         dl_catch_error.
18222
18223         [BZ #13123]
18224         * elf/dl-load.c (lose): Free l_origin if it is valid.
18225
18226         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18227         names.
18228         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18229         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18230         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18231         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18232         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18233         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18234
18235 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18236
18237         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18238         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18239         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18240         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18241         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18242         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18243         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18244         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18245         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18246         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18247
18248 2011-08-15  Alan Modra  <amodra@gmail.com>
18249
18250         [BZ #13092]
18251         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18252         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18253         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18254         ppc_mcount to static-only-routines.
18255         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18256         __mcount_internal.
18257         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18258         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18259
18260 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18261
18262         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18263         for finite and infinity parameters.
18264
18265 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18266
18267         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18268         and add nop instructions for throughput optimization.
18269         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18270
18271 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18272
18273         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18274         aligned copy for power7 with vector-scalar instructions.
18275         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18276
18277 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18278
18279         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18280         AVX check.
18281
18282 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18283
18284         [BZ #13144]
18285         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18286         last change.
18287
18288 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18289
18290         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18291         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18292         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18293         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18294         clock_gettime.
18295
18296 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18297
18298         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18299         Forgot to demangle the pointer.
18300
18301         * sysdeps/i386/sysdep.h: Define atom_text_section.
18302         * sysdeps/x86_64/sysdep.h: Likewise.
18303         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18304         section with atom_text_section.
18305         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18306         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18307         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18308         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18309         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18310
18311         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18312         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18313         already be defined.  Change to take two parameters and don't assign
18314         result to variable.  Adjust all users.
18315         Define INTERNAL_GETTIME if not already defined.
18316         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18317         call.
18318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18319         HAVE_CLOCK_GETTIME_VSYSCALL.
18320         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18321
18322         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18323         gettimeofday vsyscall, just use time.
18324
18325 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18326
18327         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18328         <errno.h>.
18329
18330 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18331
18332         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18333         syscall on x86-64.
18334         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18335         syscall.
18336         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18337         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18338         syscall if possible.
18339
18340 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18341
18342         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18343         e_ident.  Don't pass to find_mapsXX.
18344         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18345
18346 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18347
18348         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18349         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18350         * sysdeps/x86_64/multiarch/strchr.S: Update.
18351         Check bit_slow_BSF bit.
18352         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18353         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18354         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18355
18356 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18357
18358         [BZ #13134]
18359         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18360         before glibc 2.15.
18361         (tryshell): Define.
18362         (__spawni): Change last parameter to be flag.  Test
18363         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18364         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18365         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18366         * posix/spawni.c: Likewise.
18367         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18368         * posix/spawnp.c: Likewise.  Change normal version to use
18369         SPAWN_XFLAGS_USE_PATH.
18370         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18371         SPAWN_XFLAGS_TRY_SHELL.
18372
18373         [BZ #13150]
18374         * posix/glob.h: Remove gcc 1.x support.
18375
18376         [BZ #13068]
18377         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18378
18379 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18380
18381         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18382         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18383         strrchr-sse2-bsf
18384         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18385         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18386         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18387         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18388         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18389         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18390
18391 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18392
18393         * sysdeps/x86_64/wcscmp.S: New file.
18394
18395         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18396         wcscmp-c wcscmp-sse2
18397         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18398         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18399         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18400         * wcsmbs/wcscmp.c: Allow renaming.
18401
18402 2011-09-05  David S. Miller  <davem@davemloft.net>
18403
18404         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18405         stack slot, rather than the struct return pointer slot.
18406         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18407         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18408         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18409         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18410
18411 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18412
18413         * po/ja.po: Update from translation team.
18414
18415         [BZ #13144]
18416         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18417         kernel in 64-bit binaries.
18418
18419 2011-09-01  David S. Miller  <davem@davemloft.net>
18420
18421         * elf/elf.h (HWCAP_SPARC_*): Move to..
18422         * sysdeps/sparc/sysdep.h: this new file and add new values.
18423         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18424         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18425         _DL_HWCAP_COUNT to 24.
18426         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18427         entries.
18428         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18429         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18430         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18431         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18432         instead of magic constants.
18433         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18434
18435 2011-08-31  David S. Miller  <davem@davemloft.net>
18436
18437         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18438         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18439         Reimplement to do errno handling inline.
18440         (SYSCALL_ERROR_HANDLER): New macro.
18441         (__SYSCALL_STRING): Do not do errno handling in asm.
18442         (__CLONE_SYSCALL_STRING): Delete.
18443         (__INTERNAL_SYSCALL_STRING): Delete.
18444         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18445         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18446         (PSEUDO): Reimplement to do errno handling inline.
18447         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18448         (SYSCALL_ERROR_HANDLER): New macro.
18449         (__SYSCALL_STRING): Do not do errno handling in asm.
18450         (__CLONE_SYSCALL_STRING): Delete.
18451         (__INTERNAL_SYSCALL_STRING): Delete.
18452         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18453         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18454         i386.
18455         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18456         (inline_syscall*): Add 'err' argument.
18457         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18458         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18459         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18460         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18461
18462         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18463         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18464
18465 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18466
18467         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18468
18469 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18470
18471         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18472         directive.
18473
18474 2011-08-24  David S. Miller  <davem@davemloft.net>
18475
18476         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18477
18478 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18479
18480         * elf/Makefile: Add rules to build and run unload8 test.
18481         * elf/unload8.c: New file.
18482         * elf/unload8mod1.c: New file.
18483         * elf/unload8mod1x.c: New file.
18484         * elf/unload8mod2.c: New file.
18485         * elf/unload8mod3.c: New file.
18486
18487         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18488         it wasn't used.
18489
18490 2011-08-23  David S. Miller  <davem@davemloft.net>
18491
18492         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18493         subtract stack bias.
18494         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18495         %sp not %fp in calculations.
18496         (_JMPBUF_UNWINDS_ADJ): Likewise.
18497
18498         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18499         (aio_suspend): Call it to force an exception region around the
18500         AIO_MISC_WAIT() invocation.
18501
18502 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18503
18504         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18505         backslash.
18506
18507 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18508
18509         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18510         protection macro.
18511         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18512         and <dl-machine.h>.
18513         (Elf64_FuncDesc): Remove.
18514
18515 2011-08-22  David S. Miller  <davem@davemloft.net>
18516
18517         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18518         sigaltstack check, add missing cfi directives.
18519         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18520         missing cfi directives, and sigaltstack handling.
18521
18522 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18523
18524         [BZ #11724]
18525         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18526         object is seen twice.
18527         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18528
18529         * elf/Makefile (distribute): Add tst-initorder2.c.
18530         (tests): Add tst-initorder2.
18531         (modules-names): Add tst-initorder2a tst-initorder2b
18532         tst-initorder2c tst-initorder2d.  Add rules to build them.
18533         ($(objpfx)tst-initorder2.out): New rule.
18534         * elf/tst-initorder2.c: New file.
18535         * elf/tst-initorder2.exp: New file.
18536
18537 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18538
18539         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18540
18541         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18542         dependencies back to end of function.
18543
18544         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18545         $(elfobjdir)/ld.so.
18546
18547 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18548
18549         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18550         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18551         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18552         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18553         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18554         of __vdso_gettimeofday.
18555         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18556         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18557         attribute_hidden.
18558         (_libc_vdso_platform_setup): Remove initialization of
18559         __vdso_gettimeofday and __vdso_time.
18560
18561 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18562
18563         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18564         and fgetc_unlocked.
18565         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18566         getc_unlocked.
18567
18568         * elf/dl-open.c (add_to_global): Report additions to the global scope
18569         for LD_DEBUG=scopes.
18570         (dl_open_worker): Also print scope of newly loaded dependencies.
18571         (_dl_show_scope): Indicate if there is no scope.
18572
18573         [BZ #13114]
18574         * stdio-common/Makefile (tests): Add bug24.
18575         * stdio-common/bug24.c: New file.
18576
18577 2011-08-19  Andreas Jaeger  <aj@suse.de>
18578
18579         [BZ #13114]
18580         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18581         non-existant file when using close-on-exec mode.
18582
18583 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18584
18585         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18586         the very first instruction.
18587
18588         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18589         the CFI state in the end.
18590         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18591         inclusion of dl-trampoline.h.
18592         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18593
18594 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18595
18596         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18597         expectations for long double.
18598
18599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18600         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18601
18602 2011-08-14  David S. Miller  <davem@davemloft.net>
18603
18604         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18605         artificual limit depends upon the system page size.
18606
18607 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18608
18609         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18610         * resolv/Makefile: Define CFLAGS-libresolv.
18611
18612 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18613
18614         * nss/makedb.c (compute_tables): Make variables used in nested
18615         function static.
18616
18617 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18618
18619         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18620         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18621         if buffer was too small.
18622
18623         * elf/pldd.c (main): Attach to all threads in the process.
18624         Rewrite /proc handling to use *at functions.
18625
18626 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18627
18628         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18629         specifies first scope to show.
18630         (dl_open_worker): Update callers.  Move printing scope of new
18631         object to before the relocation.
18632         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18633         * sysdeps/generic/ldsodefs.h: Update declaration.
18634
18635         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18636         string for the scope number.
18637
18638 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18639
18640         * nscd/servicescache.c (cache_addserv): Make sure written is always
18641         initialized.
18642
18643 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18644
18645         * sysdeps/i386/i486/bits/atomic.h
18646         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18647         statement expression, so as to suppress "set but not used" warning.
18648         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18649
18650         * string/strncat.c (STRNCAT): Use prototype definition.
18651
18652         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18653         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18654         -Iprograms here.
18655         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18656         (localedef-modules): Add localedef.
18657         (locale-modules): Add locale.
18658
18659         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18660         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18661         to avoid a warning.
18662
18663 2011-08-14  David S. Miller  <davem@davemloft.net>
18664
18665         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18666         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18667
18668 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18669
18670         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18671         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18672         * elf/rtld.c (dl_main): Set l_name of vDSO.
18673         Call _dl_show_scope when DL_DEBUG_SCOPES.
18674         (process_dl_debug): Recognize scopes flag and also set it for all.
18675         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18676         Declare _dl_show_scope.
18677
18678         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18679         (do_dlopen): Pass caller_dlopen to dl_open.
18680         (__libc_dlopen_mode): Initialize caller_dlopen.
18681
18682         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18683         of libc.  Make tolower call locale-independent.  Optimize a bit by
18684         using isdigit instead of isalnum.
18685         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18686
18687 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18690         was a dependency or dynamically loaded.
18691
18692 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18693
18694         * intl/l10nflist.c: Allow architecture-specific pop function.
18695         * sysdeps/x86_64/l10nflist.c: New file.
18696
18697         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18698         classification.
18699
18700 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18701
18702         * include/dirent.h: Add libc_hidden_proto for scandirat and
18703         scandirat64.  Don't declare __scandirat64.
18704         * dirent/scandirat.c: Add libc_hidden_def.
18705         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18706         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18707
18708 2011-08-10  David S. Miller  <davem@davemloft.net>
18709
18710         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18711         enum.
18712         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18713         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18714         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18715
18716 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18717
18718         * Versions.def [libc]: Add GLIBC_2.15.
18719         * dirent/Makefile (routines): Add scandirat and scandirat64.
18720         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18721         GLIBC_2.15.
18722         * dirent/dirent.h: Declare scandirat and scandirat64.
18723         * dirent/scandirat.c: New file.
18724         * dirent/scandirat64.c: New file.
18725         * sysdeps/wordsize-64/scandirat.c: New file.
18726         * sysdeps/wordsize-64/scandirat64.c: New file.
18727         * dirent/opendir.c: Define opendirat.
18728         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18729         using scandirat.
18730         * dirent/scandir64.c: Adjust for scandir.c change.
18731         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18732         __scandirat64, and __scandir_cancel_handler.
18733         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18734         additional parameter and use openat instead of open (outside of ld.so).
18735         Add new __opendir as wrapper around __opendirat.
18736         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18737         here without requiring old scandirat implementation.
18738
18739 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18740
18741         * dirent/scandir.c (cancel_handler): Renamed to
18742         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18743         defined.  Adjust users.
18744         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18745         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18746
18747 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18748
18749         * string/test-string.h (IMPL): Use __STRING to expand name and then
18750         stringify it.
18751
18752         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18753         of cleanups.
18754
18755 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18756
18757         * string/Makefile: Update.
18758         (strop-tests): Append strncat.
18759         * string/test-wcscmp.c: New file.
18760         New comprehensive test for wcscmp.
18761         * string/test-strcmp.c: Update.
18762         (WIDE): New define.
18763
18764 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18765
18766         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18767         line.
18768
18769 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18770
18771         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18772         encoding to ACE if AI_IDN.
18773
18774 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18775
18776         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18777         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18778
18779 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18780
18781         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18782         Fix overflow bug in strncat.
18783         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18784
18785         * string/test-strncat.c: Update.
18786         Add new tests for checking overflow bugs.
18787
18788 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18789
18790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18791         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18792         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18793         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18794         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18795         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18796         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18797         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18798         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18799
18800         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18801         (USE_AS_STRCAT): Define.
18802         Add strcat and strncat support.
18803         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18804
18805 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18806
18807         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18808         __n bigger than INT_MAX+1.
18809         (__strncmp_g): Likewise.
18810
18811 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18812
18813         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18814         * libio/stido.h: Likewise.
18815
18816         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18817         (AF_NFC): Define.
18818         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18819         (AF_NFC): Define.
18820
18821         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18822         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18823         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18824         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18825         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18826
18827         [BZ #13021]
18828         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18829         installed.
18830
18831         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18832         typo.
18833         (_dl_x86_64_save_sse): Likewise.
18834
18835 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18836
18837         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18838         OSXSAVE.
18839         (_dl_x86_64_save_sse): Likewise.
18840
18841         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18842
18843         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18844
18845 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18846
18847         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18848         change.
18849         (_dl_x86_64_save_sse): Use correct AVX check.
18850
18851 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18852
18853         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18854         bug in strncpy/strncat.
18855         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18856
18857 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18858
18859         * string/tester.c (test_strcat): Add tests for different alignments
18860         of source and destination.
18861         (test_strncat): Likewise.
18862
18863 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18864
18865         [BZ #12852]
18866         * posix/glob.c (glob): Check passed in values before using them in
18867         expressions to avoid some overflows.
18868         (glob_in_dir): Likewise.
18869
18870         [BZ #13007]
18871         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18872         check for AVX enablement so that we don't crash with old kernels and
18873         new hardware.
18874         * elf/tst-audit4.c: Add same checks here.
18875         * elf/tst-audit6.c: Likewise.
18876
18877         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18878
18879 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18880
18881         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18882
18883 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18884
18885         * po/cs.po: Update from translation team.
18886         * po/bg.po: Likewise.
18887
18888 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18889
18890         * misc/sys/cdefs.h: Add support for const attribute.
18891         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18892         to gnu_dev_{major,minor,makedev} functions.
18893
18894 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18895
18896         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18897
18898 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18899
18900         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18901         strlen results.
18902
18903 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18904
18905         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18906         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18907         register in order to avoid conflicts with the soft frame pointer
18908         being held in r11 when necessary.
18909         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18910         (INTERNAL_VSYSCALL_NCS): Likewise.
18911
18912 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18913
18914         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18915         * elf/dl-fini.c (_dl_fini): Adjust caller.
18916         * elf/dl-close.c (_dl_close_worker): Likewise.
18917         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18918
18919 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18920
18921         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18922         "aux_cache->nlibs < 0".
18923
18924         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18925         in the reload-count case.
18926
18927 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18928
18929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18930         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18931         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18932         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18933         * sysdeps/x86_64/multiarch/strcat.S: New file.
18934         * sysdeps/x86_64/multiarch/strncat.S: New file.
18935         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18936         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18937         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18938         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18939         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18940         (USE_AS_STRCAT): Define.
18941         Add strcat and strncat support.
18942         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18943         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18944         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18945         * string/strncat.c: Update.
18946         (USE_AS_STRNCAT): Define.
18947         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18948         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18949         and i7.
18950         * sysdeps/x86_64/multiarch/init-arch.h
18951         (bit_Prefer_PMINUB_for_stringop): New.
18952         (index_Prefer_PMINUB_for_stringop): Likewise.
18953         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18954         bit_Prefer_PMINUB_for_stringop.
18955
18956 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18957
18958         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18959         buffer64.
18960         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18961         of casting of buffer.
18962         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18963         buffer32 and buffer64.
18964         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18965         writes instead of casting of buffer.
18966         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18967         buffer32.
18968         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18969         casting of buffer.
18970
18971 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18972
18973         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18974
18975 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18976
18977         * nscd/nscd.c (termination_handler): Don't do anything for a database
18978         if it has not yet been initialized.
18979
18980 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18981
18982         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18983
18984 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18985
18986         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18987
18988 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18989
18990         * po/nl.po: Update from translation team.
18991         * po/sv.po: Likewise.
18992
18993 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18994
18995         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18996         now disallowed by GCC.
18997
18998         * configure.in (use-default-link): Default to yes if a test -shared
18999         link meets our qualifications.
19000         * configure: Regenerated.
19001
19002         * config.make.in (output-format): New variable.
19003         * configure.in: Check for ld --print-output-format support.
19004         * configure: Regenerated.
19005         * Makerules ($(common-objpfx)format.lds)
19006         [$(output-format) != unknown]: Just use $(output-format),
19007         instead of the linker-script munging.
19008
19009 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19010
19011         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19012         of $(common-objpfx)shlib.lds.
19013         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19014
19015         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19016         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19017
19018         * configure.in (-z relro check): Adjust test code to add a large
19019         writable data section after it.
19020         * configure: Regenerated.
19021
19022 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19023
19024         * configure.in (-z relro check): Fix test code to make the variable
19025         truly const.
19026         * configure: Regenerated.
19027
19028 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19029
19030         * nscd/nscd.h (struct traced_file): Define.
19031         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19032         elements.  Add traced_files.
19033         (inotify_fd): Declare.
19034         (register_traced_file): Declare.
19035         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19036         (inotify_fd): Export.
19037         (resolv_conf_descr): Remove.
19038         (nscd_init): Move inotify descriptor creation to main.
19039         Don't register files for notification here.
19040         (register_traced_file): New function.
19041         (invalidate_cache): Don't use reset_res to determine whether to call
19042         res_init, go through the list of registered files.
19043         (main_loop_poll): The inotify descriptors are now stored in the
19044         structures for the traced files.
19045         (main_loop_epoll): Likewise
19046         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19047         to __nss_disable_nscd.
19048         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19049         for a database anymore.  Check the records for all the registered
19050         files instead.
19051         * nss/Makefile (libnss_files-routines): Add files-init.
19052         (libnss_db-routines): Add db-init.
19053         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19054         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19055         * nss/nss_db/db-init.c: New file.
19056         * nss/nss_files/files-init.c: New file.
19057         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19058         __nss_lookup_function.
19059         (__nss_lookup_function): Call nss_load_library.
19060         (nss_load_all_libraries): New function.
19061         (__nss_disable_nscd): Take parameter with callback function for files
19062         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19063         used for the cached services.
19064         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19065         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19066         options for features to all the files in nscd.
19067
19068         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19069
19070 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19071
19072         * csu/elf-init.c (__libc_csu_init): Comment typo.
19073
19074 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19075
19076         * po/pl.po: Update from translation team.
19077         * po/ja.po: Likewise.
19078         * po/ru.po: Likewise.
19079         * po/ko.po: Likewise.
19080         * po/fr.po: Likewise.
19081
19082 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19083
19084         * configure.in (.ctors/.dtors header and trailer check):
19085         Use an empirical test on a built program.
19086         * configure: Regenerated.
19087
19088         * configure.in (-z relro check): Use an empirical test on a built DSO.
19089         Detect, but do not require, on ia64.
19090         * configure: Regenerated.
19091
19092         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19093         Update tests that use readelf to use $READELF instead.
19094         * configure: Regenerated.
19095
19096 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19097
19098         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19099         if the result is not used.
19100
19101 2011-07-05  Andreas Jaeger  <aj@suse.de>
19102
19103         [BZ#9696]
19104         * stdlib/tst-strtod.c: Add testcase.
19105
19106 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19107
19108         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19109         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19110         The latter has a higher limit.  Take additional parameter to pass to
19111         the new function.
19112         (__pathconf): Pass file to __statfs_link_max.
19113         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19114         __statfs_link_max.
19115         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19116         __statfs_link_max.
19117
19118         [BZ #12868]
19119         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19120         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19121         Handle Lustre.
19122         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19123         (__statfs_filesize_max): Likewise.
19124         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19125
19126 2011-07-05  Andreas Jaeger  <aj@suse.de>
19127
19128         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19129
19130 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19131
19132         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19133         `status' variable.
19134         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19135         Likewise.
19136
19137 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19138
19139         * Makefile (strop-tests): Add strncat.
19140         * string/test-strncat.c: New file.
19141
19142 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19143
19144         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19145
19146 2011-06-21  Andreas Jaeger  <aj@suse.de>
19147
19148         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19149         Copy rule from iconvdata/Makefile.
19150
19151 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19152
19153         [BZ #12922]
19154         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19155         but no long options are defined, just return 'W'.
19156
19157 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19158
19159         [BZ #9696]
19160         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19161
19162 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19163
19164         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19165         netgroups to read.
19166         (innetgr): Likewise.
19167
19168 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19169
19170         * config.make.in (install_root): Default to $(DESTDIR).
19171
19172 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19173
19174         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19175
19176 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19177
19178         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19179
19180         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19181         containing directory rather than embedding absolute directory names.
19182
19183         * scripts/check-local-headers.sh: Rewritten using awk.
19184         Match by word, not by line.  Print error messages for matches.
19185         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19186
19187         * Makerules [shlib-lds-flags empty]:
19188         ($(common-objpfx)libc_pic.opts): New target.
19189         ($(common-objpfx)libc_pic.os.clean): New target.
19190         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19191
19192         * config.make.in (OBJCOPY): New variable.
19193         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19194         * configure: Regenerated.
19195
19196         * config.make.in (use-default-link): New variable.
19197         * configure.in (use_default_link): Grok --with-default-link to set it.
19198         * configure: Regenerated.
19199         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19200         (shlib-lds, shlib-lds-flags): Define to empty.
19201
19202         * Makerules (shlib-lds): New variable.
19203         (shlib-lds-flags): New variable.
19204         (build-shlib, build-moduile, build-module-asneeded): Use it.
19205         ($(common-objpfx)libc.so): Use $(shlib-lds).
19206         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19207         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19208
19209         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19210         DT_FLAGS/DT_FLAGS_1 with zero flags.
19211
19212         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19213         linker script munging.
19214
19215 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19216
19217         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19218         as 128-bit value.
19219         * crypt/sha512.c (sha512_process_block): Perform total addition using
19220         128-bit if possible.
19221         (__sha512_finish_ctx): Likewise.
19222         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19223         as 64-bit value.
19224         * crypt/sha256.c (SWAP64): Define.
19225         (sha256_process_block): Perform total addition using 64-bit if
19226         possible.
19227         (__sha256_finish_ctx): Likewise.
19228
19229 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19230
19231         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19232         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19233         * nscd/hstcache.c (cache_addhst): Likewise.
19234         * nscd/grpcache.c (cache_addgr): Likewise.
19235         * nscd/aicache.c (addhstaiX): Likewise
19236         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19237
19238 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19239
19240         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19241         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19242         * nscd/hstcache.c (cache_addhst): Likewise.
19243         * nscd/grpcache.c (cache_addgr): Likewise.
19244         * nscd/aicache.c (addhstaiX): Likewise
19245
19246 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19247
19248         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19249         domain only when needed.
19250
19251 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19252
19253         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19254         is always restored.
19255
19256 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19257
19258         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19259         are re-adding the entry.
19260         * nscd/servicescache.c (cache_addserv): Likewise.
19261
19262 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19263
19264         * sysdeps/generic/dl-irel.h: fix protection against multiple
19265         inclusions.
19266         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19267
19268 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19269
19270         [BZ #12935]
19271         * malloc/memusage.sh: Fix quoting in message.
19272         * debug/xtrace.sh: Likewise.
19273
19274         * configure.in: Remove support for --experimental-malloc option, make
19275         it the default.
19276         * config.make.in: Likewise.
19277         * malloc/Makefile: Likewise.
19278
19279 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19280
19281         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19282         two-byte characters.
19283
19284 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19285
19286         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19287         AC_CACHE_CHECK invocation.
19288         * configure: Regenerated.
19289
19290         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19291
19292 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19293
19294         [BZ #12350]
19295         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19296         bit from old_res_options.
19297
19298         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19299
19300         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19301         value type for setfct.
19302
19303 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19304
19305         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19306         __gettimeofday instead of gettimeofday.
19307
19308 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19309
19310         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19311
19312 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19313
19314         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19315
19316         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19317         info.
19318
19319 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19320
19321         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19322         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19323         strcpy-sse2-unaligned strncpy-sse2-unaligned
19324         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19325         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19326         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19327         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19328         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19329         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19330         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19331         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19332         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19333         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19334         (STRCPY): Support SSE2 and SSSE3 versions.
19335
19336 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19337
19338         [BZ #12874]
19339         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19340         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19341         kernels which artificially limit size of requests.
19342
19343 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19344
19345         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19346         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19347         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19348         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19349         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19350         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19351         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19352         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19353         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19354         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19355         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19356         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19357         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19358         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19359         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19360         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19361         Enable unaligned load optimization for Intel Core i3, i5 and i7
19362         processors.
19363         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19364         Define.
19365         (index_Fast_Unaligned_Load): Define.
19366         (HAS_FAST_UNALIGNED_LOAD): Define.
19367
19368 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19369
19370         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19371
19372 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19373
19374         [BZ #12907]
19375         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19376         until it is clear that the information is realy needed.
19377         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19378
19379 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19380
19381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19382
19383 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19384
19385         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19386         /sys/devices/system/cpu/online if it is usable.
19387
19388         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19389         reading the information from the /proc filesystem to once a second.
19390
19391 2011-06-21  Andreas Jaeger  <aj@suse.de>
19392
19393         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19394         NULL after inclusion of kernel headers.
19395
19396 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19397
19398         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19399         calls to internal_setent.
19400
19401         [BZ #12885]
19402         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19403         addresses using gethostbyname4_r ignore IPv4 addresses.
19404
19405         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19406         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19407
19408         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19409
19410 2011-06-20  David S. Miller  <davem@davemloft.net>
19411
19412         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19413         inclusions.
19414         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19415
19416         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19417         (elf_irel): Use it.
19418         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19419         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19420         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19421         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19422         * sysdeps/x86_64/dl-irel.h: Likewise.
19423
19424         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19425         * elf/dl-sym.c: Likewise.
19426
19427 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19428
19429         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19430         need to dereference resplen2.
19431
19432 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19433
19434         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19435
19436 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19437
19438         * Makeconfig: Define vardbdir and inst_vardbdir.
19439         * nss/Makefile: Add rules to install db-Makefile.
19440
19441         * nss/nss_db/db-XXX.c: Cleanup.
19442
19443         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19444         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19445         GLIBC_PRIVATE.
19446         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19447         * nss/makedb.c: Implement -g option to specify that value strings
19448         are generated and should not be added to table iterated over for
19449         get*ent calls.
19450         * nss/nss_db/db-initgroups.c: New file.
19451
19452         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19453         interface.
19454
19455         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19456         (internal_getgrouplist): Adjust to name change.
19457         Update use_initgroups_entry if this is not the first call.
19458         * nss/databases.def: Add initgroups entry.
19459
19460         * nss/makedb.c (compute_tables): Check result of multiple hash table
19461         sizes to minimize maximum chain length.
19462
19463 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19464
19465         * Versions.def: Add entry for libnss_db.
19466         * shlib-versions: Likewise.
19467         * nss/Makefile: Add rules to build libnss_db.
19468         * nss/Versions: Add libnss_db information.  Organize libnss_files
19469         entries better.
19470         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19471         makedb progra.  Some minor improvements to generate smaller files.
19472         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19473         here from...
19474         * nss/makedb.c: ...here.
19475         Improve database format to be smaller and require less memory at
19476         runtime.
19477         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19478         db anymore.
19479         * nss/nss_db/db-netgrp.c: Likewise.
19480         * nss/nss_db/db-open.c: Likewise.
19481         * nss/nss_files/flies-XXX.x: Adjust comments.
19482         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19483         * nss/nss_files/files-grp.c: Likewise.
19484         * nss/nss_files/files-hosts.c: Likewise.
19485         * nss/nss_files/files-network.c: Likewise.
19486         * nss/nss_files/files-proto.c: Likewise.
19487         * nss/nss_files/files-pwd.c: Likewise.
19488         * nss/nss_files/files-rpc.c: Likewise.
19489         * nss/nss_files/files-service.c: Likewise.
19490         * nss/nss_files/files-sgrp.c: Likewise.
19491         * nss/nss_files/files-spwd.c: Likewise.
19492         * nss/nss_db/db-alias.c: Removed.
19493         * nss/nss_db/dummy-db.h: Removed.
19494
19495 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19496
19497         * nss/makedb.c: Rewritten to not use database library.
19498         * nss/Makefile: Update to build new makedb program.
19499
19500 2011-06-14  Andreas Jaeger  <aj@suse.de>
19501
19502         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19503         memset declaration.
19504
19505 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19506
19507         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19508         tmpbuf.
19509
19510 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19511
19512         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19513         * elf/Makefile ($(objpfx)ld.so): Likewise.
19514
19515         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19516         Don't list ld.so twice in dependencies.
19517
19518         * posix/bug-regex31.c: Include <stdlib.h>.
19519
19520         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19521
19522         * nis/nss_compat/compat-spwd.c
19523         (getspent_next_nss_netgr): Remove unused variable.
19524         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19525
19526         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19527         nonmembers" output to use the right array.
19528
19529         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19530
19531         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19532
19533         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19534         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19535         * catgets/gencat.c (read_input_file): Likewise.
19536         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19537
19538         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19539         variable definition inside #if's controlling its use.
19540
19541         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19542
19543         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19544
19545         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19546
19547         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19548         unreachable code.
19549
19550         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19551
19552         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19553         * configure: Regenerated.
19554
19555         * Makerules: Revert last change.
19556         * elf/Makefile: Likewise.
19557
19558 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19559
19560         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19561         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19562         (reloc-link): Likewise.
19563
19564 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19565
19566         * elf/Makefile: Add rules to build pldd.
19567         * elf/pldd.c: New file.
19568         * elf/pldd-xx.c: New file.
19569
19570 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19571
19572         * version.h: Update for 2.15 development version.
19573
19574 2011-06-07  David S. Miller  <davem@davemloft.net>
19575
19576         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19577         ifuncs.
19578         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19579         elf_machine_lazy_rel): Likewise.
19580         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19581         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19582         elf_machine_lazy_rel): Likewise.
19583         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19584         dl_hwcap via passed in argument.
19585         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19586         Likewise.
19587
19588 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19589
19590         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19591
19592 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19593
19594         [BZ #12849]
19595         * manual/fdl-1.1.texi: New file, verbatim from:
19596         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19597         * manual/lgpl-2.1.texi: New file, verbatim from:
19598         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19599         * manual/Makefile (licenses): New variable, list those new file names.
19600         (texis): Use it.
19601         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19602
19603         * manual/fdl.texi: File removed.
19604         * manual/lesser.texi: File removed.
19605         * manual/libc.texinfo (Copying, Documentation License):
19606         Use new @include file names, put @appendix directive before @include.
19607
19608 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19609
19610         [BZ #12841]
19611         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19612         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19613         (mq_open): Add __NTH.
19614
19615 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19616
19617         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19618         Assume Intel Core i3/i5/i7 processor if AVX is available.
19619
19620 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19621
19622         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19623         typo.
19624
19625 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19626
19627         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19628         memory.  Use alloca_account.  Fix memory leak when retrying.
19629
19630 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19631
19632         * version.h (RELEASE): Bump for 2.14 release.
19633         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19634
19635         * config.make.in (RANLIB): Remove entry.
19636
19637 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19638
19639         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19640         (libc.pot): Work around missing support for .ksh extension in xgettext.
19641
19642         [BZ #12684]
19643         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19644         if both request failed.
19645         (send_dg): In case of server errors clear resplen or *resplen2.
19646
19647         [BZ #12454]
19648         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19649         when there are multiple maps.
19650         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19651         (_dl_fini): Remove test here.
19652
19653         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19654
19655 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19656
19657         [BZ #12350]
19658         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19659         bit from old_res_options.
19660         (gaih_inet): Likewise.
19661
19662         [BZ #11099]
19663         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19664         as signed.
19665
19666         * resolv/res_init.c (res_setoptions): Make the code more compact.
19667
19668         [BZ #11558]
19669         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19670         set RES_USEVC.
19671
19672         [BZ #11634]
19673         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19674
19675         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19676
19677         [BZ #11781]
19678         * malloc/malloc.h: Declare malloc hook variables as volatile.
19679
19680         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19681         in last patch.
19682
19683         [BZ #11799]
19684         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19685         raise in the comment.
19686         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19687         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19688         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19689
19690 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19691
19692         [BZ #12811]
19693         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19694         grow the buffers more if it already has to be sufficient.
19695         (build_wcs_upper_buffer): Likewise.
19696         * posix/regexec.c (check_matching): Likewise.
19697         (clean_state_log_if_needed): Likewise.
19698         (extend_buffers): Don't enlarge buffers beyond size of the input
19699         buffer.
19700         Patches mostly by Emil Wojak <emil@wojak.eu>.
19701         * posix/bug-regex32.c: New file.
19702         * posix/Makefile (tests): Add bug-regex32.
19703
19704         * locale/findlocale.c (_nl_find_locale): Return right away if
19705         _nl_explode_name failed.
19706         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19707
19708         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19709
19710         * debug/xtrace.sh: Unify messages.
19711         * malloc/memusage.sh: Likewise.
19712
19713         [BZ #12813]
19714         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19715         time symbol from vDSO.  Substitute with vsyscall if not available.
19716         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19717         __vdso_time.
19718
19719         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19720         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19721         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19722         Add sendmmsg and internal_sendmmsg.
19723         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19724         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19725         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19726
19727         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19728         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19729         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19730
19731 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19732
19733         [BZ #12813]
19734         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19735         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19736         available.
19737         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19738         __vdso_getcpu.
19739
19740         [BZ #12814]
19741         * iconvdata/Makefile (tests): Add bug-iconv9.
19742         * iconvdata/bug-iconv9.c: New file.
19743
19744 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19745
19746         [BZ #12814]
19747         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19748
19749 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19750
19751         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19752         (struct user_regs_struct): Change intcs field back to cs.
19753
19754 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19755
19756         * po/ja.po: Update from translation team.
19757
19758 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19759
19760         [BZ #12795]
19761         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19762         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19763
19764 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19765
19766         * stdlib/longlong.h: Update from GCC.
19767
19768 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19769
19770         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19771         parameter name.
19772         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19773         Add parameter name.
19774         (__sysconf): Pass it down.
19775
19776 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19777
19778         [BZ #12671]
19779         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19780         some situations.
19781         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19782         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19783         add in in __libc_use_alloca calls.  Adjust callers.
19784         (glob): Use malloc in some situations.
19785
19786         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19787         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19788         pltexit.
19789
19790 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19791
19792         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19793         and CLOCK_BOOTTIME_ALARM.
19794
19795         [BZ #12782]
19796         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19797         is returned.
19798
19799         * string/_strerror.c (__strerror_r): Print negative errors as signed
19800         numbers.
19801
19802         [BZ #12777]
19803         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19804         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19805         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19806
19807         * configure.in: Fix typo in redirection and correct removal of test
19808         files in two cases.
19809
19810         [BZ #12788]
19811         * locale/setlocale.c (new_composite_name): Fix test to check for
19812         identical name of all categories.
19813
19814         [BZ #12792]
19815         * libio/filedoalloc.c (local_isatty): New function.
19816         (_IO_file_doallocate): Use local_isatty.
19817         * stdio-common/perror.c (perror): In case a new stream is used
19818         forward the stream error.
19819         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19820         error flag.
19821
19822 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19823
19824         [BZ #11869]
19825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19826         alloca.
19827         * include/alloca.h (extend_alloca_account): Define.
19828
19829         [BZ #11857]
19830         * posix/regex.h: Fix comments with documentation of user-accessible
19831         fields after compilation and describe correct free'ing of pattern
19832         after re_compile_pattern.
19833         Patch by Reuben Thomas <rrt@sc3d.org>.
19834
19835 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19836
19837         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19838         and -mno-altivec to prevent the compiler from using Altivec and/or
19839         VSX instructions when the corresponding registers are not available.
19840
19841 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19842
19843         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19844
19845 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19846
19847         * libio/freopen.c (freopen): Use __dup2, not dup2.
19848         * libio/freopen64.c (freopen64): Likewise.
19849
19850 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19851
19852         [BZ #12775]
19853         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19854         * math/Makefile (tests): Add test-powl.
19855         (CFLAGS-test-powl.c): Define.
19856         * math/test-powl.c: New file.
19857
19858 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19859
19860         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19861
19862 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19863
19864         [BZ #11837]
19865         * iconvdata/gb18030.c: Update to GB18020-2005.
19866
19867 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19868
19869         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19870         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19871         Patch by Aharon Robbins <arnold@skeeve.com>.
19872
19873         [BZ #11892]
19874         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19875         on the stack.
19876
19877         [BZ #11895]
19878         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19879         through underflows.
19880
19881         [BZ #12766]
19882         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19883         point to strings before performing equality test for error_one_per_line
19884         mode.
19885
19886         [BZ #11697]
19887         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19888
19889         [BZ #11820]
19890         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19891         (struct user_fpregs_struct): Avoid __uint*_t types.
19892
19893         [BZ #6420]
19894         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19895         symbol info.  Use it instead of calling _dl_addr locally.
19896         (lock_and_info): New function.
19897         (tr_freehook): Call lock_and_info and pass symbol info as additional
19898         parameter to tr_where.
19899         (tr_mallochook): Likewise.
19900         (tr_reallochook): Likewise.
19901         (tr_memalignhook): Likewise.
19902
19903         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19904         used and couldn't be at all thread-safe.
19905
19906 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19907
19908         * libio/freopen.c (freopen): Don't close old file descriptor
19909         before the new one is opened.  Instead dup the new file descriptor
19910         to the old one after the new stream is created.
19911         * libio/freopen64.c (freopen64): Likewise.
19912         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19913         * libio/fileops.c (_IO_new_file_close_it): Handle new
19914         _IO_FLAGS2_NOCLOSE flag.
19915         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19916         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19917         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19918         _IO_FLAGS2_NOCLOSE flag.
19919         * include/unistd.h: Add hidden_proto for dup3.
19920         Define __have_dup3.
19921         * io/dup3.c: Define hidden symbol.
19922         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19923
19924         [BZ #7101]
19925         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19926         when an incomplete long option is used.
19927         * posix/tst-getopt_long1.c: New file.
19928         * posix/Makefile (tests): Add tst-getopt_long1.
19929
19930         [BZ #10138]
19931         * scripts/config.guess: Update from autoconf-2.68.
19932         * scripts/config.sub: Likewise.
19933
19934         [BZ #10157]
19935         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19936         tests into ...
19937         (has_cpuclock): ...this.  New function.
19938         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19939         macro here based on has_cpuclock code.
19940
19941         [BZ #10149]
19942         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19943         First byte (not low byte) is now always NUL.
19944         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19945
19946         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19947         Use non-cancelable interfaces.
19948
19949         [BZ #9809]
19950         * locale/iso-639.def: Add entry for Sorani.
19951
19952         [BZ #11901]
19953         * include/stdlib.h: Move include protection to the right place.
19954         Define abort_msg_s.  Declare __abort_msg with it.
19955         * stdlib/abort.c (__abort_msg): Adjust type.
19956         * assert/assert.c (__assert_fail_base): New function.  Majority
19957         of code from __assert_fail.  Allocate memory for __abort_msg with
19958         mmap.
19959         (__assert_fail): Now call __assert_fail_base.
19960         * assert/assert-perr.c: Remove bulk of implementation.  Use
19961         __assert_fail_base.
19962         * include/assert.hL Declare __assert_fail_base.
19963         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19964         mmap.
19965         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19966
19967 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19968
19969         [BZ #11952]
19970         [BZ #12453]
19971         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19972         until all modules are registered in the DTV.
19973         * elf/Makefile: Add rules to build and run tst-tls19.
19974         * elf/tst-tls19.c: New file.
19975         * elf/tst-tls19mod1.c: New file.
19976         * elf/tst-tls19mod2.c: New file.
19977         * elf/tst-tls19mod3.c: New file.
19978         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19979
19980         [BZ #12083]
19981         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19982         correctly.
19983
19984         [BZ #12601]
19985         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19986         two-byte sequence errors.
19987         * iconvdata/Makefile (tests): Add bug-iconv8.
19988         * iconvdata/bug-iconv8.c: New file.
19989
19990         [BZ #12626]
19991         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19992         buf2 definition.
19993
19994         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19995
19996         [BZ #12432]
19997         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19998         (dummy_getcfa): New function.
19999         (init): Get _Unwind_GetCFA address, use dummy if not found.
20000         (backtrace_helper): In recursion check, also check whether CFA changes.
20001         (__backtrace): Completely initialize arg.
20002
20003         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20004         storing incomplete byte sequence in state object.  Avoid testing for
20005         guaranteed too small input if we know there is enough data available.
20006
20007 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20008
20009         * Makeconfig (+link-pie): Indent.
20010         * Rules (binaries-pie): Define if $(have-fpie) and
20011         $(build-shared).
20012         (binaries-shared): Also filter out $(binaries-pie).
20013         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20014         * nscd/Makefile (others-pie): Add nscd.
20015         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20016         ($(objpfx)nscd): Remove command override.
20017         * login/Makefile (others-pie): Add pt_chown.
20018         ($(objpfx)pt_chown): Remove command override.
20019         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20020         remove command overrides.
20021
20022 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20023
20024         * libio/tst_putwc.c: Fix error messages.
20025
20026         [BZ #12724]
20027         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20028         currently writing and seek to current position when not.
20029         * libio/Makefile (tests): Add bug-fclose1.
20030         * libio/bug-fclose1.c: New file.
20031
20032 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20033
20034         [BZ #12511]
20035         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20036         don't set DF_1_NODELETE here.
20037         (do_lookup_x): When entering new entry test for copy relocation
20038         and if necessary set DF_1_NODELETE flag.
20039         * elf/tst-unique4.cc: New file.
20040         * elf/tst-unique4.h: New file.
20041         * elf/tst-unique4lib.cc: New file.
20042         * elf/Makefile: Add rules to build and run tst-unique4.
20043         Patch by Piotr Bury <pbury@goahead.com>.
20044
20045 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20046
20047         [BZ #12052]
20048         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20049
20050         [BZ #12625]
20051         * misc/mntent_r.c (addmntent): Flush the stream after the output
20052
20053         [BZ #12393]
20054         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20055         (is_trusted_path_normalize): Skip initial colon.  Append slash
20056         to empty buffer.  Duplicate is_trusted_path code but allow
20057         constructed patch to be prefix.
20058         (is_dst): Allow $ORIGIN followed by /.
20059         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20060         Correct testing of result of is_trusted_path_normalize
20061         (decompose_rpath): Fix warning.
20062
20063 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20064
20065         [BZ #11257]
20066         * grp/initgroups.c (internal_getgrouplist): When we found the service
20067         list through the initgroups entry in nsswitch.conf do not always
20068         continue on a successful lookup.  Don't always use the
20069         __nss_group_database value if it is set.
20070         * nss/nsswitch.conf (initgroups): Change action for successful db
20071         lookup to continue for compatibility.
20072
20073 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20074
20075         [BZ #11532]
20076         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20077         and CP774 modules.
20078         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20079         and CP774 modules.
20080         * iconvdata/tst-tables.sh: Likewise.
20081         * iconvdata/cp770.c: New file.
20082         * iconvdata/cp771.c: New file.
20083         * iconvdata/cp772.c: New file.
20084         * iconvdata/cp773.c: New file.
20085         * iconvdata/cp774.c: New file.
20086         * iconvdata/testdata/CP770: New file.
20087         * iconvdata/testdata/CP770..UTF8: New file.
20088         * iconvdata/testdata/CP771: New file.
20089         * iconvdata/testdata/CP771..UTF8: New file.
20090         * iconvdata/testdata/CP772: New file.
20091         * iconvdata/testdata/CP772..UTF8: New file.
20092         * iconvdata/testdata/CP773: New file.
20093         * iconvdata/testdata/CP773..UTF8: New file.
20094         * iconvdata/testdata/CP774: New file.
20095         * iconvdata/testdata/CP774..UTF8: New file.
20096
20097         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20098         END CHARMAP line.
20099         * iconvdata/gen-8bit-gap.sh: Likewise.
20100         * iconvdata/gen-8bit.sh: Likewise.
20101
20102         * locale/iso-639.def: Add ary entry.
20103
20104         [BZ #11258]
20105         * locale/C-translit.h.in: Add U20A1 transliteration.
20106
20107         [BZ #12178]
20108         * locale/iso-639.def: Add wae entry.
20109         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20110
20111         [BZ #12545]
20112         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20113         for n.
20114
20115         [BZ #12711]
20116         * locale/C-translit.h.in: Add entry for U20B9.
20117         Patch by pravin.d.s@gmail.com.
20118
20119 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20120
20121         [BZ #12713]
20122         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20123         ENAMETOOLONG use generic getcwd.
20124         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20125         in rtld.  Use *stat64.
20126         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20127         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20128         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20129         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20130         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20131         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20132         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20133         __fstatat64 macros.
20134         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20135         * dirent/rewinddir.c: Add libc_hidden_def.
20136         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20137         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20138
20139         * include/dirent.h (__alloc_dir): Add flags parameter.
20140         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20141         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20142         __alloc_dir.
20143         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20144         from fdopendir if O_CLOEXEC is already set.
20145
20146 2011-03-15  Alan Modra  <amodra@gmail.com>
20147
20148         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20149         l_tls_firstbyte_offset non-zero.  Save padding offset in
20150         l_tls_firstbyte_offset for later use.
20151         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20152         freeing static tls block.
20153
20154 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20155
20156         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20157         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20158         being defined by the kernel headers.
20159
20160 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20161
20162         [BZ #12734]
20163         * resolv/resolv.h: Define RES_NOTLDQUERY.
20164         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20165         no-tld-query and set RES_NOTLDQUERY.
20166         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20167         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20168         modern BIND to search name as TLD unless forbidden.
20169
20170 2011-05-07  Petr Baudis  <pasky@suse.cz>
20171             Ulrich Drepper  <drepper@gmail.com>
20172
20173         [BZ #12393]
20174         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20175         (is_trusted_path): ...to here.
20176         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20177         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20178         using is_trusted_path_normalize() in setuid scripts.
20179
20180 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20181
20182         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20183         __BEGIN/__END_DECLS.
20184
20185 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20186
20187         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20188         NSS_STATUS_NOTFOUND if no record was found.
20189
20190 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20191
20192         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20193         (headers-not-in-tirpc): Remove rpc/netdb.h
20194         * resolv/netdb.h: Revert last change.
20195
20196 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20197
20198         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20199         circular dependency between libgcc.a and libc.a.
20200
20201 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20202
20203         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20204         * nis/Makefile: Don't install rpcsvc/*.
20205         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20206         instead of <rpc/types.h>.
20207         (MAXHOSTNAMELEN): Define.
20208
20209 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20210
20211         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20212
20213 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20214
20215         [BZ #12714]
20216         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20217         gethostbyname4_r when IPv6 results are possible.
20218
20219 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20220
20221         [BZ #12723]
20222         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20223         _PC_PIPE_BUF handling.
20224
20225 2011-04-30  Bruno Haible  <bruno@clisp.org>
20226
20227         [BZ #12717]
20228         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20229         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20230         to 'int'.
20231         * inet/getnameinfo.c (getnameinfo): Likewise.
20232
20233 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20234
20235         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20236         to groups setting in database lookup.
20237         * nss/nsswitch.conf: Add initgroups entry.
20238
20239 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20240
20241         [BZ #12685]
20242         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20243         mode string.
20244         Patch by Eric Blake <eblake@redhat.com>.
20245
20246 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20247
20248         * sunrpc/Makefile (need-export-routines): Add svc_run.
20249         (routines): Remove svc_run.
20250         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20251         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20252         * sunrpc/svc_run.c (svc_run): Likewise.
20253         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20254
20255 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20256
20257         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20258         problem in reallocation in last patch.
20259
20260 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20261
20262         * sunrpc/Makefile: Move inclusion of Rules.
20263
20264 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20265
20266         * nss/nss_files/files-initgroups.c: New file.
20267         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20268         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20269         _nss_files_initgroups_dyn.
20270
20271 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20272
20273         * elf/elf.h (R_ARM_IRELATIVE): Define.
20274
20275 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20276
20277         * po/ru.po: Update from translation team.
20278
20279 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20280
20281         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20282         dependencies.
20283
20284 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20285
20286         [BZ #12653]
20287         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20288         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20289         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20290         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20291         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20292
20293 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20294
20295         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20296         differing bytes.
20297         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20298         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20299         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20300
20301 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20302
20303         [BZ #12420]
20304         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20305         storing it.
20306         * stdlib/bug-getcontext.c: New file.
20307         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20308
20309 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20310
20311         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20312         instructions into .machine "z9-109".
20313         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20314         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20315
20316 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20317
20318         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20319         between environment variables and auxiliary vector.
20320
20321 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20322
20323         * Makefile: Add rules to build linkobj/libc.so.
20324         * include/libc-symbols.h: Define libc_hidden_nolink.
20325         * include/rpc/auth.h: Mark functions which are to be hidden.
20326         * include/rpc/auth_des.h: Likewise.
20327         * include/rpc/auth_unix.h: Likewise.
20328         * include/rpc/clnt.h: Likewise.
20329         * include/rpc/des_crypt.h: Likewise.
20330         * include/rpc/key_prot.h: Likewise.
20331         * include/rpc/pmap_clnt.h: Likewise.
20332         * include/rpc/pmap_prot.h: Likewise.
20333         * include/rpc/pmap_rmt.h: Likewise.
20334         * include/rpc/rpc_msg.h: Likewise.
20335         * include/rpc/svc.h: Likewise.
20336         * include/rpc/svc_auth.h: Likewise.
20337         * include/rpc/xdr.h: Likewise.
20338         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20339         * nss/Makefile: Likewise.
20340         * sunrpc/Makefile: Don't install headers.  Build library with normal
20341         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20342         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20343         for the compat linking library.  Remove use of INTDEF/INTUSE.
20344         * sunrpc/auth_none.c: Likewise.
20345         * sunrpc/auth_unix.c: Likewise.
20346         * sunrpc/authdes_prot.c: Likewise.
20347         * sunrpc/authuxprot.c: Likewise.
20348         * sunrpc/clnt_gen.c: Likewise.
20349         * sunrpc/clnt_perr.c: Likewise.
20350         * sunrpc/clnt_raw.c: Likewise.
20351         * sunrpc/clnt_simp.c: Likewise.
20352         * sunrpc/clnt_tcp.c: Likewise.
20353         * sunrpc/clnt_udp.c: Likewise.
20354         * sunrpc/clnt_unix.c: Likewise.
20355         * sunrpc/des_crypt.c: Likewise.
20356         * sunrpc/des_soft.c: Likewise.
20357         * sunrpc/get_myaddr.c: Likewise.
20358         * sunrpc/key_call.c: Likewise.
20359         * sunrpc/key_prot.c: Likewise.
20360         * sunrpc/netname.c: Likewise.
20361         * sunrpc/pm_getmaps.c: Likewise.
20362         * sunrpc/pm_getport.c: Likewise.
20363         * sunrpc/pmap_clnt.c: Likewise.
20364         * sunrpc/pmap_prot.c: Likewise.
20365         * sunrpc/pmap_prot2.c: Likewise.
20366         * sunrpc/pmap_rmt.c: Likewise.
20367         * sunrpc/publickey.c: Likewise.
20368         * sunrpc/rpc_cmsg.c: Likewise.
20369         * sunrpc/rpc_common.c: Likewise.
20370         * sunrpc/rpc_dtable.c: Likewise.
20371         * sunrpc/rpc_prot.c: Likewise.
20372         * sunrpc/rpc_thread.c: Likewise.
20373         * sunrpc/rtime.c: Likewise.
20374         * sunrpc/svc.c: Likewise.
20375         * sunrpc/svc_auth.c: Likewise.
20376         * sunrpc/svc_authux.c: Likewise.
20377         * sunrpc/svc_raw.c: Likewise.
20378         * sunrpc/svc_run.c: Likewise.
20379         * sunrpc/svc_simple.c: Likewise.
20380         * sunrpc/svc_tcp.c: Likewise.
20381         * sunrpc/svc_udp.c: Likewise.
20382         * sunrpc/svc_unix.c: Likewise.
20383         * sunrpc/svcauth_des.c: Likewise.
20384         * sunrpc/xcrypt.c: Likewise.
20385         * sunrpc/xdr.c: Likewise.
20386         * sunrpc/xdr_array.c: Likewise.
20387         * sunrpc/xdr_float.c: Likewise.
20388         * sunrpc/xdr_intXX_t.c: Likewise.
20389         * sunrpc/xdr_mem.c: Likewise.
20390         * sunrpc/xdr_rec.c: Likewise.
20391         * sunrpc/xdr_ref.c: Likewise.
20392         * sunrpc/xdr_sizeof.c: Likewise.
20393         * sunrpc/xdr_stdio.c: Likewise.
20394
20395 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20396
20397         [BZ #12650]
20398         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20399         * sysdeps/ia64/dl-tls.h: Likewise.
20400         * sysdeps/powerpc/dl-tls.h: Likewise.
20401         * sysdeps/s390/dl-tls.h: Likewise.
20402         * sysdeps/sh/dl-tls.h: Likewise.
20403         * sysdeps/sparc/dl-tls.h: Likewise.
20404         * sysdeps/x86_64/dl-tls.h: Likewise.
20405         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20406
20407 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20408
20409         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20410         rpath element also skip the following colon.
20411         (expand_dynamic_string_token): Add is_path parameter and pass
20412         down to DL_DST_REQUIRED and _dl_dst_substitute.
20413         (decompose_rpath): Call expand_dynamic_string_token with
20414         non-zero is_path.  Ignore empty rpaths.
20415         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20416         with zero is_path.
20417
20418 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20419
20420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20421         Make cancelable.
20422
20423 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20424
20425         [BZ #12655]
20426         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20427         Patch by Filipe David Manana <fdmanana@apache.org>.
20428
20429 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20430
20431         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20432         Maintain aligned stack.
20433         (CHECK_RSP): Remove unused macro.
20434
20435 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20436
20437         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20438         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20439
20440 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20441
20442         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20443
20444         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20445
20446 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20447
20448         [BZ #12518]
20449         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20450         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20451         * sysdeps/x86_64/memmove.c: New file.
20452         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20453         (memcpy): Renamed to ...
20454         (__new_memcpy): This.
20455         (memcpy): Provide GLIBC_2_14 memcpy.
20456         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20457         (memcpy): Provide GLIBC_2_2_5 memcpy.
20458
20459 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20460
20461         [BZ #12631]
20462         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20463
20464 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20465
20466         * misc/syncfs.c: New file.
20467         * misc/Makefile (routines): Add syncfs.
20468         * posix/unistd.h: Declare syncfs.
20469         * sysdeps/unix/syscalls.list: Add syncfs.
20470
20471 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20472
20473         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20474         open_by_handle_at.
20475         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20476         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20478         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20479         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20480         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20481         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20482
20483 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20484
20485         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20486         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20487         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20488         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20489         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20490         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20491         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20492
20493         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20494         sync_file_range.c with -fexceptions.
20495         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20496         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20497         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20498         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20499         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20500         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20501         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20502         sync_file_range as cancellation point
20503         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20504         now a wrapper around __call_sync_file_range with cancellation handling.
20505         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20506         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20507         function name to __call_sync_file_range.
20508         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20509         Add call_sync_file_range.
20510
20511 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20512
20513         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20514         bits/timex.h.
20515
20516 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20517
20518         * iconv/iconv.h: Fix typo in comment.
20519         * io/fcntl.h: Likewise.
20520         * libio/stdio.h: Likewise.
20521         * posix/spawn.h: Likewise.
20522         * posix/unistd.h: Likewise.
20523         * stdlib/stdlib.h: Likewise.
20524         * time/time.h: Likewise.
20525         * wcsmbs/wchar.h: Likewise.
20526
20527         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20528         open_by_handle): Add.
20529         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20530         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20531         Augment a few comments.
20532         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20533         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20534         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20535         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20536         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20537         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20538         open_by_handle.
20539
20540         * io/fcntl.h (AT_EMPTY_PATH): Define.
20541
20542 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20543
20544         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20545         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20546         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20547         to...
20548         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20549         * Versions.def: Add GLIBC_2.14.
20550         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20551         Export.
20552
20553 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20554
20555         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20556         round counter.
20557         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20558
20559 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20560
20561         [BZ #12597]
20562         * string/test-strncmp.c (do_page_test): New function.
20563         (check2): Likewise.
20564         (test_main): Call check2.
20565         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20566
20567 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20568
20569         [BZ #12587]
20570         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20571         Handle cache information in CPU leaf 4.
20572         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20573
20574 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20575
20576         [BZ #12583]
20577         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20578         character representation.
20579         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20580
20581 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20582
20583         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20584         END(__isnan) to END(__isnanf) to match function entry point/label
20585         EALIGN(__isnanf,...).
20586
20587 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20588
20589         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20590
20591 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20592
20593         [BZ #12510]
20594         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20595         copy from the symbol referenced in the relocation to initialize the
20596         used variable.
20597         Patch by Piotr Bury <pbury@goahead.com>.
20598         * elf/Makefile: Add rules to build and tst-unique3.
20599         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20600         * elf/tst-unique3.cc: New file.
20601         * elf/tst-unique3.h: New file.
20602         * elf/tst-unique3lib.cc: New file.
20603         * elf/tst-unique3lib2.cc: New file.
20604
20605         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20606
20607 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20608
20609         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20610         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20611         to _start.
20612
20613 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20614
20615         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20616         to-be-loaded object along a path to loader is ld.so.
20617
20618 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20619             Ulrich Drepper  <drepper@gmail.com>
20620
20621         * sysdeps/x86_64/memset.S: After aligning destination, code
20622         branches to different locations depending on the value of
20623         misalignment, when multiarch is enabled. Fix this.
20624
20625 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20626
20627         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20628         Set _x86_64_preferred_memory_instruction for AMD processsors.
20629         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20630         Set bit_Prefer_SSE_for_memop for AMD processors.
20631
20632 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20633
20634         * libio/fmemopen.c (fmemopen): Optimize a bit.
20635
20636 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20637
20638         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20639
20640 2011-03-03  Roland McGrath  <roland@redhat.com>
20641
20642         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20643
20644 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20645
20646         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20647         __bzero_ultra1 instead of __memset_ultra1.
20648
20649 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20650             Ulrich Drepper  <drepper@gmail.com>
20651
20652         [BZ #12509]
20653         * include/link.h (struct link_map): Add l_orig_initfini.
20654         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20655         returning unsuccessfully.
20656         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20657         close of a file loaded at startup, restore the original l_initfini
20658         list.
20659         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20660         list, store the pointer.
20661         * elf/Makefile ($(objpfx)noload-mem): New rule.
20662         (noload-ENV): Define.
20663         (tests): Add $(objpfx)noload-mem.
20664         * elf/noload.c: Include <memcheck.h>.
20665         (main): Call mtrace.  Close all opened handles.
20666
20667 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20668
20669         [BZ #12454]
20670         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20671         dependencies are missing.
20672
20673 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20674
20675         Fix __if_freereq crash: Unlike the generic version which uses free,
20676         Hurd needs munmap.
20677         * sysdeps/mach/hurd/ifreq.h: New file.
20678
20679 2011-01-27  Petr Baudis  <pasky@suse.cz>
20680             Ulrich Drepper  <drepper@gmail.com>
20681
20682         [BZ 12445]#
20683         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20684         to extend_alloca().
20685         * stdio-common/bug23.c: New file.
20686         * stdio-common/Makefile (tests): Add bug23.
20687
20688 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20689             Ulrich Drepper  <drepper@gmail.com>
20690
20691         [BZ #12489]
20692         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20693         before performing relro protection.  At old place add assertion
20694         to make sure nothing changed.
20695
20696 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20697             Glauber de Oliveira Costa  <glommer@gmail.com>
20698
20699         * elf/elf.h: Add new ARM TLS relocs.
20700
20701 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20702
20703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20704         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20705         cast from r3.
20706         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20707         'tests' variable.
20708         * sysdeps/wordsize-64/tst-writev.c: New file.
20709
20710 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20711
20712         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20713         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20714         insns in _dl_start to prevent a TOC reference before relocs are
20715         resolved.
20716
20717 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20718
20719         [BZ #12469]
20720         * Makeconfig: Remove RANLIB definition.
20721         * Makerules: Don't use RANLIB.
20722         * aclocal.m4: Remove ranlib test.
20723         * configure.in: No need to check for ranlib.
20724         * elf/rtld-Rules: Don't use RANLIB.
20725
20726 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20727
20728         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20729         protection macro.
20730         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20731         inclusion protection macro.
20732
20733         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20734         SIGRTMIN and SIGRTMAX and print information in that case only when
20735         SIGRTMIN is defined.
20736
20737 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20738
20739         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20740         arginfo fn returning -1.
20741
20742         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20743         and thousands string is zero terminated.
20744
20745 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20746
20747         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20748         sysdeps/unix/sysv/linux/bits/socket.h.
20749
20750 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20751
20752         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20753         (__CPU_COUNT): Remove old macros.
20754         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20755         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20756         (__CPU_ALLOC, __CPU_FREE): Add macros.
20757         (__sched_cpualloc, __sched_cpufree): Add declarations.
20758
20759 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20760
20761         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20762         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20763         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20764         (readdhstai): Return value of addhstaiX call.
20765         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20766         (addgrbyX): Return value returned by cache_addgr.
20767         (readdgrbyname): Return value returned by addgrbyX.
20768         (readdgrbygid): Likewise.
20769         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20770         (addpwbyX): Return value returned by cache_addpw.
20771         (readdpwbyname): Return value returned by addhstbyX.
20772         (readdpwbyuid): Likewise.
20773         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20774         (addservbyX): Return value returned by cache_addserv.
20775         (readdservbyname): Return value returned by addservbyX:
20776         (readdservbyport): Likewise.
20777         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20778         (addhstbyX): Return value returned by cache_addhst.
20779         (readdhstbyname): Return value returned by addhstbyX.
20780         (readdhstbyaddr): Likewise.
20781         (readdhstbynamev6): Likewise.
20782         (readdhstbyaddrv6): Likewise.
20783         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20784         (readdinitgroups): Return value returned by addinitgroupsX.
20785         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20786         (prune_cache): Keep track of timeout value of re-added entries.
20787         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20788         * nscd/nscd.h: Adjust prototypes of readd* functions.
20789
20790 2011-02-04  Roland McGrath  <roland@redhat.com>
20791
20792         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20793         (nis_stats): Likewise.
20794         * nis/nis_modify.c (nis_modify): Likewise.
20795         * nis/nis_remove.c (nis_remove): Likewise.
20796         * nis/nis_add.c (nis_add): Likewise.
20797
20798         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20799
20800         * posix/fnmatch_loop.c: Add some consts.
20801
20802         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20803
20804 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20805
20806         [BZ #12460]
20807         * config.make.in (config-cflags-novzeroupper): Define.
20808         * configure.in: Substitute libc_cv_cc_novzeroupper.
20809         * elf/Makefile (AVX-CFLAGS): Define.
20810         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20811         (CFLAGS-tst-auditmod4a.c): Likewise.
20812         (CFLAGS-tst-auditmod4b.c): Likewise.
20813         (CFLAGS-tst-auditmod6b.c): Likewise.
20814         (CFLAGS-tst-auditmod6c.c): Likewise.
20815         (CFLAGS-tst-auditmod7b.c): Likewise.
20816         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20817
20818 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20819
20820         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20821         function to the callback.
20822         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20823
20824 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20825
20826         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20827         of errno.
20828
20829 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20830
20831         [BZ #11724]
20832         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20833         of constructors.
20834         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20835         of destructors.
20836         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20837
20838         [BZ #11724]
20839         * elf/Makefile: Add rules to build and run new test.
20840         * elf/tst-initorder.c: New file.
20841         * elf/tst-initorder.exp: New file.
20842         * elf/tst-initordera1.c: New file.
20843         * elf/tst-initordera2.c: New file.
20844         * elf/tst-initordera3.c: New file.
20845         * elf/tst-initordera4.c: New file.
20846         * elf/tst-initorderb1.c: New file.
20847         * elf/tst-initorderb2.c: New file.
20848         * elf/tst-order-a1.c: New file.
20849         * elf/tst-order-a2.c: New file.
20850         * elf/tst-order-a3.c: New file.
20851         * elf/tst-order-a4.c: New file.
20852         * elf/tst-order-b1.c: New file.
20853         * elf/tst-order-b2.c: New file.
20854         * elf/tst-order-main.c: New file.
20855         New test case by George Gensure <werkt0@gmail.com>.
20856
20857 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20858
20859         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20860         decoding ACE if AI_CANONIDN.
20861
20862 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20863
20864         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20865
20866 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20867
20868         * version.h (RELEASE): Bump for 2.13 release.
20869         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20870
20871         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20872
20873         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20874         MADV_NOHUGEPAGE.
20875         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20876         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20877         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20878         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20879         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20880         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20881
20882         * posix/getconf.c: Update copyright year.
20883         * catgets/gencat.c: Likewise.
20884         * csu/version.c: Likewise.
20885         * debug/catchsegv.sh: Likewise.
20886         * debug/xtrace.sh: Likewise.
20887         * elf/ldconfig.c: Likewise.
20888         * elf/ldd.bash.in: Likewise.
20889         * elf/sprof.c (print_version): Likewise.
20890         * iconv/iconv_prog.c: Likewise.
20891         * iconv/iconvconfig.c: Likewise.
20892         * locale/programs/locale.c: Likewise.
20893         * locale/programs/localedef.c: Likewise.
20894         * malloc/memusage.sh: Likewise.
20895         * malloc/mtrace.pl: Likewise.
20896         * nscd/nscd.c (print_version): Likewise.
20897         * nss/getent.c: Likewise.
20898
20899         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20900         PF_CAIF, and PF_ALG.
20901         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20902
20903 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20904
20905         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20906         (modules-names): Use them.
20907         (ifunc-test-modules, ifunc-pie-tests): Define.
20908         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20909         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20910         (test-extras): Likewise.
20911         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20912         $(compile-command.c).
20913         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20914         (all-built-dso): Define.
20915         (check-textrel.out, check-execstack.out): Depend on it.
20916
20917         * configure.in: Don't override --enable-multi-arch.
20918
20919 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20920
20921         [BZ #6812]
20922         * nscd/hstcache.c (tryagain): Define.
20923         (cache_addhst): Return tryagain not notfound for temporary errors.
20924         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20925         failed.
20926
20927 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20928
20929         [BZ #10563]
20930         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20931         to make the syscall.
20932         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20933
20934         [BZ #12378]
20935         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20936         and fall back to matching as normal character if the string ends before
20937         the matching ']' is found.  This is what POSIX requires.
20938         * posix/testfnm.c: Adjust test result.
20939         * posix/globtest.sh: Adjust test result.  Add new test.
20940         * posix/tst-fnmatch.input: Likewise.
20941         * posix/tst-fnmatch2.c: Add new test.
20942
20943 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20944
20945         * elf/Makefile (check-execstack): Revert last change.  Depend on
20946         check-execstack.h.
20947         (check-execstack.h): New target.
20948         (generated): Add check-execstack.h.
20949         * elf/check-execstack.c: Include "check-execstack.h".
20950         (main): Revert last change.
20951         (handle_file): Return zero if GNU_STACK is absent and
20952         DEFAULT_STACK_PERMS doesn't include PF_X.
20953
20954 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20955
20956         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20957         in child fails because the descriptor is already closed.
20958         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20959         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20960         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20961
20962         [BZ #12397]
20963         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20964         syscall.
20965
20966         [BZ #10484]
20967         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20968         temporary buffer used to handle multi lookups locally.
20969         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20970
20971 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20972
20973         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20974         loader is ld.so.
20975
20976 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20977
20978         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20979         alignment for SSE2.
20980
20981 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20982
20983         [BZ #12394]
20984         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20985         characters.  When rounding increased number of integer digits recompute
20986         number of groups.
20987         * stdio-common/tst-grouping.c: New file.
20988         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20989
20990 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20991
20992         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20993         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20994
20995         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20996         void.
20997         * bits/select.h: Likewise.
20998
20999 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21000
21001         * po/ja.po: Update from translation team.
21002
21003 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21004
21005         [BZ #11155]
21006         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21007         implementation just like for lxstat, fxstatat, et al.
21008
21009 2010-12-27  Jim Meyering  <meyering@redhat.com>
21010
21011         [BZ #12348]
21012         * posix/regexec.c (build_trtable): Return failure indication upon
21013         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21014
21015 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21016
21017         [BZ #12201]
21018         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21019         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21020         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21021         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21022
21023         [BZ #12207]
21024         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21025
21026         [BZ #12204]
21027         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21028         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21029
21030 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21031
21032         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21033         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21034         script has SORT_BY_INIT_PRIORITY.
21035         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21036         NO_CTORS_DTORS_SECTIONS is defined.
21037         * elf/soinit.c: Likewise.
21038         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21039         NO_CTORS_DTORS_SECTIONS is defined.
21040         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21041         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21042         * sysdeps/sh/init-first.c: Likewise.
21043         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21044
21045 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21046
21047         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21048         always use the slow path.
21049
21050 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21051
21052         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21053         similar rule which adds the sysdep directories to the header search in
21054         order to pick up the correct platform stackinfo.h.
21055         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21056         perform test if it is, otherwise return successfully without testing.
21057         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21058         DEFAULT_STACK_PERMS define in stackinfo.h.
21059         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21060         defined in stackinfo.h.
21061         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21062         DEFAULT_STACK_PERMS defined in stackinfo.h.
21063         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21064         * sysdeps/ia64/stackinfo.h: Likewise.
21065         * sysdeps/s390/stackinfo.h: Likewise.
21066         * sysdeps/sh/stackinfo.h: Likewise.
21067         * sysdeps/sparc/stackinfo.h: Likewise.
21068         * sysdeps/x86_64/stackinfo.h: Likewise.
21069         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21070         PF_X for powerpc64.  Retain PF_X for powerpc32.
21071
21072 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21073
21074         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21075         accurately.
21076         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21077         GETDENTS_64BIT_ALIGNED.
21078
21079 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21080
21081         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21082
21083 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21084
21085         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21086         _GNU_SOURCE.
21087
21088         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21089         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21090         Remove __restrict.
21091         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21092         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21093
21094 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21095
21096         [BZ #11655]
21097         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21098         are initialized.
21099
21100 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21101
21102         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21103
21104 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21105
21106         * po/it.po: Update from translation team.
21107
21108 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21109
21110         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21111         unused codes.
21112
21113 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21114
21115         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21116
21117 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21118
21119         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21120         specially.
21121         (gaih_getanswer_slice): Likewise.
21122
21123 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21124
21125         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21126
21127 2010-05-31  Petr Baudis  <pasky@suse.cz>
21128
21129         [BZ #11149]
21130         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21131         silently even in the chroot mode.
21132
21133 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21134
21135         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21136         last patch a bit.  Pretty printing
21137
21138 2010-05-31  Petr Baudis <pasky@suse.cz>
21139
21140         [BZ #10085]
21141         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21142         initialization of skip_initgroups_dyn.
21143
21144 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21145
21146         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21147         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21148
21149 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21150
21151         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21152
21153 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21154
21155         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21156         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21157         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21158         ($(objpfx)tst-fnmatch-mem): New rule.
21159         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21160         * posix/tst-fnmatch.c (main): Call mtrace.
21161
21162 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21163
21164         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21165         Support Intel processor model 6 and model 0x2c.
21166
21167 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21168
21169         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21170           signed comparison.
21171
21172 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21173
21174         [BZ #12205]
21175         * string/test-strncasecmp.c (check_result): New function.
21176         (do_one_test): Use it.
21177         (check1): New function.
21178         (test_main): Use it.
21179         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21180         Support strcasecmp and strncasecmp.
21181
21182 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21183
21184         [BZ #12194]
21185         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21186         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21187
21188 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21189
21190         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21191         IFUNC support.
21192         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21193         memset-x86-64.
21194         * sysdeps/x86_64/multiarch/bzero.S: New file.
21195         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21196         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21197         * sysdeps/x86_64/multiarch/memset.S: New file.
21198         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21199         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21200         Set bit_Prefer_SSE_for_memop for Intel processors.
21201         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21202         Define.
21203         (index_Prefer_SSE_for_memop): Define.
21204         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21205
21206 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21207
21208         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21209         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21210
21211 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21212
21213         [BZ #12191]
21214         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21215         (__x86_64_raw_data_cache_size_half): Likewise.
21216         (__x86_64_raw_shared_cache_size): Likewise.
21217         (__x86_64_raw_shared_cache_size_half): Likewise.
21218
21219         * sysdeps/x86_64/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         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21224         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21225         and __x86_64_raw_shared_cache_size_half.  Round
21226         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21227         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21228         to multiple of 256 bytes.
21229
21230 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21231
21232         [BZ #12167]
21233         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21234         of inacessible symlinks.  Verify result of symlink before returning it.
21235         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21236         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21237
21238 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21239
21240         * math/math.h (isinf): Fix typo in comment.
21241
21242 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21243
21244         * po/da.po: Update from translation team.
21245
21246 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21247
21248         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21249         is added to the list.
21250
21251 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21252             Ulrich Drepper  <drepper@gmail.com>
21253
21254         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21255         the global list here.  Move code to...
21256         (_dl_add_to_namespace_list): ...here.  New function.
21257         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21258         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21259         * elf/dl-load.c (lose): Don't remove the element from the list.
21260         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21261         (_dl_map_object): Likewise.
21262
21263 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21264
21265         [BZ #12159]
21266         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21267         into all bytes of SSE register.
21268         Patch by Richard Li <richardpku@gmail.com>.
21269
21270 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21271
21272         [BZ #12140]
21273         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21274         perturbing.
21275
21276 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21277
21278         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21279         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21280         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21281         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21283         submachine.
21284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21285
21286 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21287
21288         * include/dlfcn.h (__RTLD_SECURE): Define.
21289         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21290         mode & __RTLD_SECURE instead.
21291         (open_path): Rename preloaded parameter to secure.
21292         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21293         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21294         * elf/dl-deps.c (openaux): Likewise.
21295         * elf/rtld.c (struct map_args): Remove is_preloaded.
21296         (map_doit): Don't use it.
21297         (dl_main): Likewise.
21298         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21299         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21300
21301 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21302
21303         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21304         (sysd-rules-targets): Remove duplicates.
21305         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21306         rtld-%.$o dependency.
21307
21308 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21309
21310         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21311         _dl_map_object do it.
21312
21313 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21314
21315         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21316         fast fma builtins, define the macros in the C99 standard.
21317         (FP_FAST_FMAF): Likewise.
21318         (FP_FAST_FMAL): Likewise.
21319         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21320
21321         * bits/mathdef.h: Update copyright year.
21322         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21323
21324 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21325
21326         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21327         builtins, define the macros in the C99 standard.
21328         (FP_FAST_FMAF): Likewise.
21329         (FP_FAST_FMAL): Likewise.
21330         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21331         multiply/add.
21332         (FP_FAST_FMAF): Likewise.
21333
21334 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21335
21336         [BZ #3268]
21337         * math/libm-test.inc (fma_test): Some new testcases.
21338         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21339         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21340         y and infinite z.  Do multiplication by C already in long double.
21341         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21342         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21343         y and infinite z.  Do bitwise or of inexact bit into u.d.
21344         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21345         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21346         * sysdeps/i386/fpu/s_fma.S: Removed.
21347         * sysdeps/i386/fpu/s_fmal.S: Removed.
21348
21349 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21350
21351         [BZ #3268]
21352         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21353         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21354         computation is not scheduled after fetestexcept.  Fix value
21355         of minimum denormal long double.
21356
21357 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21358
21359         [BZ #3268]
21360         * math/libm-test.inc (fma_test): Add some more tests.
21361         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21362         correctly.
21363
21364 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21365
21366         * scripts/data/localplt-s390-linux-gnu.data: New file.
21367         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21368
21369 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21370
21371         [BZ #3268]
21372         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21373         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21374         instead of dbl-64.
21375         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21376         inlines.
21377         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21378         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21379         if one of x and y is very large and the other is subnormal.
21380         * sysdeps/s390/fpu/s_fmaf.c: New file.
21381         * sysdeps/s390/fpu/s_fma.c: New file.
21382         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21383         * sysdeps/powerpc/fpu/s_fma.S: New file.
21384         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21385         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21386         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21387
21388 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21389
21390         [BZ #3268]
21391         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21392         fma tests.
21393         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21394         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21395         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21396         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21397         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21398         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21399         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21400
21401 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21402
21403         [BZ #12078]
21404         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21405         * posix/bug-regex31.input: Add test case.
21406
21407 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21408
21409         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21410         * posix/bug-regex31.input: New file.
21411
21412         [BZ #12078]
21413         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21414         (parse_sub_exp): Fix last change, use postorder.
21415
21416         * posix/bug-regex31.c: New file.
21417         * posix/Makefile: Add rules to build and run bug-regex31.
21418
21419         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21420
21421         [BZ #12078]
21422         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21423
21424         [BZ #12108]
21425         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21426         to have entries in sys_siglist.
21427
21428         [BZ #12093]
21429         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21430         be NULL.
21431
21432 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21433
21434         [BZ #3268]
21435         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21436         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21437         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21438         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21439         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21440         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21441         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21442         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21443         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21444         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21445         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21446         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21447         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21448         * math/ftestexcept.c (fetestexcept): Likewise.
21449         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21450         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21451         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21452         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21453         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21454         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21455         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21456
21457 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21458
21459         [BZ #12107]
21460         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21461         newline.
21462
21463 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21464
21465         * string/bug-strstr1.c: New file.
21466         * string/Makefile: Add rules to build and run bug-strstr1.
21467
21468 2010-10-05  Eric Blake  <eblake@redhat.com>
21469
21470         [BZ #12092]
21471         * string/str-two-way.h (two_way_long_needle): Always clear memory
21472         when skipping input due to the shift table.
21473
21474 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21475
21476         [BZ #12005]
21477         * malloc/mcheck.c: Handle large requests.
21478
21479         [BZ #12077]
21480         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21481         for strncmp and strncasecmp.
21482         * string/stratcliff.c: Add tests for strcmp and strncmp.
21483         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21484
21485 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21486
21487         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21488         __set_fpscr.
21489
21490 2010-09-30  Andreas Jaeger  <aj@suse.de>
21491
21492         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21493         (CGROUP_SUPER_MAGIC): Define.
21494         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21495         Handle btrfs and cgroup file systems.
21496         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21497         Likewise.
21498
21499 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21500
21501         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21502         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21503
21504 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21505
21506         [BZ #12067]
21507         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21508         trying to locate the ELF header.
21509
21510 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21511
21512         [BZ #11611]
21513         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21514         Mask out sign-bit copies when constructing f_fsid.
21515
21516 2010-09-24  Petr Baudis <pasky@suse.cz>
21517
21518         * debug/stack_chk_fail_local.c: Add missing licence exception.
21519         * debug/warning-nop.c: Likewise.
21520
21521 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21522
21523         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21524         implementing getdents64 using getdents syscall, set d_type if
21525         __ASSUME_GETDENTS32_D_TYPE.
21526
21527 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21528
21529         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21530         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21531
21532 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21533
21534         [BZ #12037]
21535         * posix/unistd.h: Undo change of feature selection for ftruncate from
21536         2010-01-11.
21537
21538 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21539
21540         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21541         detection.
21542
21543 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21544
21545         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21546         fanotify_mark.
21547         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21548
21549 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21550
21551         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21552         variables after CHECK_SP call.
21553         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21554
21555 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21556             Ulrich Drepper  <drepper@redhat.com>
21557
21558         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21559         re-relocationg ld.so.
21560         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21561         _dl_init_paths call.
21562         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21563         here anymore.
21564
21565 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21566
21567         * resolv/res_init.c (__res_vinit): Count the default server we added.
21568
21569 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21570             Ulrich Drepper  <drepper@redhat.com>
21571
21572         [BZ #11968]
21573         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21574         (____longjmp_chk): Use %ebx for saving value across system call.
21575         Add unwind info.
21576
21577 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21578
21579         * manual/Makefile: Don't mix pattern rules with normal rules.
21580
21581 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21582
21583         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21584         operation.
21585         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21586         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21587         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21588         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21589         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21590         Likewise.
21591
21592 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21593
21594         [BZ #11979]
21595         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21596         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21597
21598 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21599
21600         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21601         * sysdeps/x86_64/addmul_1.S: Likewise.
21602         * sysdeps/x86_64/lshift.S: Likewise.
21603         * sysdeps/x86_64/mul_1.S: Likewise.
21604         * sysdeps/x86_64/rshift.S: Likewise.
21605         * sysdeps/x86_64/sub_n.S: Likewise.
21606         * sysdeps/x86_64/submul_1.S: Likewise.
21607
21608 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21609
21610         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21611         Define __sched_param instead of SCHED_* and sched_param when
21612         <bits/sched.h> is included with __need_schedparam defined.
21613         * bits/sched.h [__need_schedparam]
21614         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21615         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21616         (__defined_schedparam): Define to 1.
21617         (__sched_param): New structure, identical to sched_param.
21618         (__need_schedparam): Undefine.
21619
21620 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21621
21622         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21623         (epoll_create1): Declare.
21624
21625         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21626
21627 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21628
21629         [BZ #7066]
21630         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21631         shifting retval into place.
21632
21633 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21634
21635         * nis/rpcsvc/nis.h: Update copyright notice.
21636         * nis/rpcsvc/nis.x: Likewise.
21637         * nis/rpcsvc/nis_callback.h: Likewise.
21638         * nis/rpcsvc/nis_callback.x: Likewise.
21639         * nis/rpcsvc/nis_object.x: Likewise.
21640         * nis/rpcsvc/nis_tags.h: Likewise.
21641         * nis/rpcsvc/yp.h: Likewise.
21642         * nis/rpcsvc/yp.x: Likewise.
21643         * nis/rpcsvc/ypupd.h: Likewise.
21644         * nis/yp_xdr.c: Likewise.
21645         * nis/ypupdate_xdr.c: Likewise.
21646
21647         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21648         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21649         (pmap_getport): Use __libc_rpc_getport.
21650         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21651         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21652         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21653
21654 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21655
21656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21657         fanotify_mark.
21658
21659 2010-08-27  Roland McGrath  <roland@redhat.com>
21660
21661         * sysdeps/i386/i686/multiarch/Makefile
21662         (CFLAGS-varshift.c): New variable.
21663
21664 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21665
21666         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21667         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21668
21669         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21670
21671         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21672
21673 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21674
21675         * sysdeps/x86_64/strlen.S: Unroll the loop.
21676         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21677         strlen-sse2 strlen-sse2-bsf.
21678         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21679         __strlen_no_bsf if bit_Slow_BSF is set.
21680         (__strlen_sse42): Removed.
21681         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21682         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21683
21684 2010-08-25  Roland McGrath  <roland@redhat.com>
21685
21686         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21687         * sysdeps/x86_64/multiarch/varshift.c: New file.
21688         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21689         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21690         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21691         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21692
21693 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21694
21695         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21696         strlen-sse2 strlen-sse2-bsf.
21697         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21698         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21699         (__strlen_sse2): Removed.
21700         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21701         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21702         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21703         bit_Slow_BSF for Atom.
21704         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21705         (index_Slow_BSF): Define.
21706         (HAS_SLOW_BSF): Define.
21707
21708 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21709
21710         [BZ #10851]
21711         * resolv/res_init.c (__res_vinit): When no server address at all
21712         is given default to loopback.
21713
21714 2010-08-24  Roland McGrath  <roland@redhat.com>
21715
21716         * configure.in: Remove config-name.h generation.
21717         * configure: Regenerated.
21718         * config-name.in: File removed.
21719         * scripts/config-uname.sh: New file.
21720         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21721         ($(objdir)config-name.h): New target.
21722
21723         * sunrpc/rpc_parse.h: Avoid nested comment.
21724
21725 2010-08-24  Richard Henderson  <rth@redhat.com>
21726             Ulrich Drepper  <drepper@redhat.com>
21727             H.J. Lu  <hongjiu.lu@intel.com>
21728
21729         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21731         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21732         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21733         _mm_alignr_epi8 with _mm_loadu_si128.
21734         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21735         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21736         (__m128i_shift_right): Removed.
21737         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21738         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21739         * sysdeps/x86_64/multiarch/varshift.h: New file.
21740         * sysdeps/x86_64/multiarch/varshift.S: New file.
21741
21742 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21743
21744         * configure.in: Move assembler checks to before sysdep dir checking.
21745
21746 2010-08-20  Petr Baudis  <pasky@suse.cz>
21747
21748         * LICENSES: Sync the sunrpc license.
21749
21750 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21751
21752         * sunrpc/auth_des.c: Update copyright notice once again.
21753         * sunrpc/auth_none.c: Likewise.
21754         * sunrpc/auth_unix.c: Likewise.
21755         * sunrpc/authdes_prot.c: Likewise.
21756         * sunrpc/authuxprot.c: Likewise.
21757         * sunrpc/bindrsvprt.c: Likewise.
21758         * sunrpc/clnt_gen.c: Likewise.
21759         * sunrpc/clnt_perr.c: Likewise.
21760         * sunrpc/clnt_raw.c: Likewise.
21761         * sunrpc/clnt_simp.c: Likewise.
21762         * sunrpc/clnt_tcp.c: Likewise.
21763         * sunrpc/clnt_udp.c: Likewise.
21764         * sunrpc/clnt_unix.c: Likewise.
21765         * sunrpc/des_crypt.c: Likewise.
21766         * sunrpc/des_soft.c: Likewise.
21767         * sunrpc/get_myaddr.c: Likewise.
21768         * sunrpc/getrpcport.c: Likewise.
21769         * sunrpc/key_call.c: Likewise.
21770         * sunrpc/key_prot.c: Likewise.
21771         * sunrpc/openchild.c: Likewise.
21772         * sunrpc/pm_getmaps.c: Likewise.
21773         * sunrpc/pm_getport.c: Likewise.
21774         * sunrpc/pmap_clnt.c: Likewise.
21775         * sunrpc/pmap_prot.c: Likewise.
21776         * sunrpc/pmap_prot2.c: Likewise.
21777         * sunrpc/pmap_rmt.c: Likewise.
21778         * sunrpc/rpc/auth.h: Likewise.
21779         * sunrpc/rpc/auth_unix.h: Likewise.
21780         * sunrpc/rpc/clnt.h: Likewise.
21781         * sunrpc/rpc/des_crypt.h: Likewise.
21782         * sunrpc/rpc/key_prot.h: Likewise.
21783         * sunrpc/rpc/netdb.h: Likewise.
21784         * sunrpc/rpc/pmap_clnt.h: Likewise.
21785         * sunrpc/rpc/pmap_prot.h: Likewise.
21786         * sunrpc/rpc/pmap_rmt.h: Likewise.
21787         * sunrpc/rpc/rpc.h: Likewise.
21788         * sunrpc/rpc/rpc_des.h: Likewise.
21789         * sunrpc/rpc/rpc_msg.h: Likewise.
21790         * sunrpc/rpc/svc.h: Likewise.
21791         * sunrpc/rpc/svc_auth.h: Likewise.
21792         * sunrpc/rpc/types.h: Likewise.
21793         * sunrpc/rpc/xdr.h: Likewise.
21794         * sunrpc/rpc_clntout.c: Likewise.
21795         * sunrpc/rpc_cmsg.c: Likewise.
21796         * sunrpc/rpc_common.c: Likewise.
21797         * sunrpc/rpc_cout.c: Likewise.
21798         * sunrpc/rpc_dtable.c: Likewise.
21799         * sunrpc/rpc_hout.c: Likewise.
21800         * sunrpc/rpc_main.c: Likewise.
21801         * sunrpc/rpc_parse.c: Likewise.
21802         * sunrpc/rpc_parse.h: Likewise.
21803         * sunrpc/rpc_prot.c: Likewise.
21804         * sunrpc/rpc_sample.c: Likewise.
21805         * sunrpc/rpc_scan.c: Likewise.
21806         * sunrpc/rpc_scan.h: Likewise.
21807         * sunrpc/rpc_svcout.c: Likewise.
21808         * sunrpc/rpc_tblout.c: Likewise.
21809         * sunrpc/rpc_util.c: Likewise.
21810         * sunrpc/rpc_util.h: Likewise.
21811         * sunrpc/rpcinfo.c: Likewise.
21812         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21813         * sunrpc/rpcsvc/key_prot.x: Likewise.
21814         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21815         * sunrpc/rpcsvc/mount.x: Likewise.
21816         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21817         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21818         * sunrpc/rpcsvc/rex.x: Likewise.
21819         * sunrpc/rpcsvc/rstat.x: Likewise.
21820         * sunrpc/rpcsvc/rusers.x: Likewise.
21821         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21822         * sunrpc/rpcsvc/spray.x: Likewise.
21823         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21824         * sunrpc/rtime.c: Likewise.
21825         * sunrpc/svc.c: Likewise.
21826         * sunrpc/svc_auth.c: Likewise.
21827         * sunrpc/svc_authux.c: Likewise.
21828         * sunrpc/svc_raw.c: Likewise.
21829         * sunrpc/svc_run.c: Likewise.
21830         * sunrpc/svc_simple.c: Likewise.
21831         * sunrpc/svc_tcp.c: Likewise.
21832         * sunrpc/svc_udp.c: Likewise.
21833         * sunrpc/svc_unix.c: Likewise.
21834         * sunrpc/svcauth_des.c: Likewise.
21835         * sunrpc/xcrypt.c: Likewise.
21836         * sunrpc/xdr.c: Likewise.
21837         * sunrpc/xdr_array.c: Likewise.
21838         * sunrpc/xdr_float.c: Likewise.
21839         * sunrpc/xdr_mem.c: Likewise.
21840         * sunrpc/xdr_rec.c: Likewise.
21841         * sunrpc/xdr_ref.c: Likewise.
21842         * sunrpc/xdr_sizeof.c: Likewise.
21843         * sunrpc/xdr_stdio.c: Likewise.
21844
21845         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21846         handling.
21847
21848 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21849
21850         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21851
21852 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21853
21854         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21855         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21856         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21857         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21858         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21859         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21860         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21861         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21862         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21863         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21864         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21865         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21866         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21867         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21868
21869 2010-07-26  Anton Blanchard  <anton@samba.org>
21870
21871         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21872         * malloc/arena.c (heap_trim): Likewise.
21873
21874 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21875
21876         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21877         here.  Not...
21878         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21879         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21880
21881 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21882
21883         * sysdeps/i386/elf/Makefile: New file.
21884
21885 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21886
21887         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21888         from fanotify_init.
21889         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21890         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21891
21892 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21893
21894         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21895         of strncasecmp_l.
21896         * sysdeps/multiarch/strcmp.S: Likewise.
21897
21898 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21899
21900         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21901         strncase_l-nonascii.
21902         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21903         Add strncase_l-ssse3.
21904         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21905         * sysdeps/x86_64/strcmp.S: Likewise.
21906         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21907         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21908         * sysdeps/x86_64/strncase.S: New file.
21909         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21910         * sysdeps/x86_64/strncase_l.S: New file.
21911         * string/Makefile (strop-tests): Add strncasecmp.
21912         * string/test-strncasecmp.c: New file.
21913
21914         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21915         warning.
21916
21917         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21918         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21919
21920 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21921
21922         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21923
21924 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21925
21926         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21927         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21928         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21929
21930 2010-05-01  Alan Modra  <amodra@gmail.com>
21931
21932         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21933         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21934         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21935         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21936         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21937         tidying.  Don't tail-call __sigjmp_save for static lib.
21938         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21939         save location.
21940         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21941         (CALL_MCOUNT): Add eh info, and nop after bl.
21942         (TAIL_CALL_SYSCALL_ERROR): New macro.
21943         (PSEUDO_RET): Use it.
21944         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21945         Correct save location of integer regs and cr.
21946         (_dl_profile_resolve): Correct cr save location.  Delete nops
21947         after bl when SHARED.  Reduce cfi size a little by better
21948         placement of cfi directives.
21949         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21950         make a stack frame.  Instead use parm save area as a temp.
21951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21952         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21954         Don't make a stack frame for parent, use parm save area.
21955         Increase child stack frame to 112 bytes.  Don't save unused reg,
21956         and adjust reg usage.  Set up cfi on error recovery and
21957         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21959         (__makecontext): Add dummy nop after jump to exit.
21960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21961         Use correct parm save area and cr save, reduce stack frame.
21962         Correct cfi for possible PSEUDO_RET frame setup.
21963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21964         Branch to local label emitted by PSEUDO_RET rather than
21965         __syscall_error.
21966
21967 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21968
21969         [BZ #11904]
21970         * locale/programs/locale.c (print_assignment): New function.
21971         (show_locale_vars): Use it.
21972
21973 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21974
21975         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21976         field.
21977         (struct statfs64): Likewise.
21978         (_STATFS_F_FLAGS): Define.
21979         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21980         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21981         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21982         (ST_VALID): Define locally.
21983         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21984         __statvfs_getflags, use the provided value.
21985         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21986         __ASSUME_STATFS_F_FLAGS.
21987
21988         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21989
21990         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21991         Add sys/fanotify.h.
21992         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21993         fanotify_mask for GLIBC_2.13.
21994         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21995         fanotify_init and fanotify_mark.
21996         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21997         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21998
21999         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22000         Add prlimit.
22001         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22002         prlimit64 for GLIBC_2.13.
22003         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22004         prlimit64.
22005         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22006         syscall.
22007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22008         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22009         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22010         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22011         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22012         add prlimit alias.
22013         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22014
22015         [BZ #11903]
22016         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22017         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22018
22019         * nss/Makefile: Add rules to build and run tst-nss-test1.
22020         * shlib-versions: Add entry for libnss_test1.
22021         * nss/nss_test1.c: New file.
22022         * nss/tst-nss-test1.c: New file.
22023
22024         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22025         (__nss_configure_lookup): Set appropriate entry in
22026         __nss_configure_lookup to true.
22027         * nss/nsswitch.h: Define enum with indeces of databases in
22028         databases and __nss_database_custom arrays.  Declare
22029         __nss_database_custom.
22030         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22031         to avoid using nscd when custom rules are installed.
22032         * nss/getXXbyYY_r.c: Likewise.
22033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22034
22035         * nss/nss_files/files-parse.c: Whitespace fixes.
22036
22037 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22038
22039         [BZ #11883]
22040         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22041         * posix/fnmatch_loop.c: Likewise.
22042
22043 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22044
22045         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22046         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22047         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22048         * Versions.def [GLIBC_2.13]: Add.
22049
22050 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22051
22052         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22053         Also fail if tpwd after pwuid call is NULL.
22054
22055 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22056
22057         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22058         when converting to ms.
22059
22060 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22061
22062         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22063         EOPNOTSUPP errors with ENOTTY.
22064         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22065         EOPNOTSUPP errors with ENOTTY.
22066
22067 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22068
22069         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22070         Add strcasecmp_l-ssse3.
22071         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22072         strcasecmp.
22073         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22074         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22075         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22076
22077 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22078
22079         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22080
22081         * string/Makefile (strop-tests): Add strcasecmp.
22082         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22083         strcasecmp_l-nonascii.
22084         (gen-as-const-headers): Add locale-defines.sym.
22085         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22086         * sysdeps/x86_64/strcasecmp.S: New file.
22087         * sysdeps/x86_64/strcasecmp_l.S: New file.
22088         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22089         * sysdeps/x86_64/locale-defines.sym: New file.
22090         * string/test-strcasecmp.c: New file.
22091
22092         * string/test-strcasestr.c: Test both ends of the range of characters.
22093         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22094
22095 2010-07-29  Roland McGrath  <roland@redhat.com>
22096
22097         [BZ #11856]
22098         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22099
22100 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22101
22102         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22103         for ld.so.
22104
22105 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22106
22107         * manual/memory.texi (Malloc Tunable Parameters): Document
22108         M_PERTURB.
22109
22110 2010-07-26  Roland McGrath  <roland@redhat.com>
22111
22112         [BZ #11840]
22113         * configure.in (-fgnu89-inline check): Set and substitute
22114         gnu89_inline, not libc_cv_gnu89_inline.
22115         * configure: Regenerated.
22116         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22117
22118 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22119
22120         * string/test-strnlen.c: New file.
22121         * string/Makefile (strop-tests): Add strnlen.
22122         * string/tester.c (test_strnlen): Add a few more test cases.
22123         * string/tst-strlen.c: Better error reporting.
22124
22125         * sysdeps/x86_64/strnlen.S: New file.
22126
22127 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22128
22129         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22130         lower-latency instructions.
22131
22132 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22133
22134         * string/test-strcasestr.c: New file.
22135         * string/test-strstr.c: New file.
22136         * string/Makefile (strop-tests): Add strstr and strcasestr.
22137         * string/str-two-way.h: Don't undefine MAX.
22138         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22139
22140 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22141
22142         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22143         strcasestr-nonascii.
22144         (CFLAGS-strcasestr-nonascii.c): Define.
22145         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22146         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22147         Remove unused attribute.
22148
22149 2010-07-20  Roland McGrath  <roland@redhat.com>
22150
22151         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22152         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22153         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22154         like LD_HWCAP_MASK can disable hwcaps.
22155
22156 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22157
22158         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22159
22160 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22161
22162         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22163         call in strcasestr.
22164         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22165         __strcasestr_sse42_nonascii.
22166         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22167         strcasestr-nonascii.c.
22168         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22169
22170 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22171
22172         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22173         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22174         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22175         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22176
22177 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22178
22179         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22180         fcntl.
22181
22182 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22183
22184         [BZ #11577]
22185         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22186         dl_signal_cerror.
22187
22188 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22189
22190         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22191         _PC_PIPE_BUF using F_GETPIPE_SZ.
22192
22193 2010-07-05  Roland McGrath  <roland@redhat.com>
22194
22195         * manual/arith.texi (Rounding Functions): Fix rint description
22196         implicit in round description.
22197
22198 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22199
22200         * elf/Makefile: Fix linking for a few tests to make recent linker
22201         happy.
22202
22203 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22204
22205         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22206         $(common-objpfx)libc_nonshared.a.
22207
22208 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22209
22210         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22211         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22212         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22213         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22214         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22215         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22216         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22217         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22232         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22233         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22234         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22235         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22236         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22237         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22238         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22239         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22240         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22241         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22242         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22243         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22258
22259 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22260
22261         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22262         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22263         * string/memmove.c (memmove): Renamed to ...
22264         (MEMMOVE): ...this.  Default to memmove.
22265         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22266         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22267         (END_CHK): Define.
22268         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22269         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22270         mempcpy-ssse3-back memmove-ssse3-back.
22271         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22272         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22273         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22274         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22275         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22276         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22277         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22278         * sysdeps/x86_64/multiarch/memmove.c: New file.
22279         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22280         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22281         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22282         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22283         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22284         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22285         Define.
22286         (index_Fast_Copy_Backward): Define.
22287         (HAS_ARCH_FEATURE): Define.
22288         (HAS_FAST_REP_STRING): Define.
22289         (HAS_FAST_COPY_BACKWARD): Define.
22290
22291 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22292
22293         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22294         Restore proper fallback handling.
22295
22296 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22297
22298         [BZ #11701]
22299         * posix/group_member.c (__group_member): Correct checking loop.
22300
22301         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22302         OOM in getpwuid_r correctly.  Return error number when the caller
22303         should return, otherwise -1.
22304         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22305         call returning > 0 value.
22306         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22307
22308 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22309
22310         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22311         libc_nonshared.a from targets in modules-names.
22312
22313 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22314
22315         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22316         requires it.
22317
22318 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22319
22320         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22321         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22322         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22323         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22324
22325 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22326
22327         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22328
22329 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22330
22331         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22332         and F_GETPIPE_SZ.
22333         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22334         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22335         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22337         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22339
22340 2010-06-14  Roland McGrath  <roland@redhat.com>
22341
22342         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22343
22344 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22345
22346         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22347         __REDIRECT followed by __THROW.
22348         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22349         * posix/getopt.h (getopt): Likewise.
22350
22351 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22352
22353         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22354         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22355         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22356         in AT_FLAGS.
22357         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22358         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22359
22360 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22361
22362         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22363
22364 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22365
22366         [BZ #11640]
22367         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22368         Properly check family and model.
22369
22370 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22371
22372         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22373
22374 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22375
22376         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22377
22378 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22379
22380         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22381         symbol reference.
22382
22383 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22384
22385         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22386         symbol reference.
22387
22388 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22389
22390         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22391         and internal_recvmmsg.
22392         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22393         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22394         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22395         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22396
22397         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22398         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22399         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22400
22401 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22402
22403         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22404
22405 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22406
22407         POWER7 optimizations.
22408         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22409         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22410
22411 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22412
22413         * version.h: Update for 2.13 development version.
22414
22415 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22416
22417         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22418         exceptions.  Return 0.
22419
22420 2010-05-07  Roland McGrath  <roland@redhat.com>
22421
22422         * elf/ldconfig.c (main): Add a const.
22423
22424 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22425
22426         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22427         (args_options): Add no-idn option.
22428         (ahosts_keys_int): Add idn_flags to ai_flags.
22429         (parse_option): Handle 'i' option to clear idn_flags.
22430
22431         * malloc/malloc.c (_int_free): Possible race in the most recently
22432         added check.  Only act on the data if no current modification
22433         happened.
22434
22435 See ChangeLog.17 for earlier changes.